aziz rasul
Active member
- Local time
- Today, 08:28
- Joined
- Jun 26, 2000
- Messages
- 1,935
I have the following denormalised table.
Table - “tblConsultants_and_Patients”
Consultant Tel Number Department Patient 1 Patient 2 Patient 3
Naomi Smith 01736 762831 Rheumatology Catherine Peters Sandra Hutchinson
Beverly Jones 01841 215874 Neurology Nathaniel Wood Sarah F. Collins Spencer Watson
Muhammad Omar 01736 742326 Orthopaedic Amina bint Hamid Tom Quentin Catherine Peters
James Hodges 01637 365874 Cardiology Alice Abernathy Grace Havers
Ann Hutchinson 01736 763298 Vascular Tom Quentin Jacque DeBlanc
Mary Wheeler 01872 632587 Neurology Wilfred Knott Lolita D. Guardino
…
I have changed the table into 2 normalised tables. However I have patients that are being treated by more than one consultant. Am I doing this right?
Table - “tblConsultants”
Consultant ID Consultant Tel Number Department
1 Naomi Smith 01736 762831 Rheumatology
2 Beverly Jones 01841 215874 Neurology
3 Muhammad Omar 01736 742326 Orthopaedic
4 James Hodges 01637 365874 Cardiology
5 Ann Hutchinson 01736 763298 Vascular
6 Mary Wheeler 01872 632587 Neurology
…
Table - “tblPatients”
Patient ID Consultant ID Patient Name
1 1 Catherine Peters
2 1 Sandra Hutchinson
3 2 Nathaniel Wood
4 2 Sarah F. Collins
5 2 Spencer Watson
6 3 Amina bint Hamid
7 3 Tom Quentin
8 3 Catherine Peters
9 4 Alice Abernathy
10 4 Grace Havers
11 5 Tom Quentin
12 5 Jacque DeBlanc
13 6 Wilfred Knott
14 6 Lolita D. Guardino
…
Table - “tblConsultants_and_Patients”
Consultant Tel Number Department Patient 1 Patient 2 Patient 3
Naomi Smith 01736 762831 Rheumatology Catherine Peters Sandra Hutchinson
Beverly Jones 01841 215874 Neurology Nathaniel Wood Sarah F. Collins Spencer Watson
Muhammad Omar 01736 742326 Orthopaedic Amina bint Hamid Tom Quentin Catherine Peters
James Hodges 01637 365874 Cardiology Alice Abernathy Grace Havers
Ann Hutchinson 01736 763298 Vascular Tom Quentin Jacque DeBlanc
Mary Wheeler 01872 632587 Neurology Wilfred Knott Lolita D. Guardino
…
I have changed the table into 2 normalised tables. However I have patients that are being treated by more than one consultant. Am I doing this right?
Table - “tblConsultants”
Consultant ID Consultant Tel Number Department
1 Naomi Smith 01736 762831 Rheumatology
2 Beverly Jones 01841 215874 Neurology
3 Muhammad Omar 01736 742326 Orthopaedic
4 James Hodges 01637 365874 Cardiology
5 Ann Hutchinson 01736 763298 Vascular
6 Mary Wheeler 01872 632587 Neurology
…
Table - “tblPatients”
Patient ID Consultant ID Patient Name
1 1 Catherine Peters
2 1 Sandra Hutchinson
3 2 Nathaniel Wood
4 2 Sarah F. Collins
5 2 Spencer Watson
6 3 Amina bint Hamid
7 3 Tom Quentin
8 3 Catherine Peters
9 4 Alice Abernathy
10 4 Grace Havers
11 5 Tom Quentin
12 5 Jacque DeBlanc
13 6 Wilfred Knott
14 6 Lolita D. Guardino
…