Find 2nd Highest salery in emp table
Select* from emp where &n=
select * count from emp where (salery >=emp.salery)
Enter n value 2
These query is correct or not. Tell me any other methods.
Answer Posted / ramu
by using sub quries we can do
select * from emp where sal=select max(sal) from emp where
sal<select max(sal) from emp;
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Explain how many types of relationship?
What is the library index called?
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
What is the difference between Normalization and De-normalization?
How to make conditional sum in ssrs?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?
what is a transaction and what are acid properties? : Sql server database administration
What stored by the msdb?
What is the order by used for?
Do you know what is sql service broker?
Why do we backup Active Directory ?
What does the update command do?
How to see the event list of an existing trigger using sys.trigger_events?
How to convert numeric values to integers in ms sql server?
Can group by be used without aggregate functions?