0% found this document useful (0 votes)
23 views1 page

SQL

The document contains fragments of SQL statements related to selecting employee salaries.

Uploaded by

rishabh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

SQL

The document contains fragments of SQL statements related to selecting employee salaries.

Uploaded by

rishabh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

UPPER- upeercase

employee not a

Select From Employee e1 where (N-1)=


(Select Count(Distint (e2.Salary)) from employee e2
where e2.salary > e1.salary

Swlct top1 salary from (select top2 salary from employee order by dec) As my
table orser by salry asc

select distict (salary) from employee order by slary disc limit 1,1

You might also like