I have what should be a simple question. (BTW I am not facile in SQL)
In the following query there are times when the last table
(SedationQiSub3) has no entry for a patient. Someone didn't type in a
memo. If that patient has no entry for the memo, the query will not
retrieve that patient at all.
Is there a way to get the patient and the rest of the data if there is
no record in the table which contains the memo?
Thanks,
Craig
Query
ANSWER: :Ktables:sedationQIPeer2.db
:Ktables:Bioinfo.DB | Status | Year |
Unique# |
Quote:
Check _join1 | Check _join2 | Check
_join3 |
|
:Ktables:Bioinfo.DB | HospitalNumber | FirstName | LastName |
Birthdate |
Quote:
Check | Check |
Check | Check |
|
:Ktables:SedationQImain.DB | Status | Year | Unique# |
DateField | #forToday | Flag |
Quote:
_join1 | _join2 |
_join3 | Check ~stDateRange| Check _join4 | Y |
|
:Ktables:SedationQIsupplimental.DB | Status | Year | Unique# |
#ForToday |
Quote:
_join1 |
_join2 | _join3 | _join4 |
|
:Ktables:SedationQIsupplimental.DB | MajorAdverseOutcome | SedationDOC
:Ktables:SedationQIsupplimental.DB | SedationDocAlsoProcDoc |
ASAStatus | ASAeStatus |
:Ktables:SedationQIProblems.db | Status | Year | Unique# | #ForToday
Quote:
Problem |
_join1 | _join2 |
_join3 | _join4 | Check
|
:Ktables:SedationQIsub3.DB | Status | Year | Unique# | #ForToday |
Memo |
Quote:
_join1 | _join2 |
_join3 | _join4 | Check |
|
EndQuery