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
What is sql server transaction log file?
What is the difference between Normalization and De-normalization?
What is save transaction and save point?
How to use "if ... Else if ... Else ..." Statement structures in ms sql server?
What are pessimistic lock and optimistic lock?
What is an entity-relationship diagram (erd)?
Name few endpoints exposed by ssrs 2012?
What are alternate keys?
Does a specific recovery model need to be used for a replicated database? : sql server replication
How many triggers are possible per table?
how to do partition in sqlserver
What is the data type of time?
What is a mutating table error and how can you get around it?
What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?
What are the ways available in sql server to execute sql statements?