I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / kunal sain
select mark from student s
where 1=(select count(*) from student s1
where s1.mark<s.mark);
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is transaction server auto commit?
Explain steps of normalization?
Can select statements be used on views in ms sql server?
Can we do dml on views?
Define normalisation?
what is unique and xaml nonclustered index
What is the dbcc command and why is it used?
Tell me about builtinadministrator?
What is the use of floor function in sql server?
Is it true that rules do not apply to data already existing in a database at the time the rule is created?
What is the bookmark lookup and rid lookup?
What is data block and how to define data block size?
Types of Authentications in Sql Server? How user gets authenticated through windows authentication?
How to convert a unicode strings to non-unicode strings?
Explain filtered indexes?