Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / naresh
select sal from emp e where 2= (select count(distntsal) from
emp y where e.sal<=y.sal);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we use threading in pl/sql?
How can you fetch first 5 characters of the string?
What is sql injection owasp?
What is pl sql block structure?
How can we find duplicate records in a table?
What is difference between stored procedure and trigger?
How can you select unique records from a table?
What is cartesian join in sql?
Is sql considered coding?
Explain the difference between rename and alias?
What is a schema? How is it useful in sql servers?
How do I debug a stored procedure?
What is user in sql?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
Write a sql query to find the names of employees that begin with ‘a’?