How to select nth record from a table?
Answer Posted / andy
select a.id,a.name from dept a
where
1= (select COUNT(b.id) from dept b where b.id>a.id)
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Why I am getting this error when dropping a database in ms sql server?
What is model database in sql server?
What are the properties of primary key?
Name few endpoints exposed by ssrs 2012?
What are the different types of normalization?
What are the different acid properties?
What is oltp (online transaction processing)?
Are null values the same as that of zero or a blank space?
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 do you mean by an execution plan? How would you view it?
How to count duplicated values in a column in ms sql server?
Explain triggers in sql?
What is the ‘fillfactor’?
What are various aggregate functions that are available?
Why use “pivot” in sql server?