Alright I've been picking my brain for the past hour trying to figure this one out...
I have 3 tables...
1) Retailers-RetailerID, RetailerName, address etc. (500 entries)
2) Distributors- DistributorID, DistName (10 entries)
3) Uses- RetailerID, DistributorID
Sample data is as follows for Distribution table:
RetailerID DistributorID
1 1
1 3
2 1
2 6
3 4
3 5
4 8
I am trying to create a query which will give return retailer information for those retailer who use multiple distributors.
I have tried the following but I have been unsuccessful:
SELECT Uses.DistributorID, Uses.RetailerID
FROM Uses
WHERE ((Uses.DistributorID)=1 And (Uses.DistributorID)=2);
Is this possible to accomplish with the way I designed this database? Thanks!
I have 3 tables...
1) Retailers-RetailerID, RetailerName, address etc. (500 entries)
2) Distributors- DistributorID, DistName (10 entries)
3) Uses- RetailerID, DistributorID
Sample data is as follows for Distribution table:
RetailerID DistributorID
1 1
1 3
2 1
2 6
3 4
3 5
4 8
I am trying to create a query which will give return retailer information for those retailer who use multiple distributors.
I have tried the following but I have been unsuccessful:
SELECT Uses.DistributorID, Uses.RetailerID
FROM Uses
WHERE ((Uses.DistributorID)=1 And (Uses.DistributorID)=2);
Is this possible to accomplish with the way I designed this database? Thanks!