how to find the second highest salary from emp table?
Answer Posted / jyotiprokash
Select * from emp e1 where 1=(select count(distinct sal) from emp e2 where e1.salary<e2.salary)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
how to extract a unit value from a date and time? : Sql dba
Is sql port 1433 encrypted?
What is user in sql?
What is an escape character in sql?
How many primary keys can a table have?
What is clustered index sql?
what are the different index configurations a table can have? : Sql dba
How insert into statements in sql?
How subquery works in sql?
Are left and right joins the same?
What is integrity in sql?
what is unique key constraint? : Sql dba
Is pl sql a scripting language?
what are the authentication modes in sql server? : Sql dba
Can a foreign key be null?