I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / kumaravel
try using this...
select top 1 from student where marks in (select top 2 from
student order by marks desc)
| Is This Answer Correct ? | 16 Yes | 10 No |
Post New Answer View All Answers
What is the purpose of data source?
What is the default value of an integer data type in sql server 2005?
How to loop through result set objects using mssql_fetch_array()?
What is forward - only cursors / read only cursor?
What are the various editions of sql server 2017 that are available in the market?
How do I create a partition table in sql server?
How to create a new table in a given schema?
What are the properties of the relational tables?
Do you know how to implement service broker?
What to perform pattern match with the like operator?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
Explain the difference between functions and stored procedures in sql server?
Do you know what are acid properties?
What is cte (common table expression)?
What is a livelock?