how to find the second highest salary from emp table?
Answer Posted / krishna kishore
select top 1 salary from emp where salary in
(select top 2 salary from emp order by salary desc)
order by salary
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How many tables can you join in sql?
What is the usage of when clause in trigger?
What is sorting in sql?
How many types of keys are there in sql?
What is output spooling in sql*plus?
What is trigger in pl sql?
What is the starting oracle error number? What is meant by forward declaration in functions?
What is posting?
How do I count records in sql?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
Why are sql stored procedures used?
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 commands?
Do we need to rebuild index after truncate?
How to create your own reports in sql developer?