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

Answer Posted / suman

select max(mark) from student where mark <
(select max(mark)from student)

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inline table-value user-defined function?

690


What is the cpu pressure?

664


Explain temporary table vs table variable by using cursor alternative?

611


How do I debug a stored procedure in sql server?

622


How to connect php with different port numbers?

641






Explain the advantages of merge replication?

593


How to loop through result set objects using odbc_fetch_row()?

528


hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail

1871


Why can there be only one clustered index and not more than one?

624


query processing

1816


What is sql azure database?

190


Do you know what is difference between stored procedure and user defined function?

700


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

757


What are the different types of Indexes available in SQL Server?

601


Working with TLogs

1538