FireGeek21
Technical User
I am looking to do an exception report. Need to know who doesn't have a specific item in a left outer join table. Example:
Person 1 can have apples, bananas, and grapes.
Person 2 can have peaches and bananas
Person 3 can have bananas, grapes and peaches.
I want a list that can return a list of people that do not have grapes. Person 2 should show on that list.
All the fruit is stored in the FRUIT field of the FOOD table. The person id is in the FOOD table.
I was thinking of doing something like grabbing a list of people from the PEOPLE table and somehow doing a SQL Expression of all the people in the FOOD table with grapes. Then in the Report Selection say something like NOT[PEOPLE.personid in {@Grapes_SQL}].
Am I on the right track? If so, stumped on the SQL Expression...
Thanks!
FireGeek
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)
Person 1 can have apples, bananas, and grapes.
Person 2 can have peaches and bananas
Person 3 can have bananas, grapes and peaches.
I want a list that can return a list of people that do not have grapes. Person 2 should show on that list.
All the fruit is stored in the FRUIT field of the FOOD table. The person id is in the FOOD table.
I was thinking of doing something like grabbing a list of people from the PEOPLE table and somehow doing a SQL Expression of all the people in the FOOD table with grapes. Then in the Report Selection say something like NOT[PEOPLE.personid in {@Grapes_SQL}].
Am I on the right track? If so, stumped on the SQL Expression...
Thanks!
FireGeek
FireGeek
(currently using Crystal Reports XI with Lawson 9.01)