Answer Posted / moorthy t
select n,* from(select rownum n,* from (select * from table
where group by (sal) order by (sal) desc)) where n=2;
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Give me a SQL Query to find out the second largest company?
What are rows and columns?
Difference between primary key and clustered index?
How do I find the sql server version?
You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?
What is plan freezing?
When does a workload on SQL Azure get throttled?
If any stored procedure is encrypted, then can we see its definition in activity monitor?
How to find related tables in sql server?
What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?
What is a constant or literal in ms sql server?
What is format parameter in ssrs?
Define master database?
What is the difference between substr and charindex in the sql server?
What is the difference between composite index and covering index?