adspace
Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / yogesh sharma
SELECT ENAME,SALARY FROM (SELECT ENAME,SAL FROM EMP ORDER BY SALARY DESC ) WHERE ROWNUM<6;
| Is This Answer Correct ? | 77 Yes | 13 No |
Post New Answer View All Answers
what is sql server agent? : Sql dba
what are all the common sql function? : Sql dba
what is collation? : Sql dba
what are the advantages of sql ? : Sql dba
Is inner join faster than left join?
If a cursor is open, how can we find in a pl/sql block?
how to start mysql server? : Sql dba
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
how to use regular expression in pattern match conditions? : Sql dba
Can we use distinct and group by together?
Is primary key clustered index?
what is dbms? : Sql dba
What is the current version of postgresql?
what is schema? : Sql dba
Does group by remove duplicates?