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
What are all the ddl commands?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
how do you know if your mysql server is alive? : Sql dba
What is use of trigger?
What is mdb stand for?
Do ddl statements need commit?
What is informix sql?
Describe sql comments?
What is the difference between cross join and natural join?
What is identity column in sql server?
What is implicit cursor in pl sql?
What is a loop in sql?
what are the security recommendations while using mysql? : Sql dba
What are tables and fields in the database?
Define commit, rollback and savepoint?