Forum Replies Created

Viewing 4 posts - 1 through 5 (of 5 total)

  • RE: HELP!! Im stuck with my query!!

    its a direct relationship with foreign key programid..

  • RE: HELP!! Im stuck with my query!!

    Dave Ballantyne (10/16/2009)


    alifah (10/16/2009)

    it works but it shows duplicate data..

    Most probably because of cartesian join.

    hmmm..im so new wif sql..can anybody help me how to reduce the error..

  • RE: HELP!! Im stuck with my query!!

    Dave Ballantyne (10/16/2009)


    The issue is here...

    FROM applicant a,program p

    join intake i on i.intakeid=a.intakeid

    How is applicant joined to program ?

    FROM applicant a

    join intake i on i.intakeid=a.intakeid,

    program p

    This will work , but...

  • RE: HELP!! Im stuck with my query!!

    GilaMonster (10/16/2009)


    Does the table applicant have a column named intakeid?

    p.s. do you realise you have a cross join here?

    FROM applicant a,program p

    That will return a Cartesian product of the rows...

Viewing 4 posts - 1 through 5 (of 5 total)