34,587
社区成员
发帖
与我相关
我的任务
分享
--A
select * from 作者信息 a where not exists(select 1 from 奖状信息 where 作者编号=a.作者编号)
--B
select top 10 * from 奖状信息 order by 获奖日期 desc
except
select 作者信息.作者编号 from 作者信息 and 奖状信息 where 作者信息.作者编号!=奖状信息.作者编号
--2005+
select 作者编号 from 作者信息 except select 作者编号 from 奖状信息
select 作者信息.作者编号 from 作者信息 left join 奖状信息 on 作者信息.作者编号=奖状信息.作者
编号
where 作者信息.作者编号 is null
select 作者编号 from 作者信息 where 作者编号 not in (select 作者编号 from 奖状信息)
B正确