Hello all,
Please help with a pointer in the right direction. I have something working, but I am sure there is a better (quicker) way to do this.
I have two tables, People and Event.
People contains an ID and a date range.
Events contains the ID, a date for an event, and about 30 flags regarding what happened at the event.
What I need to do is summarise what happened for each person on all 30 flags for the date range,
ie ID1, Date1 – Date2, 3 phone calls, 4 visits, 0 emails, etc etc
At the minute I am using recordsets to query the Event table and then rowcount properties for the number of times each of the 30 separate things happened.
This works fine, but for each person I am running 30 SELECT queries, which is obviously not speedy.
Can someone please suggest another way that I can do this? There must be one, and I don’t want to leave this as “its not broken, so don’t fix it”.
Thanks in advance for any suggestions.
j