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

Answer Posted / appalanaidu

select max(marks) from studentmaster where marks < (select max(marks) from studentmaster)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ssl in sql server?

630


What is sqlcmd?

629


What is normalization of database?

678


What is the function of sql server agent windows service?

627


How to define the name and server for a new dsn?

645






How can you set the threshold at which sql server will generate keysets asynchronously?

657


What information is maintained within the msdb database?

639


How you can find out if an index is useful to the optimizer?

567


What is filter index?

610


What are the advantages of passing name-value pairs as parameters?

741


what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration

677


Explain datetime2 data type in sal server 2008?

613


Explain the categories of stored procedure i.e. System stored procedure, local stored procedure, temporary stored procedure, extended stored procedure, remote stored procedure?

629


What is the use of stored procedure?

591


Write an sql query to sort a table according to the amounts in a row and find the second largest amount.

635