T
The Chairman
Hi, thanks for reading this, I apologize if I have the wrong group or
something. If so please point me in the right direction.
Anyway, I am trying to run a query that uses 2 tables - BOOKINGS and
CONTACTS.
They both contain customer information, identified and kept together by
a customer id number that both use. It is called CSSID in the CONTACTS
table, and CONTACTNO in the BOOKINGS table.
I would like to do 2 things:
1) Filter out any records whose CSSID in the CONTACTS table exists as
the CONTACTNO in the BOOKINGS table. In other words, if the contact has
purchased a service, it will appear in the BOOKINGS table. If the
contact hasn't, there will be no reference to them. I want to filter in
the contacts table people who have any listing in the bookings table, so
I am only able to see customers who have not bought anything.
2) Seperately, I would like to filter the CONTACTS table conversely, by
only showing contacts who have a listing in the BOOKINGS table. Then,
further filter that by the field COURSENAME ("Level One", "Level Two",
etc.)
Let me know if you need more data.
Thanks tremendously for your help with this!!
Ryan
something. If so please point me in the right direction.
Anyway, I am trying to run a query that uses 2 tables - BOOKINGS and
CONTACTS.
They both contain customer information, identified and kept together by
a customer id number that both use. It is called CSSID in the CONTACTS
table, and CONTACTNO in the BOOKINGS table.
I would like to do 2 things:
1) Filter out any records whose CSSID in the CONTACTS table exists as
the CONTACTNO in the BOOKINGS table. In other words, if the contact has
purchased a service, it will appear in the BOOKINGS table. If the
contact hasn't, there will be no reference to them. I want to filter in
the contacts table people who have any listing in the bookings table, so
I am only able to see customers who have not bought anything.
2) Seperately, I would like to filter the CONTACTS table conversely, by
only showing contacts who have a listing in the BOOKINGS table. Then,
further filter that by the field COURSENAME ("Level One", "Level Two",
etc.)
Let me know if you need more data.
Thanks tremendously for your help with this!!
Ryan