how to find the second highest salary from emp table?
Answer Posted / rahul thakur
select top 1 salary from emp where id not in (select top1 id from emp order by salary desc)order by salary desc.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use having without group by in sql?
How to pronounce postgresql?
What is #table in sql?
how to shutdown mysql server? : Sql dba
what are the properties and different types of sub-queries? : Sql dba
What is aggregate function in sql?
What is the command used to fetch first 5 characters of the string?
what is data integrity? : Sql dba
What is normalization in a database?
What is the need of a partition key?
What are data types in pl sql?
Can you skip header records while loading? : aql loader
what are the types of subquery? : Sql dba
What is synonyms?
What is a heap in sql?