dbTalk Databases Forums  

MultiTable Query Question

comp.databases.paradox comp.databases.paradox


Discuss MultiTable Query Question in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jonathan
 
Posts: n/a

Default MultiTable Query Question - 05-22-2007 , 02:44 PM






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
Quote:

Check | Check |

:Ktables:SedationQIsupplimental.DB | SedationDocAlsoProcDoc |
ASAStatus | ASAeStatus |
Quote:
Check | Check | Check |

: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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.