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
How can windows applications connect to sql servers via odbc?
What are the triggers in sql?
What is coalesce and check constraint in sql server?
What is onf in normalization form?
Which sql server table is used to hold the stored procedure script?
Do you know what are the restrictions that views have to follow?
How do I view a stored procedure in sql server query?
What are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
which table keeps the locking information? : Sql server administration
Mention the differences between substr and charindex in sql server.
What is sql profiler. What are the default templates with it? : sql server database administration
Describe in brief databases and sql server databases architecture.
Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture
What encryption security is available in sql azure?
Define right outer join in sql server joins?