how to find the second highest salary from emp table?
Answer Posted / raju
select top 1 sal from emp
where sal not in (select top 1 sal from emp order by sal
desc ) order by sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
Explain the the delete statements in sql?
What is data type in sql?
What is the maximum number of triggers, you can apply on a single table?
How bulk collect improves performance?
How can I delete duplicate rows?
What is materialized view in sql?
How to change sql*plus system settings?
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 is the difference between cluster and non-cluster index?
What are the advantages of sql?
How do I create a sql script?
What is a parameter query?
How to create your own reports in sql developer?
What is sqlite used for?