J
Jhoon
I'm using Access Database to keep track of Customers and
Items purchased. I have 3 tables, which one is a many-
many relationship table.
ClientTable Client-ItemTabe ItemTable
ClientID(primary) ClientID(primary) ItemID(primary)
ItemID(primary)
ClientTable Client-ItemTable ItemTable
1000 1000~~~~1 1
1001 1000~~~~2 2
1002 1000~~~~3 3
1003 1001~~~~1 4
1004 1002~~~~1
1005 1002~~~~2
Few things i want to find.
1. Find list of client who has ONLY bought Item1, in this
case, it would be 1001.
2. Find list of client who has bough both Item 1 and 2,
this case, its is 1002.
3. Find list of clients who has bough Items 1, 2, and 3,
such as 1000.
Would be nice to have an SQL statemet that would satisfy
those 3 question... Much thanks guys =)
Items purchased. I have 3 tables, which one is a many-
many relationship table.
ClientTable Client-ItemTabe ItemTable
ClientID(primary) ClientID(primary) ItemID(primary)
ItemID(primary)
ClientTable Client-ItemTable ItemTable
1000 1000~~~~1 1
1001 1000~~~~2 2
1002 1000~~~~3 3
1003 1001~~~~1 4
1004 1002~~~~1
1005 1002~~~~2
Few things i want to find.
1. Find list of client who has ONLY bought Item1, in this
case, it would be 1001.
2. Find list of client who has bough both Item 1 and 2,
this case, its is 1002.
3. Find list of clients who has bough Items 1, 2, and 3,
such as 1000.
Would be nice to have an SQL statemet that would satisfy
those 3 question... Much thanks guys =)