write a query for the fifth highest salary?

Answer Posted / prasanna

select max(sal) from emp where sal not in (select Top 4 sal
from emp order by sal desc)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have single column in a file. Input 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 my output is file 1 have 1,2,3,10,11,12 file 2 have 4,5,6,13,14,15 and file 3 have 7,8,9 how is it possible in datastage

1193


What are different types of clusters present?

597


what is tkprof tool and how it is used???

2370


Please post the scenerois for writing the complex sql queries , for my practice.Can be any query if you cannot solve.

2064


What is the candidate key used for?

622






can i use the commands "modify" and Change in DB2 to alter my column datatype and its name in a table?

1666


What are the advantages of normalizing a database.

596


Explain phantom deadlock?

778


Differentiate between delete and truncate table?

629


aht is the difference b/w network & hierarchial & relational dbms????

1770


HOW WE PASS PARM PARAMETERS TO CL VARIABLES FROM RPGLE?

2145


Given a table of Player which contains Sno and player name, write a query which finds all possible Table Tennis doubles pairings.

919


What are the advantages of views in a database?

642


what is the full procedure for using store procedure in informatica7.1?

1808


What advantages does DBMS have over traditional file systems?

591