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

阅读 36

2024-05-26


--########## 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)

0 0 举报