Crystalguru
Technical User
I am using MS SQL Server 2000
Here's my current data:
Patient Name Bed Num
Doe, Jon 1101
Smith, Mary 1102
Carls, Don 1105
What I would like to see is this:
Patient Name Bed Num
Null 1100
Doe, Jon 1101
Smith, Mary 1102
Null 1103
Null 1104
Carls, Don 1105
The two columns are coming from:
Patient and Location table.
I was working towards something like this:
select patient_name, bed_num
from patient
right outer join location
on patient.locationguid = location.guid
Still not getting it. Any ideas?
Here's my current data:
Patient Name Bed Num
Doe, Jon 1101
Smith, Mary 1102
Carls, Don 1105
What I would like to see is this:
Patient Name Bed Num
Null 1100
Doe, Jon 1101
Smith, Mary 1102
Null 1103
Null 1104
Carls, Don 1105
The two columns are coming from:
Patient and Location table.
I was working towards something like this:
select patient_name, bed_num
from patient
right outer join location
on patient.locationguid = location.guid
Still not getting it. Any ideas?