双重身份问题: create table role_tab ( person char(5) not null, role char(1) not null ) insert into role_tab values('smith','O'),('smith','D'),('niu','O'),('jia','O'),('yong','O'),('yong','D') O代表高级职员,D代表主管, 问题:现查询职员,如果是双重身份的则显示B, 此题一看到就想到用union,和count(*)做…