I have a query that returns 4 fields. PatientID, Service_Start_Date,Service_End_Date,Service_Type.
Service_Type can be 1 of 3 values (Inpatient, ER, Urgent care.
Heres a sample
Patient ID, Admit, Disch, Type, ER/Admit
1 3/10/2011 3/10/2011, ER False
1...