I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / rajat kumar
select top 1 marks from student where marks <(select max(marks) from student) order by marks desc
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do I run sql server 2014?
How retrieve field names from the table in SQL through JAVA code?
Which table keeps information about stored procedures?
Explain the truncate command? : SQL Server Architecture
What are the types of subscriptions in SQL Server replication?
Detail about the hardware which is supported by SQL server?
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
What can be used instead of trigger?
What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas
What is sql server replication? : sql server replication
What is the difference between char and varchar2 datatype in sql?
How to change the password of a login name in ms sql server?
Explain ms sql server reporting services vs crystal reports?
How to disable triggers using "disable trigger"?
What is sql server schema compare? How we can compare two database schemas?