Event table
Person Event
1 Workshop
2 Workshop
3 Workshop
4 Workshop
4 Fair
4 Training
5 Fair
Class Table
Person Class
1 TEST 4
2 ART 5
3 TEST 1
3 TEST 2
3 FILM 1
Results needed:
I need the results to have any person that is in the Event table and Class table where the event is Workshop and the class has TEST or they are in the Event table where the event is Workshop so the output would be:
Person Event Class
1 Workshop TEST 4
2 Workshop (they are in the Class table but their class does not have TEST)
3 Workshop TEST 1
3 Workshop TEST 2 (only show 2 classes since the other class is FILM 1)
4 Workshop (they aren't in the Class table but they are in the Event table and the event is Workshop so I need them in the results)
Thanks for your help. It is really appreciated.
Person Event
1 Workshop
2 Workshop
3 Workshop
4 Workshop
4 Fair
4 Training
5 Fair
Class Table
Person Class
1 TEST 4
2 ART 5
3 TEST 1
3 TEST 2
3 FILM 1
Results needed:
I need the results to have any person that is in the Event table and Class table where the event is Workshop and the class has TEST or they are in the Event table where the event is Workshop so the output would be:
Person Event Class
1 Workshop TEST 4
2 Workshop (they are in the Class table but their class does not have TEST)
3 Workshop TEST 1
3 Workshop TEST 2 (only show 2 classes since the other class is FILM 1)
4 Workshop (they aren't in the Class table but they are in the Event table and the event is Workshop so I need them in the results)
Thanks for your help. It is really appreciated.