how to find the second highest salary from emp table?
Answer Posted / radha sri seshu
second method is
select sal from emp e1 where 2=(select count(distinct(sal))
from emp e2 where e1.sal<=e2.sal);
Is This Answer Correct ? | 35 Yes | 22 No |
Post New Answer View All Answers
What is a left inner join?
What is constant in pl sql?
How can you fetch common records from two tables?
What is function and procedure?
What is rank () in sql?
What is mutating sql table?
What is insert command in sql?
How many types of tables are there?
Which version of sql do I have?
how to get a list of columns in an existing table? : Sql dba
How to get list of all tables from a database?
What is database sql?
Is mariadb a nosql database?
What is dynamic sql in pl sql?
discuss about myisam index statistics collection. : Sql dba