how to retrieve the top 3 salaries of the table using rownum

Answer Posted / manivasan.s.,

select salary from salary_table
where rownum <4
order by salary desc

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the sql query to display the current date?

758


What is a string data type in sql?

718


What is pl sql in oracle?

786


What is pls_integer in pl sql?

753


What are all the different types of indexes?

814






What are the different types of a subquery?

715


How do I trace sql profiler?

706


Is vs as in pl sql?

672


How many types of triggers are there in pl sql?

781


What is a heap in sql?

721


1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins

1329


How do you determine the current isolation level? : Transact sql

752


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

871


Can we use pl sql in mysql?

711


What is a sql instance vs database?

765