how to retrieve the top 3 salaries of the table using rownum
Answer Posted / seema
select sal from (select distinct sal from emp order by sal
desc ) where rownum < 3;
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is foreign key in sql with example?
What is partition in sql query?
Is primary key always clustered index?
How can I speed up sql query?
How to run sql functions in pl/sql?
Is a view faster than a stored procedure?
What are different sql data types?
what are date and time functions in mysql? : Sql dba
Does truncate need commit?
what is the difference between char_length and length? : Sql dba
How can check sql version from command line?
What are all the ddl commands?
what are enums used for in mysql? : Sql dba
How does rowid help in running a query faster?
What do you mean by dbms? What are its different types?