how to retrieve the top 3 salaries of the table using rownum
Answer Posted / swapnareddy
select sal from emp a where 3>(select
count(distinct(sal))from emp b where a.sal<b.sal);
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is a sql statement?
what is clause? : Sql dba
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 pl sql block structure?
Which is better join or subquery?
What is the best partition size for windows 10?
Explain the difference in execution of triggers and stored procedures?
How do I remove duplicates in two columns?
What is scope and visibility in PL/SQL?
What is on delete set null?
what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba
What is rename in sql?
What is the starting oracle error number?
Is it possible to read/write files to-and-from PL/SQL?
How do you delete a table?