adspace


Write a query to find five highest salaries from EMP table.
(there is a column SALARY)

Answer Posted / vishnu

select level,max(sal) from emp
where level<=5
group by level
connect by prior sal>sal
order by level Asc;

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best sql course?

1064


how many tables will create when we create table, what are they? : Sql dba

1157


what is sql server agent? : Sql dba

1190


what is collation? : Sql dba

1242


What is the current version of sql?

1106


how to start mysql server? : Sql dba

1279


what are the advantages of sql ? : Sql dba

1154


how to use regular expression in pattern match conditions? : Sql dba

1125


what are aggregate and scalar functions? : Sql dba

1142


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


what is schema? : Sql dba

1165


If a cursor is open, how can we find in a pl/sql block?

1252


How do I remove duplicates in two columns?

1202


Do we need to rebuild index after truncate?

1156


Can delete statement be rollbacked?

1065