I have 3 tables: Person, Patient and Donor.
Person Table contains:
Pno | Name | Sex | ABO
----------------------------------
101 | David | Male | AB
102 | Williams | Female | O
113 | Smithy | Male | A
112 | Cinthia | Female | A
Patient Table contains:
Pno | GPName | GP_Addrs
------------------------------
102 | Dr. Terry | Route 66 stree, N.Y
113 | Dr. Terry | Burger Stree, N.Y
Donor Table contains:
Pno | Dondate
-------------------
112 | 03/05/2004
101 | 04/04/2005
I want a query to give for each patient, Patient Pno together with the Pno of all Donor who have the same ABOgroup. (NOTE: that both patient and donor datas/records are updated/record in PERSON TABLE)
How do I go about this?. Please help me.
Thanks
Person Table contains:
Pno | Name | Sex | ABO
----------------------------------
101 | David | Male | AB
102 | Williams | Female | O
113 | Smithy | Male | A
112 | Cinthia | Female | A
Patient Table contains:
Pno | GPName | GP_Addrs
------------------------------
102 | Dr. Terry | Route 66 stree, N.Y
113 | Dr. Terry | Burger Stree, N.Y
Donor Table contains:
Pno | Dondate
-------------------
112 | 03/05/2004
101 | 04/04/2005
I want a query to give for each patient, Patient Pno together with the Pno of all Donor who have the same ABOgroup. (NOTE: that both patient and donor datas/records are updated/record in PERSON TABLE)
How do I go about this?. Please help me.
Thanks