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
How does normalization work?
What is attribute? : sql server analysis services, ssas
What is correlated subquery in sql server?
How to list all stored procedures in the current database using ms sql server?
Explain cross join or cartesian product in sql?
What is the contrast between sql and mysql?
Why use view instead of a table?
explain databases and sql server databases architecture? : Sql server database administration
What is the minimum recommended amount of ram for sql server 2012 enterprise?
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
Explain cdc and sql injection?
What is BCP? When does it used in sql server 2012?
Can we do dml on views?
Do you know what is rank function?
what is bit datatype and what's the information that can be stored inside a bit column? : Sql server database administration