Tech2377
Programmer
- Nov 13, 2007
- 81
I would like to add in another field based off the pv.Visit
Example: Currently, the query is reporting a date as such:
'2007-10-25 10:15:00.000'
I would like a Field that converts this into one field 'October 2007'. This would allow me to do easier work in Crystal. Any help is appreciated.
Example: Currently, the query is reporting a date as such:
'2007-10-25 10:15:00.000'
I would like a Field that converts this into one field 'October 2007'. This would allow me to do easier work in Crystal. Any help is appreciated.
Code:
SELECT pp.PatientId,
dbo.FormatName(pp.Prefix, pp.[First], pp.Middle, pp.[Last], pp.Suffix) AS PatName,
pv.Visit,
df.ListName,
pv.TicketNumber
FROM PatientVisit pv
INNER JOIN PatientProfile pp ON pv.PatientProfileId = pp.PatientProfileId
INNER JOIN DoctorFacility df ON pv.DoctorId = df.DoctorFacilityId
WHERE ......