I need to run a job nightly that will get a list of about 20 users with their email address.
I then need to take the users and get a list sales for those 20 users and email them to the individually.
What is the best method of doing this should.
Select username, userid, email from users.
Then I would I need to
Select Sales, amt from sales where sales.userid= users.userid
Then email a seperate report to each of the users.
The sales report can contain up to 200 line items.
any help or suggestions is appreciated.