![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
![]() |
|
![]() ![]() |
Author | Message |
snigdha_123
Newbie ![]() ![]() Joined: 17Dec2007 Location: India Online Status: Offline Posts: 40 |
![]() ![]() ![]() Posted: 30Jan2009 at 12:00pm |
SQL Query to get second highest salary-Frequently Asked Question in interviews
|
|
Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
![]() |
|
nidhinav
Newbie ![]() Joined: 05Feb2009 Online Status: Offline Posts: 1 |
![]() ![]() ![]() |
Select salary from salary ORDER BY salary DESC LIMIT 1,1
|
|
![]() |
|
skumar75.qa
Newbie ![]() Joined: 18Sep2009 Online Status: Offline Posts: 16 |
![]() ![]() ![]() |
Query for second highest Salary: select max(salary) from Employee where salary >(select max(Salary) from employee;
|
|
![]() |
|
skumar75.qa
Newbie ![]() Joined: 18Sep2009 Online Status: Offline Posts: 16 |
![]() ![]() ![]() |
Query for second highest Salary: select max(salary) from Employee where salary < (select max(Salary) from employee order by salary
Edited by skumar75.qa - 30Sep2009 at 1:38am |
|
![]() |
|
![]() ![]() |
||
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.