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
  #11  
Old   
jonathan
 
Posts: n/a

Default Re: MultiTable Query Question - 05-24-2007 , 11:04 AM






OK, I created a new inclusion variable as suggested and it did not
work.
In the query below the error message I received was:
Ambiguous use of ! (inclusion variable)
Table :Ktables:Bioinfo.db
Field: Status
In the query below I put " _join1,_join5!" in the first field of the
first table.
And " _join1,_join5" in the first field of the last table:
I'm, sorry if this query isdifficult to read.

Craig

Query
ANSWER: :Ktables:sedationQIPeer2.db

:Ktables:Bioinfo.DB | Status | Year | Unique# |
Quote:
Check _join1,join5! | Check _join2 |
Check _join3 |

:Ktables:Bioinfo.DB | HospitalNumber | FirstName | LastName |
Birthdate |
Quote:
Check | Check | Check
Check |
:Ktables:Sedationqimain.DB | Status | Year | Unique# | DateField |
Quote:
_join1 | _join2 | _join3
=4/1/2007 |
:Ktables:Sedationqimain.DB | #forToday | Flag |
Quote:
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 |
Quote:
Check |
Check |

:Ktables:SedationQIsupplimental.DB | ASAeStatus |
Quote:
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, _join5 | _join2 |
_join3 | _join4 | Check|

EndQuery



Reply With Quote
  #12  
Old   
Michael Kennedy
 
Posts: n/a

Default Re: MultiTable Query Question - 05-25-2007 , 11:36 AM






1. "join5!" in the first table should be "_join5!".

2. Try with only "_join5" in the Status field in the end table.

3. Depending on the result you want, you might have to put that "!"
symbol on ALL the common join fields between the first and end tables,
(and use unique names on each pairing, as you did for _join5).

- Mike


jonathan wrote:
Quote:
OK, I created a new inclusion variable as suggested and it did not
work.
In the query below the error message I received was:
Ambiguous use of ! (inclusion variable)
Table :Ktables:Bioinfo.db
Field: Status
In the query below I put " _join1,_join5!" in the first field of the
first table.
And " _join1,_join5" in the first field of the last table:
I'm, sorry if this query isdifficult to read.

Craig

Query
ANSWER: :Ktables:sedationQIPeer2.db

:Ktables:Bioinfo.DB | Status | Year | Unique# |
| Check _join1,join5! | Check _join2 |
Check _join3 |

:Ktables:Bioinfo.DB | HospitalNumber | FirstName | LastName |
Birthdate |
| Check | Check | Check
| Check |

:Ktables:Sedationqimain.DB | Status | Year | Unique# | DateField |
| _join1 | _join2 | _join3
| >=4/1/2007 |

:Ktables:Sedationqimain.DB | #forToday | Flag |
| Check _join4 | Y |

:Ktables:SedationQIsupplimental.DB | Status | Year | Unique# |
#ForToday |
| _join1 | _join2 | _join3 |
_join4 |

:Ktables:SedationQIsupplimental.DB | MajorAdverseOutcome | SedationDOC
|
| Check | Check
|

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

:Ktables:SedationQIsupplimental.DB | ASAeStatus |
| Check |

:Ktables:SedationQIProblems.db | Status | Year | Unique# | #ForToday
| Problem|
| _join1 | _join2 |
_join3 | _join4 | Check |

:Ktables:Sedationqisub3.DB | Status | Year | Unique# |
#ForToday | Memo |
| _join1, _join5 | _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.