how to find the second highest salary from emp table?
Answer Posted / shankar panda
SELECT DISTINCT(E.SALARY) FROM EMPLOYEES E WHERE 2=(SELECT COUNT(DISTINCT D.SALARY) FROM EMPLOYEE D WHERE D.SALARY >= E.SALARY)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the difference between undefined value and null value? : Sql dba
Name the different types of indexes in sql and define them.
How do you pronounce sql?
how to shut down the server with 'mysqladmin'? : Sql dba
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
What is the use of double ampersand (&&) in sql queries? Give an example
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
What is sql dialect?
How can I delete duplicate rows?
How do I run a sql query?
What are instead of triggers?
what are local and global variables and their differences? : Sql dba
Can a foreign key be a duplicate?
What does rownum mean in sql?
What is cartesian join in sql?