crippsy
09-20-2006, 04:36 PM
I am having trouble creating a "who had treats", please could someone help. I have two tables Table1 has a "treats1" field with data
sweets
Toys
Clothes
Drinks
the next table, Table2, has fields for "treats2" and "Who" with data :
Sweets, Fred
Toy, Fred
Sweets, John
Drink, John
Now I would like to create a join that shows all the treats and highlight just the ones given to Fred i.e to come with the results
sweets, Fred
Toys, Fred
Clothes, null
Drinks, null
Now if I do a Left Outer join on Table 1 and filter on Fred for "who" on table 2 it only shows Sweets and toys and not the clothes and drinks. and suggestions for the SQL so that all treats are shown and fred is selected against the ones he has chosen???
sweets
Toys
Clothes
Drinks
the next table, Table2, has fields for "treats2" and "Who" with data :
Sweets, Fred
Toy, Fred
Sweets, John
Drink, John
Now I would like to create a join that shows all the treats and highlight just the ones given to Fred i.e to come with the results
sweets, Fred
Toys, Fred
Clothes, null
Drinks, null
Now if I do a Left Outer join on Table 1 and filter on Fred for "who" on table 2 it only shows Sweets and toys and not the clothes and drinks. and suggestions for the SQL so that all treats are shown and fred is selected against the ones he has chosen???