可以运行下列SQL查询:
select count(*) as 满意数,count(*) as 差评数 from 表名
where 城市<>"成都" and ( 居民评价 in(5,6,7) or 居民评价 is null);
注意:如果居民评价的类型属于文本,则5,6,7要加引号
select count(*) as 满意数,count(*) as 差评数 from 表名
where 城市<>"成都" and ( 居民评价 in("5","6","7") or 居民评价 is null);