Answer Posted / saraswathi muthuraman
SQL> desc emp_test;
Name
-----
EMP_NO SAL
DEP_NO
SQL> select * from emp_test;
1001 10000 11
1001 10000 11
1002 100 11
1003 20010 11
1004 99 11
1005 50 11
1006 25 11
SQL> select a.EMP_NO,a.SAL,a.DEP_NO from emp_test a, (select
SAL,rank() over(order by sal desc) as rank_val from emp_test
group by sal)b where
2 a.sal=b.sal and b.rank_val =3;
1002 100 11
1 row selected.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the function of myisamchk?
What is the data type for image?
What is the difference between char and varchar?
How to get the current date in mysql?
What is mvcc in mysql?
How do I create a mysql username and password?
What is 'mysqlcheck'?
What is data in mysql?
What is max_used_connections in mysql?
How does triggers work in mysql?
What is mysql database used for?
How do I start and stop mysql server?
What are the mysql database files stored in system ?
Is microsoft sql same as mysql?
What is the maximum no of columns a table can have?