how to get second highest salary in SQL(as/4000
Answer Posted / deepak
select max(sal) from emp where sal!=(select max(sal) from emp);
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
How do you update f as m and m as f from the below table testtable?
How do you identify a primary key?
How do I trace sql profiler?
What is before trigger?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
Can we use joins in subquery?
What can sql server reporting services do?
Where is sql database stored?
What is the requirement of self-join?
What is sql integrity?
Is sql injection illegal?
How does sql*loader handles newline characters in a record? : aql loader
Why do we create views in sql?
How do you sort in sql?
What are the string functions in sql?