I have 400K records on my table. Now I wanted you pull out random records that falls every 79th records from top to bottom. How can you do that on sql?
Your help is much appreciated.
thanks,
DM
Your help is much appreciated.
thanks,
DM
Msg 102, Level 15, State 1, Line 1 Incorrect syntax near 'limit'.
SELECT *,
ROW_NUMBER() OVER (ORDER BY RAND()) AS 'RowNumber'
FROM users with (nolock)
where RowNumber between 79 and 0
Comment