how to retrieve the top 3 salaries of the table using rownum
Answer Posted / manoj tcs
select * from (select * from emp order by sal desc)
where rownum < 4;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is rowid in sql?
how to enter characters as hex numbers? : Sql dba
What are records give examples?
How to add a column ‘salary’ to a table employee_details?
What is left join in postgresql?
What does the argument [or replace] do?
How will you distinguish a global variable with a local variable in pl/sql?
How to execute a stored procedure?
What is rownum in sql?
What is nosql db?
What is a data manipulation language?
What is an emotional trigger?
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
What is oracle and pl sql?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5