I have student marks in a student table. I need second
highest mark .Then what will the query for this?

Answer Posted / koti,khammam

select max(mark) from student where mark not in (select max
(mark) from student)

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a join in sql?

657


Why do we backup Active Directory ?

704


What is the purpose of grouping data in a report?

624


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

602


How to defragment table indexes?

630






Which table keeps information about stored procedures?

615


Explain DBCC?

646


How dts is used to extract, transform and consolidate data?

671


What are the purposes of floor and sign functions?

633


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

683


What are dml (data manipulation language) statements in ms sql server?

630


what are different types of raid configurations? : Sql server database administration

593


Explain why variables called the most powerful component of ssis?

617


How many types of functions are there in sql server?

537


What is a partitioned view?

678