This one has me stumped, I'm not exactly sure where to start.
Summary of Tables:
Identifiers - this table creates supertype ID numbers, so that subtypes (Person and Organization) will be unique
- IdentifierID
- IdentifierType
- ...
Person
- PersonID
- PersonName
- ...
Organization
- OrganizationID
- OrganizationName
- ...
FundingTransaction
- FundingSourceID
- FundingRecipientID
- FundingAmount
- ...
Now in the FundingTransaction table, FundingSourceID and FundingRecipientID can be either a Person, or an Organization (based on the supertype IdentifierID).
How can I do a selection on this to grab the source, the recipient and the amount? I can't really predict what will happen when I do the joins since they'll be coming from the same tables and my brain hurts from trying to figure out how it will work.
Thanks for your help! =)