Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
devenoza
Starting Member
14 Posts |
Posted - 2011-09-07 : 13:32:09
|
Hi, could you please help me to find out the second highest value from table? For Ex. if I want to find out second highest salary from Salary table, what should I do? is there a function for this?Thank you! |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
devenoza
Starting Member
14 Posts |
Posted - 2011-09-07 : 16:58:53
|
Sure Tara, I have taken top 2 records from the table and transferred them into temp table and I have deleted the first record from the temp table so the only second record remains. I made it work but I know there must be better way to do this. Any help would be appriciated! |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
devenoza
Starting Member
14 Posts |
Posted - 2011-09-07 : 17:05:00
|
Wow! That was quick. Definitely you're SQL Goddess |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|