Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / reddy
select distinct (a.sal) from emp a where &n = (select count
(distinct(b.sal) from emp bmwhere a.sal<=b.sal)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is truncate ddl or dml?
What are the different types of functions in sql?
What is information schema in sql?
what is sql server agent? : Sql dba
Explain the uses of control file.
Why do we use cursors?
What are sql functions? Describe in brief different types of sql functions?
Define union, minus, union all, intersect ?
explain about mysql and its features. : Sql dba
What is query execution plan in sql?
What is set serveroutput on in pl sql?
what are numeric data types? : Sql dba
What is embedded sql what are its advantages?
What is difference between stored procedures and application procedures?
what is the difference between nested subquery and correlated subquery?