troubleshooting Question

Query data based on the next date

Avatar of imanym
imanym asked on
Microsoft SQL Server 2005
4 Comments1 Solution571 ViewsLast Modified:
I have a record of dated occurrences. For example:
On 01/01/08 John Doe was discharged from the hospital
On 01/05/08 John was assessed
On 02/06/08 John was discharged from the hospital and assessed again 03/16/08
I need to match one assessment to 1 discharge without crossing so the >= will not work. I am trying to rate compliance with the formula of an assessment occurring within 7 days of the discharge. The difficult part is that no assessment is uniquely linked to an event. So I am trying to Query for an occurrence after the discharge date.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros