0
点赞
收藏
分享

微信扫一扫

头歌OpenGauss数据库-F.连接查询与子查询第3关:IN、ANY、ALL嵌套子查询


--########## Begin ##########

select position,salary from tb_salary where 
salary > ALL 
(select salary from tb_salary where position='Java');

select position,salary from tb_salary where salary 
> ANY (select salary from tb_salary where position='Java');

select position,salary from tb_salary where salary 
IN (select salary from tb_salary where position='Java');
--########## End ##########

 

举报

相关推荐

0 条评论