PDA

Click to See Complete Forum and Search --> : SQL Query from 2 tables


TimC
Aug 24th, 2000, 10:25 AM
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

JHausmann
Aug 24th, 2000, 11:06 AM
select a.tbl1a, a.tbl1b, b.tbl2a, b.tbl2b, b.tbl2c from table1 a, table2 b where a.tbl1a=b.tbl2a

TimC
Aug 24th, 2000, 02:12 PM
I think I got it.

Thanks!