How to get Top 10 Salaries from a Table
Answer Posted / bharath
In Oracle,
select e1.* from emp e1
where &n>(select distinct(COUNT(*)) from emp e2
where e1.sal>e2.sal)order by sal;
Place where n=10
we get,
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is the maximum size of a char data type in db2?
What is the role of schema in the db2 database?
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
What are packages in db2?
How do I delete a table in database?
What is difference between alias and synonym in db2?
what is the responsibility of the construction superintendent
Why do we bind in db2?
What is the syntax for seeing the columns and data types of a table in the db2 database?
What is null indicator in cobol db2?
What is a db2 package?
What is cobol db2?
What is the difference between db2 and oracle?
What is the physical storage length of the data types date, time, and timestamp?
What is null in db2?