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
Why functions are used in sql?
which types of join is used in sql widely? : Sql dba
What is a schema sql?
What are the limitations of sql express?
Can a varchar be a primary key?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
What are sql indexes?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
Do we need to create index on primary key?
What are the steps for performance tuning.
What is offset in sql query?
What is form and report?
How delete a row in sql?
What is sql character function?
Can we call procedure in select statement?