find 2nd highest salary of person using cursor concept?
Answer Posted / krish
select max(sal) frem tbl where sal <(select max(sal) from tbl;
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is Service Broker in sql server 2012?
What is constraints and its types?
I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration
How to create a new schema in a database?
Does a full backup include transaction log?
Where can you find the error log information? : sql server database administration
What is bcp? When does it used?
Explain temporary table vs table variable by using cursor alternative?
What is difference between standardization and normalization?
What is Federation Root Database?
What is use of @@ spid in sql server?
how you can move data or databases between servers and databases in sql server? : Sql server administration
Define union, union all, minus, intersect?
What stored by the tempdb ? : sql server database administration
What is transaction server implicit?