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
↧