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 do you create an execution plan?
What is a trigger in sql server?
what are the types of indexes? : Sql server database administration
How optimize sql query with multiple joins in sql server?
Why functions are used in sql server?
what is the difference between Tabular and Matrix report?
last function used in MS Access to convert sql what function will use in sql
What is the difference between cartesian product and cross join?
What is set nocount on?
Explain Reporting Life Cycle?
How to list all field names in the result set using mssql_field_name()?
How do I delete a sql server database?
What is table value parameters (tvp)?
List some case manipulation functions in sql?
What is the cartesian product of the table?