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 the use of stored procedure?
What is difference between views and stored procedures?
What is Sqlpaging in SqlServer 2005 ?
What encryption security is available in sql azure?
How does Report Builder support Analysis Services cubes?
After creating the cube, if we added a new column to the oltp table then how you add this new attribute to the cube? : sql server analysis services, ssas
How do I completely remove sql server instance?
Define outer join?
What is snapshot parameter in ssrs?
How to find the source of a table in sql server?
What is service broker?
Can sql servers linked to other servers like oracle?
What are different types of roles provided by ssrs?
What is a transact-sql statement?
Tell me what is log shipping?