Viewing 5 posts - 16 through 20 (of 20 total)
ah yes, my actual id column name is MMID. Forgot to change it back to ID after copy-pasting the code! Sorry
September 22, 2008 at 5:48 pm
This is what I did:
SELECT lo.ID, lo.EndDate, MIN(hi.StartDate) AS StartDate
FROM Prescriptions lo
INNER JOIN Prescriptions hi
ON lo.ID = hi.ID
AND...
September 22, 2008 at 6:54 am
Yup..I sucessfully incorporated the patient ID and stuff and got the results I need. Thanks for following-up Jeff
September 21, 2008 at 5:35 pm
Yes I did. Will try to follow the guidelines next time I post something 🙂
September 21, 2008 at 3:03 pm
Thanks a lot for your help Jeff. A slight problem is that this doesn't include patientId in the join and I need to know which patients had the lapse..but this...
September 21, 2008 at 1:42 am
Viewing 5 posts - 16 through 20 (of 20 total)