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 the difference between for auto and for nested?
What is a table called, if it has neither cluster nor non-cluster index? What is it used for?
What is an example of a foreign key?
What is explicit cursors?
mention different types of relationships in the dbms?
What is difference between stored procedure and user defined function?
How to stop a loop early with break statements in ms sql server?
How many levels of sp nesting are possible?
What is 1nf 2nf?
Why union all is faster than union?
How we can compare two database data?
How do you implement session management in SQL Server mode?
How do I find the sql server database version?
How can I know what locks are running on which resource?
Mention the 3 ways to get a count of the number of records in a table.