MichaelaLee
Programmer
Hi Everyone,
Was not sure how to name the subject, but here is what I need to do. I have the followinf stored proc:
INSERT INTO BillingSupport ( PatientId, ServiceDate, Diagnostic, Program, AttendedGroup )
SELECT ATTENDANCE.PatientID, ATTENDANCE.AttendDate, ATTENDANCE.Diagnostic, ATTENDANCE.Program, ATTENDANCE.AttendedGroup FROM (TERMINATION INNER JOIN ATTENDANCE ON TERMINATION.PatientID = ATTENDANCE.PatientID)
INNER JOIN PATIENTS ON TERMINATION.PatientID = PATIENTS.PatientID
As you can see I need to insert the values into BillingSupport. But I would like to convert the values for 3 fields (Diagnostic, Program & AttendDate). The Attendance table stores them as a bit field (1 or 0).
Now, if the field contains a 1, I'd like to write an "X" instead of a 1 to the BillingSupport table. Is there an easy way to do this in SQL 2000. THanks for any help.
Michael Lee
Was not sure how to name the subject, but here is what I need to do. I have the followinf stored proc:
INSERT INTO BillingSupport ( PatientId, ServiceDate, Diagnostic, Program, AttendedGroup )
SELECT ATTENDANCE.PatientID, ATTENDANCE.AttendDate, ATTENDANCE.Diagnostic, ATTENDANCE.Program, ATTENDANCE.AttendedGroup FROM (TERMINATION INNER JOIN ATTENDANCE ON TERMINATION.PatientID = ATTENDANCE.PatientID)
INNER JOIN PATIENTS ON TERMINATION.PatientID = PATIENTS.PatientID
As you can see I need to insert the values into BillingSupport. But I would like to convert the values for 3 fields (Diagnostic, Program & AttendDate). The Attendance table stores them as a bit field (1 or 0).
Now, if the field contains a 1, I'd like to write an "X" instead of a 1 to the BillingSupport table. Is there an easy way to do this in SQL 2000. THanks for any help.
Michael Lee