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
How to retrieve error messages using odbc_errormsg()?
How will you optimize a stored procedure optimization?
Write a sql query to sort on different column name according to the parameters passed in the function?
What is the sql server agent?
What is the use of nvl work?
How to list all field names in the result set using mssql_field_name()?
How to execute stored procedure and set temp table in sql server?
How to set database to be single_user in ms sql server?
What is the default fill factor value?
How to delete an existing row with delete statements in ms sql server?
What are page splits? : SQL Server Architecture
What is sql server query analyzer?
What it means to be triggered?
What is Sqlpaging in SqlServer 2005 ?
What is the difference between functions and stored procedures?