find 2nd highest salary of person using cursor concept?
Answer Posted / b.mamatha
select * from tabl1 where salary=(select max(salary) from
tabl1 where salary<(select max(salary) from tabl1)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are indexes in ms sql server?
What are the reporting services components?
how can u get last observation in an unknown dataset ?
What are database states in ms sql server?
Explain how many normalization forms?
What stored by the tempdb ? : sql server database administration
What is the difference between dropping a database and taking a database offline?
How you trouble shoot when any job fails
How you can find out if an index is useful to the optimizer?
What is a trigger and types of a trigger?
What are the properties and different types of sub-queries?
Explain filestream storage of sql server 2008?
What are pages and extents? : SQL Server Architecture
Can we call stored procedure in view in sql server?
What are the basic functions for master, msdb, model, tempdb databases?