how to find the second highest salary from emp table?
Answer Posted / gurvinder
select max(sal)from emp where sal in(select sal from emp minus select max(sal) from emp);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the advantage of index in sql?
What is rowid in sql?
What are the various levels of constraints?
What is primary key and foreign key?
What is right join in sql?
what are enums used for in mysql? : Sql dba
How do I count records in sql?
What is a system versioned table?
What is the difference between syntax error and runtime error?
What is multiple partition?
Write a sql select query that only returns each name only once from a table?
Can sql function call stored procedure?
Can I call a procedure inside a function?
What is a database trigger?
Explain how can you save or place your msg in a table?