how to find 2nd highest salary in random database salary of employer.....
Answer Posted / rajasekhar.s
select distinct a.sal from emp a where
n=(select count(distinct b.sal)
from emp b where a.sal<=b.sal)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is mariadb faster than mysql?
How we can see all indexes defined for a table in mysql?
How much does mysql enterprise cost?
How do I create a schema in mysql?
What are the advantages of mysql in comparison to oracle?
What is InnoDB?
What is a select query?
How do I connect to a mysql database?
What is 'mysqlshow'?
How to see table's field formats or description of table .
What is innodb mysql?
What is mysql enterprise edition?
What is 'mysqlcheck'?
What is the default port of mysql server?
Write a query to fetch duplicate records from a table using mysql?