Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Getting a dynamic Sample - topic by smull

$
0
0
I am attempting  to extract Control Groups in our Automated Batch. The table in the batch I hope to extract from contains a Communication_ID and a Customer_id. Each night the no of COMMUNICATION_IDs and CUSTOMER_IDs will vary. How can I write some dynamic SQL that will select a random sample (10%) of customers per COMMUNICATION_ID and can I set a MIN or MAX on this also? I am using SQL Assistant V13..   Any help would be greatly appreciated. Many Thanks

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>