I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / kunal sain
select mark from student s
where 1=(select count(*) from student s1
where s1.mark<s.mark);
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is a cube? : sql server analysis services, ssas
What is the difference between a unique key and primary key?
Explain powershell included in sql server 2008?
What is the web service used for reporting services?
What is the difference between locking and multi-versioning?
How each E-R model constructs can be mapped to the relational model?
What are the different types of upgrades that can be performed in sql server?
What is data compression?
Can you force a query to use a specific index?
What is the name of the Database which IBM mainframe uses?
What is database replication? What are the different types of replication you can set up in sql server?
How to remove duplicate rows from table?
How to modify the underlying query of an existing view?
What is the sql case statement used for?
What command is used to rename the database?