I have a table that is based on a client_cd,
client_cd, client_nm ..........
It has 1.7 billion rows with varying cardinality for each client.
All I want to do is to set up a sample table having exactly 100 rows
for each client_cd s. I have tried recursion but have problems with
sets (cannot use fetch first 100 rows only and union all inside a
CTE).
Has anyone attempted this? if yes, please help.
client_cd, client_nm ..........
It has 1.7 billion rows with varying cardinality for each client.
All I want to do is to set up a sample table having exactly 100 rows
for each client_cd s. I have tried recursion but have problems with
sets (cannot use fetch first 100 rows only and union all inside a
CTE).
Has anyone attempted this? if yes, please help.
Comment