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

Answer Posted / pravin more

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

Is This Answer Correct ?    53 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What command would you use to add a column to a table in sql server?

966


What is the sql server 2000 version number?

763


Where do we use trace frag?

731


How to update values in a table with update statements in ms sql server?

731


Write a program to fetch first 10 records from a file?

755






How you can change a cross join into an inner join?

711


What is open database communication (odbc)?

741


What are the advantages to use stored procedures?

775


How to check status of stored procedure in sql server?

652


Do you know what is a with(nolock)?

790


what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?

726


Is foreign key unique?

740


What is CTE in SQL

704


Explain different types of lock modes in sql server 2000?

680


How to view existing indexes on an given table using sp_help?

795