T
TaniaD
Hi,
I'm working on a project that requires something I'm sure can be
accomplished with SQL, but I can't figure it out myself. Basically I have a
list of names with corresponding specialty information. The specialties have
a varied number of corresponding subspecialties, so it currently looks like:
Name Specialty Subspecialty
Dr. Joe Emergency Emergency - no surgery
Dr. Joe Emergency Emergency - w/ surgery
Dr. Joe Emergency Urgent Care Medicine
Dr. Jane Oncology Surgery - Oncology
Dr. Jane Oncology Oncology - no surgery
etc...
What I need to do is create a query that will allow all of the providers
records to appear in one row, filling in up to 5 subspecialty columns, as
follows:
Name Specialty Subspecialty1 Subspecialty2
Subspecialty3
Dr. Joe Emergency Emergency -no surgery Emergency-w/surgery etc.
Dr. Jane Oncology Surgery - Oncology Oncology - no surgery
Any thoughts or suggestions on this would be greatly appreciated!
Thank you!
I'm working on a project that requires something I'm sure can be
accomplished with SQL, but I can't figure it out myself. Basically I have a
list of names with corresponding specialty information. The specialties have
a varied number of corresponding subspecialties, so it currently looks like:
Name Specialty Subspecialty
Dr. Joe Emergency Emergency - no surgery
Dr. Joe Emergency Emergency - w/ surgery
Dr. Joe Emergency Urgent Care Medicine
Dr. Jane Oncology Surgery - Oncology
Dr. Jane Oncology Oncology - no surgery
etc...
What I need to do is create a query that will allow all of the providers
records to appear in one row, filling in up to 5 subspecialty columns, as
follows:
Name Specialty Subspecialty1 Subspecialty2
Subspecialty3
Dr. Joe Emergency Emergency -no surgery Emergency-w/surgery etc.
Dr. Jane Oncology Surgery - Oncology Oncology - no surgery
Any thoughts or suggestions on this would be greatly appreciated!
Thank you!