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 difference between ddl,dml and dcl commands?
What is 3nf normalization?
Explain syntax for viewing, dropping and disabling triggers?
What is the difference between ddl and dml?
What is the concept of optimization?
What is a join in sql?
How to copy data from one table to another table?
Does union all remove duplicates?
What is difference between inner join and join?
What do you understand by triggers and mention the different types of it?
What are system databases into sql server (2005/2008)?
What is a field in a table?
How to replace given values with null using nullif()?
Write a program to fetch first 10 records from a file?
What are the different authentication modes in sql server?