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
What is awe?
What do you understand by replication in sql server? Mention the different types of replication in sql server.
What is dirty read?
What is log ldf?
Explain what is it unwise to create wide clustered index keys?
Tell me what is the order in which the sql query is executed?
Explain aggregate functions?
Explain the etl (extraction, transformation, and loading)?
What is the difference between Clustered and Non-Clustered Index?
What is a raid and what are different types of raid configurations?
Is foreign key unique?
What is difference between count (*) and count 1?
How do you make a trace?
List down some advantages of sql stored procedure?
How to change parameter value inside the report?