I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / b.bathakaraithangam,giri
select * from student where mark=(select max(mark) from
student where mark not in (select max(mark) from student))
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Do you know what are the steps to process a single select statement?
What are the types of processing and explain each? : sql server analysis services, ssas
Explain about Normalization?
How can you know if the row fetched from cursor is still valid in underlying table?
What is database black box testing?
How to transfer data from a cursor to variables with a "fetch" statement?
How to disable a login name in ms sql server?
What is sql server database?
What part does database design plays a role in performance of an sql server-based application?
what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration
What is bit data type?
What are group functions in query statements in ms sql server?
What are the advantages of using stored procedures in sql server?
Difference between report and query parameter.
What is the difference between migration and upgradation in sql server?