How to select nth record from a table?
Answer Posted / roxy
select top 1 * from (select top n * from tbl order by col1
desc) tbl order by col1 asc
where n = nth number in the list
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
What is hot add cpu in sql server 2008?
What extended events?
Which table keeps information about stored procedures?
What are the disadvantages of indexes?
What is global temp table?
How to test values returned by a subquery with the in operator?
What is normalization? What number of normalization shapes are there?
What happens if the update subquery returns multiple rows in ms sql server?
What are the benefits of normalization?
What is the difference between a stored procedure and a user defined function?
What is difference between clustered index and non clustered index?
What is BCP? When does it used in sql server 2012?
What is the difference between an index and a unique index?
Can group by and orderby be used together?