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

Answer Posted / siva prakasam

SELECT TOP (1) stuMark
FROM Student
WHERE stuMark < (SELECT MAX(stuMark) FROM Student)
ORDER BY stuMark DESC

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between TRUNCATE and DROP?

633


What is the use of @@spid?

575


what is nonclustered index

549


What is join query?

502


Why Master database is required?

607






Write a SQL query to make a column as unique?

632


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

1969


What are the different editions available in sql server 2000?

590


how many type of indexing in database?

583


Explain collation?

625


What are the properties and different types of sub-queries?

568


How to populate a table in sql server?

504


What are xml indexes?

532


What is the dbcc command and why is it used?

573


What do you know about normalization and de- normalization?

473