I have student marks in a student table. I need second
highest mark .Then what will the query for this?
Answer Posted / poomanibe
with temptab as
(
select row_number() over(order by substring(marks,1,2)) as
rownum,* from Student
)
select * from temptab where rownum=1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
what is a join and explain different types of joins? : Sql server database administration
Explain different types of collation sensitivity?
what is a deadlock? : Sql server database administration
Can you explain important index characteristics?
Which operator do you use to return all of the rows from one query except rows are returned in a second query?
How to get a list of all tables with "sys.tables" view in ms sql server?
Your table has a large character field there are queries that use this field in their search clause what should you do?
What are the different types of backups that exist?
What is the Disadvantage of indexed sequential file.
Explain what is the purpose of sql profiler in sql server?
How to delete duplicate rows in sql server?
Will sql server 2005 allow you to reduce the size of a column?
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?
Does the order of columns in update statements matter?
Can group functions be used in the order by clause in ms sql server?