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 to connect php with different port numbers?
What is explicit mode in sql server?
What is use of dbcc commands?
How to create nested stored procedure?
Explain system rowset functions?
What does the not null constraint do?
How to rebuild all indexes on a single table?
Explain the rules for designing files and file groups in sql server?
What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?
What is the optimization being performed in oracle and SQL Server?
How to select some specific columns from a table in a query in ms sql server?
Sql server reporting services vs. Crystal reports.
What is factless fact table? : sql server analysis services, ssas
Does a sql server 2005 select statement require a from?
Do you know what are the restrictions that views have to follow?