Results 1 to 3 of 3

Thread: Inner Join

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Cool Inner Join

    This is a simple thing that I've just have a brain freeze on right now... I got two tables (tblMain & tblStation) They are linked by the field Sta_Name... How do I get the Inner Join going on my SQL statement...

    I got

    SELECT * FROM tblMain INNER JOIN tblStation ON tblMain.Sta_Name = tblStation.Sta_Name ORDER BY... yadda yadda

    Could somebody help me out on the syntax...
    Thanks


  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    What you've got is right!
    Code:
    SELECT tblMain.* FROM tblMain INNER JOIN tblStation ON tblMain.sta_name = tblStation.sta_name ORDER BY tblMain.sta_name;

  3. #3

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236
    Can't believe I missed that...

    Thanks... it's been a long day.

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