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
Differentiate between SQL and ORACLE joins and write their syntax.
What is the difference between dbcc indexdefrag and dbcc reindex?
What is the log shipping?
Define ACID properties in a Database?
tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
What is the default port for SQL Server over a firewall?
What is bit data type?
how to use DTS package in 2000,2005,2008 in sql server
what are triggers? : Sql server database administration
Explain the functionalities that views support?
What are the approximate numeric data types?
why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration
How can we rewrite sub-queries into simple select statements or with joins?
What happens if you insert a duplicate key for the primary key column in ms sql server?
How to check if stored procedure is running in sql server?