Hi everyone.
Here's my current situation. I have tables consisting of customer information for this year's media campaigns. They all have the same fields. I need to aggregate these into one table. The trick is that the same customer may have been campaigned in multiple times and I need to capture the earliest campaign and omit the later campaign.
For example:
tblCampaignJan1
CustID, EnrollmentID, CampaignDate
1, 123, 1/1/2011
tblCampaignFeb1
CustID, EnrollmentID, CampaignDate
1, 123, 2/1/2011
My aggregate table will need to only contain the record from the earliest campaign date. My current ideas involve multiple queries. is it possible to do this in one shot?