Results 1 to 10 of 10

Thread: Special Join for MySQL (RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Posts
    74

    Special Join for MySQL (RESOLVED)

    Hi everyone,

    Ok, I'm going to try and explain this as best as possible and show lots of examples to try and be concise. I have two tables, that looks like this:

    tblSection

    fldSection     fldName
    --------------------------
    1                 General
    2                 Romance
    3                 Sci-Fi
    4                 Fantasy

    tblCredit

    fldClient     fldSection     fldCredit
    -----------------------------------------
    1                2                  20
    1                4                  24

    What I would like to do is connect these two tables, show all sections, and base it off of the Client number. The output I'm looking for would be this:

    fldSection     fldName     fldCredit
    -----------------------------------------
    1                  General        20
    2                  Romance      24
    3                  Sci-Fi
    4                  Fantasy

    This information would be based off of the client id which is 1 in the tblCredit table.

    I've tried several different variations of joins (left, right, outer, etc), but to no avail. If anyone could help me, I'd appreciate it greatly. Thank you!!!
    Last edited by mccareth; Jul 23rd, 2003 at 10:07 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width