how to find the second highest salary from emp table?
Answer Posted / sudha
select max(sal) from emp where sal <(select max(sal) from
emp);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is a unique key ? : Sql dba
The in operator may be used if you know the exact value you want to return for at least one of the columns.
What is primary key sql?
Are stored procedures faster than dynamic sql?
Is stored procedure faster than query?
What is the maximum number of triggers, you can apply on a single table?
How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?
What is sap sql?
Why do we need cursors in pl sql?
Can a varchar be a primary key?
What is sqlerrm?
can a stored procedure call itself or recursive stored procedure? : Sql dba
Does sqlite need a server?
Why do we need cursor in pl sql?
What is the command used to fetch first 5 characters of the string?