how to find the 2nd higgest salary in the column for example
take table name is employee?
And also find bottom 2nd lowest salary ?
Answer Posted / pankaj kumar
if am not wrong we can also do the same thing by using aggreate function like Min or Max..
Like if i want to know 4th Highest Salary then i can
SELECT MIN(Sal) FROM TableName
WHERE Sal IN
(SELECT TOP 4 Sal FROM TableName ORDER BY Sal DESC)
Regards
Pankaj Kumar
pankaj.arrah@gmail.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain about the base class library provided by microsoft.net?
What are the new features of .net 2.0?
HttpHendler and HttpModules
Whate are resource files? How are they used in .net?
Explain about continuable exceptions?
What is .net viewstate?
Explain the race around condition? How can it be overcome? : Dot net architecture
What is a managed code is dim fs as filestreamobject is a managed code? : .NET Architecture
What is the purpose of Treeview control?
what is the method while we are using adapter and dataset ?
What is textbox control of .net mobile? : Microsoft dot net mobile
What are the different pipelining hazards and how are they eliminated? : Dot net architecture
Explain the process of gc?
What is a managed code? : Dot net architecture
What is WPF and WCF?