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
How can I create a report based on a query? : sql server management studio
Tell me what do you understand by a view? What does the with check option clause for a view do?
Why do we partition data?
What is a trigger and types of a trigger?
What is the difference between a view and a stored procedure?
What command is used to delete a table from the database in the sql server and how?
When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?
What is a select query statement in ms sql server?
You want to implement the many-to-many relationship while designing tables. How would you do it?
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
What is an inner join?
Do comments need to go in a special place in sql server 2005?
What is row_number()?
What is a print index?
What are constraints?