I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / adarsh pandey
select distinct mark from student_mark s
where (select count(distinct s1.mark) from student_mark s1
where s1.mark>=s.mark )=4;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Do you know what are the steps to process a single select statement?
how we use window authentication connection with sql server.?
What is pivot and unpivot?
Explain what are the different index configurations a table can have?
Can you roll back the ddl statement in a trigger?
How many replicas are maintained for each sql azure db?
How many types of the database links?
How to enforce security in sql server? : sql server security
What number sorts of privileges are accessible in sql?
What are distributed partitioned views?
Is the log file is a part of file group?
what is a live lock? : Sql server database administration
How to write an inner join with the where clause in ms sql server?
Mention the different authentication modes in sql server.
Difference between drill down and drill through report.