Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Posts
    26

    Unanswered: select help needed

    i have a table with user name,user password,full name
    and another table with buy_id,user name
    know when i print to the screen the row with the buy_id
    i donnt want to print the user name but his full name (which is on the other table!
    how do i do that?
    thanks in advance
    peleg

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    select buy_id, fullname
      from anothertable
    inner
      join atable
        on anothertable.username = atable.username
     where buy_id = 937
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Nov 2003
    Posts
    26

    thanks alot


Posting Permissions

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