how to find the second highest salary from emp table?
Answer Posted / udayalakshmij
select emp_name,max(salary) from emp except(select max(salary) from emp);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is union and union all keyword in sql and what are their differences?
How to raise user-defined exception with custom sqlerrm ?
List and explain the different types of join clauses supported in ansi-standard sql?
How can you create an empty table from an existing table?
Can you have a foreign key without a primary key?
What is an implicit commit?
Which is faster truncate or drop?
What is mutating sql table?
Is sql a dbms?
explain the difference between delete , truncate and drop commands? : Sql dba
What is meant by <> in sql?
What normalization means?
Why query optimization is needed?
What is trigger and types?
Why schema is used in sql?