How to select nth record from a table?
Answer Posted / rathika
Answer #7 should be
select top 1 * from (select top n * from tbl order by col1
asc) tbl order by col1 desc
where n = nth number in the list
| Is This Answer Correct ? | 8 Yes | 7 No |
Post New Answer View All Answers
How to count duplicated values in a column in ms sql server?
How do you identify a foreign key?
How many types of keys are there?
What is store procedure? How do they work? When do you use?
When columns are added to existing tables, what do they initially contain?
What is difference between delete & truncate commands?
Do you know what is sql injection?
What is a rownum?
How to find the source of a table in sql server?
What is the difference between ‘having’ clause and a ‘where’ clause?
What is a partition function in sql server?
What is cdc in sql server?
Is foreign key unique?
What are the new features are introduced in sql server 2012 reporting services?
Where can you find the error log information? : sql server database administration