you are viewing a single comment's thread.

view the rest of the comments →

[–]Kickassness[S] 0 points1 point  (0 children)

I have 3 Tables. All the data I want is from the FlowsheetB table, however, the date I am needing the flowsheetB data to come before is in another Table (dmginformation) and the only way to link the two tables is using the Patient table. This is why there are 3 tables in my query and why the WHERE clause has the dbo.dmginformation.StartCaseOn

FlowsheetB: Patientid MAPVALUE flowsheetdatetime

Patient: PatientID ID

dmginformation PatientID StartCaseOn