Monday, 16 December 2019

find max sal

select * from emp a where 1 (select count(distinct(b.sal)) from emp b where b.sal>=a.sal)

No comments:

Post a Comment

find max sal

select * from emp a where 1 (select count(distinct(b.sal)) from emp b where b.sal>=a.sal)