how to retrieve the top 3 salaries of the table using rownum
Answer Posted / nasir iqbal
SELECT * FROM EMP A WHERE 1=(SELECT COUNT (*) FROM EMP B
WHERE B.SAL>=A.SAL)
SELECT * FROM EMP
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the basic sql commands?
What is the use of count (*) in sql?
What is a record in pl/sql?
Which software is used for pl sql programming?
What are sql functions? Describe the different types of sql functions?
how to delete an existing column in a table? : Sql dba
What are the types of operators available in sql?
what is the difference between clustered and non clustered index in sql? : Sql dba
How do I access sql anywhere database?
What are the different types of constraints?
How delete all records from table in sql?
How to use boolean type in select statement?
Explain what is a database?
What is a field in a database?
What is execute immediate?