I have a table that has 2 columns that I need the Database to match. I have a bunch of people that have listed what they have in one column and in the next column, they list what they want. I need the Database to tell me which ones match.
Johnny has an apple but wants an orange
Sally has an orange but wants an apple
Derek has a pear, but wants a banana.
In the above scenario, the Database would tell me that the matches are Johnny and Sally because they both have what each other wants. Derek would not show up since he didn't have a person that wanted a pear. Poor Derek :-(
Table name: FODEIDE18 Exchange Requests
Columns:
ID
ROM
Rank
Name
Current School Selection
Exchange School Request
Priority
DT Functional Area
I need the DB to compare Current School Selection and Exchange School Request
Any assistance you can provide would be amazing!
Johnny has an apple but wants an orange
Sally has an orange but wants an apple
Derek has a pear, but wants a banana.
In the above scenario, the Database would tell me that the matches are Johnny and Sally because they both have what each other wants. Derek would not show up since he didn't have a person that wanted a pear. Poor Derek :-(
Table name: FODEIDE18 Exchange Requests
Columns:
ID
ROM
Rank
Name
Current School Selection
Exchange School Request
Priority
DT Functional Area
I need the DB to compare Current School Selection and Exchange School Request
Any assistance you can provide would be amazing!
Comment