how to find the second highest salary from emp table?
Answer Posted / kasiraya
SELECT SALARY
FROM
(
SELECT ROW_NUMBER() OVER( ORDER BY SALARY DESC) AS
SL_NO,SALARY
FROM EMP
ORDER BY SALARY DESC
)
WHERE SL_NO=2
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba
how to select unique records from a table? : Sql dba
What is substitution variable?
what is a primary key? : Sql dba
What are the types of join in sql?
how to use regular expression in pattern match conditions? : Sql dba
Does pl/sql support create command?
What is the maximum database size for sql express?
What are the 3 modes of parameter?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
What is the use of partition by in sql?
Sql technical questions
Explain some predefined exceptions.
Can we create view in stored procedure?
What are system versioned tables?