I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / rakesh
In Oracle
select marks from
(select marks from
(select marks from students order by marks desc)
where rownum<3
order by marks asc)
where rownum<2
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?
What is table constraint?
How many databases instances are there in sql server 2000?
How to stop log file growing too big?
How do you set a trace flag in sql server?
Explain the cursor lock types?
What is the purpose of the tempdb database?
How to configure odbc dsn with different port numbers?
What is data source object?
How to rebuild all indexes on a single table?
What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?
What are the advantages of using third-party tools?
What are number line correlation administrators will use while working with a subquery?
Explain how to use linked server?
What are the five characteristics of good data?