Help with query - anyone??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • legenda

    Help with query - anyone??

    I have 3 tables,

    first table is
    CRT with crtID and crtNAME parameters, second table is
    CRTP with crtpID and crtpNAME parameters and third is
    FORM with crtpID and crtID parameters.

    Third table joins parameters from other two whit their keys - crtpID
    and crtID.

    My question is how to make query to list crtNAME and crtpNAME in my
    results??


    For example FORM contains,

    crtpID, crtID
    001, 005
    002, 005
    003, 007
    etc.

    I want to list names associated to those ID-s joined in third table...

    I hope that you understand me - thanks very much for any help.

  • Roy Harvey

    #2
    Re: Help with query - anyone??

    SELECT CRT.crtNAME, CRTP.crtpNAME
    FROM CRT
    JOIN FORM
    ON CRT.crtID = Form.crtID
    JOIN CRTP
    ON Form.crtpID = CRTP.crtpID

    Roy Harvey
    Beacon Falls, CT

    On 18 Aug 2006 00:57:21 -0700, "legenda" <dispet@gmail.c omwrote:
    >I have 3 tables,
    >
    >first table is
    >CRT with crtID and crtNAME parameters, second table is
    >CRTP with crtpID and crtpNAME parameters and third is
    >FORM with crtpID and crtID parameters.
    >
    >Third table joins parameters from other two whit their keys - crtpID
    >and crtID.
    >
    >My question is how to make query to list crtNAME and crtpNAME in my
    >results??
    >
    >
    >For example FORM contains,
    >
    >crtpID, crtID
    >001, 005
    >002, 005
    >003, 007
    >etc.
    >
    >I want to list names associated to those ID-s joined in third table...
    >
    >I hope that you understand me - thanks very much for any help.

    Comment

    Working...