I have to write a SQL to find records happened at the same time.
For example, I have a table link this
PatientID
Treatment
BeginDate
EndDate
How to write a SQL to find all the patients that have
two or more treatment at the same time. For example the
following two records are considered the valid records:
101 Detox 01/01/2004 02/15/2004
101 OutPt 01/15/2004 03/31/2004
Thanks for the help!
For example, I have a table link this
PatientID
Treatment
BeginDate
EndDate
How to write a SQL to find all the patients that have
two or more treatment at the same time. For example the
following two records are considered the valid records:
101 Detox 01/01/2004 02/15/2004
101 OutPt 01/15/2004 03/31/2004
Thanks for the help!