how do we find every fifth record in a table
Answer Posted / shanmugam
with cte as(
select ROW_NUMBER() over (order by id) as serial,* from tablename
)
select * from cte where serial=5
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is trigger in salesforce?
How do I connect to sql server database?
What are commonly used odbc functions in php?
What are the results of running this script?
What structure can you implement for the database to speed up table reads?
How to change the password of a login name in ms sql server?
What is a collation in ms sql server?
What is bit data type? What's the information that can be stored inside a bit column?
What is the default schema of your login session in ms sql server?
Hi all, can any one please tell me the difference between sql server 2008 and orace 9i
How to name query output columns in ms sql server?
What are partitioned views?
Define compound operators?
What is stretch database in sql server?
in the physical file layout, where should the transaction log be stored in relation to the data file? : Sql server administration