Results 1 to 3 of 3

Thread: SQL Query from 2 tables

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    43
    I would like to use a SQL Query to get fields from two different tables in the same database. Say table1 and table2 with fields tbl1a, tbl1b, tbl2a, tbl2b and tbl2c. Can I do this and if so how?

    Thanks
    Tim

    VB6, SP4
    GT Vengeance

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    select a.tbl1a, a.tbl1b, b.tbl2a, b.tbl2b, b.tbl2c from table1 a, table2 b where a.tbl1a=b.tbl2a

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    43
    I think I got it.

    Thanks!
    Tim

    VB6, SP4
    GT Vengeance

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