G
Guest
Hi another rookie question!!!
I have 2 tables, one which records contacts with clients, and another which
records the services which they recieve...
I need to know for each contact whether or not the client is recieving
services at the point of contact.
To make this a little more difficult, i need to be able to do this in one
block of SQL as i am transposing this to business objects.
My Contacts Table (CONTACTS)
CONTACT ID
PERSON ID
DATE OF CONTACT
SERVICE AGREEMENTS
AGREE ID
PERSON ID
START
END
One person may have many services all starting at different times and may
have a few contacts over the year. I need a query that pulls back only
clients that have a contact date which is at a point where that client has no
"open" services.
Any pointers???
Thanks,
Mark
I have 2 tables, one which records contacts with clients, and another which
records the services which they recieve...
I need to know for each contact whether or not the client is recieving
services at the point of contact.
To make this a little more difficult, i need to be able to do this in one
block of SQL as i am transposing this to business objects.
My Contacts Table (CONTACTS)
CONTACT ID
PERSON ID
DATE OF CONTACT
SERVICE AGREEMENTS
AGREE ID
PERSON ID
START
END
One person may have many services all starting at different times and may
have a few contacts over the year. I need a query that pulls back only
clients that have a contact date which is at a point where that client has no
"open" services.
Any pointers???
Thanks,
Mark