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 is coalesce sql?
what are all types of user defined functions? : Sql dba
how to create a table index in mysql? : Sql dba
How do you update f as m and m as f from the below table testtable?
What is rownum in sql?
Which is better varchar or nvarchar?
What are the types of join in sql?
What are the set operators in sql?
What is raid? How does it help storage of databases?
What is pragma in pl sql?
Does truncate table reset auto increment?
What is compilation error in pl sql?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is difference between sql and excel?
Explain alias in sql?