How to select nth record from a table?
Answer Posted / pallavi attarde
Here N is for Nth record.
SELECT TOP 1 * FROM
(SELECT TOP N * FROM
(SELECT Table.Coloumn1,Table.Coloumn2 from Table)
as d order by d.Coloumn1 desc) as p order by Coloumn1
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
What are acid properties of transaction?
Explain the collation?
How to return the second 5 rows in ms sql server?
What are the properties of primary key?
How can sql injection be stopped? : sql server security
Explain something about security and SQL Azure?
Indexes are updated automatically is the full-text index also updated automatically?
How can you start sql server in different modes?
How to use group functions in the select clause in ms sql server?
Can you tell me some of the common replication dmv's and their use? : sql server replication
What are the properties of the relational tables?
Can we use max in where clause?
What is the use of stored procedure?
How do I partition a table in sql server?
What are different types of join?