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
How do you use a subquery to find records that exist in one table and do not exist in another?
What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?
what are different types of raid configurations? : Sql server database administration
what stored procedure would you use to view lock information? : Sql server administration
Find first and last day of current month in sql server
What is normalization and its types?
What are the main differences between #temp tables and @table variables and which one is preferred?
Can you explain different types of joins?
How to create an multi-statement table-valued function?
What is precedence constraint?
What is sql server replication? : sql server replication
Write a code to select distinct records without using the DISTINCT keyword.
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
Explain what is lock escalation?
Other than truncate statement, which other command can by-pass the trigger on the tables?