I have a table with several hundred records. Up to 10 of these records belong to single individuals; with the only difference in the records being in the date_seen field and diagnosis. I would like to make this more efficient and store the data with one record containing several dates and the diagnosis of that date. To change the following:
id name Date Diagnosis
1 Jon Doe 1/1/00 Warts
2. Jon Doe 1/1/00 Headache
3. Jon Doe 1/2/00 Influenza
4. Jon Doe 1/2/00 Hangnail
5 Jon Doe 1/2/00 Toe fungus
To this:
id name Diagnosis
Date
1. Jon Doe 1/1/00 Warts, Headace
1/2/00 Influenza, Hangnail
Toefungus
Any suggestions, please? I am under the impression that i need to put this in an array, but don't know how to do that.
Thank you.
id name Date Diagnosis
1 Jon Doe 1/1/00 Warts
2. Jon Doe 1/1/00 Headache
3. Jon Doe 1/2/00 Influenza
4. Jon Doe 1/2/00 Hangnail
5 Jon Doe 1/2/00 Toe fungus
To this:
id name Diagnosis
Date
1. Jon Doe 1/1/00 Warts, Headace
1/2/00 Influenza, Hangnail
Toefungus
Any suggestions, please? I am under the impression that i need to put this in an array, but don't know how to do that.
Thank you.