I have a table which contains about 43,500 client transaction records for about 2000 different clients. I need to develop some code to extract a random sample of 3 transaction records for each client. Ideally I'd also like to be able to select the clients I sample from - ie for clients 1,4,5,6,22,31 and 32 randomly select 3 transactions - any help would be gratefully received!