求助 sql 查询姓名 出差城市张三 上海张三 北京李四 上海现在要找出没有出差去过 北京 的人,如何写sql语句? [解决办法]
select * from tb t where not exists (select 1 from tb where 姓名=t.姓名 and 出差城市='北京')