G
Guest
Thanks for taking the time to read my question.
I have 2 tables. Table 1 is what the customer purchased, and Table 2 is what
the customer should purchase.
Example (same as Case 2)
Table 1 (Actually purchased)
Ingred
Flour
Sugar
Egg
Milk
Table 2 (Supposed to purchase)
Ingred
Flour
Sugar
Egg
Milk
Salt
What I need to return is all of Table 2 every time and all of Table 1 every
time, but I don't want to see every record by every record. So if I join on
Ingred I limit one side or the other depending on my join (1,2 or 3).
How can I do this?
Cases:
1 Customer purchases everything on the list that they should get
2 Customer doesn't purchase everything on the list that they should get
3 Customer purchases more than what is on the list that they should get
Thanks,
Brad
I have 2 tables. Table 1 is what the customer purchased, and Table 2 is what
the customer should purchase.
Example (same as Case 2)
Table 1 (Actually purchased)
Ingred
Flour
Sugar
Egg
Milk
Table 2 (Supposed to purchase)
Ingred
Flour
Sugar
Egg
Milk
Salt
What I need to return is all of Table 2 every time and all of Table 1 every
time, but I don't want to see every record by every record. So if I join on
Ingred I limit one side or the other depending on my join (1,2 or 3).
How can I do this?
Cases:
1 Customer purchases everything on the list that they should get
2 Customer doesn't purchase everything on the list that they should get
3 Customer purchases more than what is on the list that they should get
Thanks,
Brad