I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / jyoti bikash panda
select a.marks from student a where(select count(b.marks)
from student b where a.marks<=b.marks)=2
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
explain extended properties
Write a query to include a constraint, to check whether the employee salary is greater than 5000?
When columns are added to existing tables, what do they initially contain?
how you can move data or databases between servers and databases in sql server? : Sql server administration
What is multilevel indexing?
What is the difference between system objects and user objects?
How can you tell if a database object is invalid?
How to generate create function script on an existing function?
What is subquery? Explain the properties of a subquery?
Explain syntax for disabling triggers?
What is factless fact table? : sql server analysis services, ssas
Can sql servers linked to other servers like oracle?
Mention the differences between local and global temporary tables.
What is set nocount on and what is set nocount off?
What is the difference between Clustered and Non-Clustered Index?