Write a query to find five highest salaries from EMP table.
(there is a column SALARY)
Answer Posted / seetharam
select * from(select * from emp order by sal desc) where
rownum<=5;
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What are the types of queries in sql?
how to get a list of all tables in a database? : Sql dba
What are local and global variables and their differences?
what is the difference between myisam static and myisam dynamic? : Sql dba
What is procedure and function in sql?
How do you know if a relationship is 2nf?
Can a procedure in a package be overloaded?
What is clustered index sql?
What are the types of functions in sql?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
What is prepared statement in sql?
What has stored procedures in sql and how we can use it?
What is pl sql in dbms?
Why do we need cursor in pl sql?
Which sql statement is used to delete data from a database?