terp_in_umcp
04-23-2007, 05:01 PM
Hi there...
Heres the situation...I have 3 tables:
Table1: Key=number; condition to check=number='10' and Active='1'
Table2: Key=Number; condition to check=Number='10' and IsActive='1'
Table3: Key=AcctID; condition to check=AcctID='10' and Active='1'
Now all I am trying to do is get data from all these 3 tables...something like this:
Select * from Table1 where number='10' and Active='1'
and
Select * from Table2 where Number='10' and IsActive='1'
and
Select * from Table3 where AcctID='10' and Active='1'
Although, as you can see, all 3 tables have a different name for the same column(Table1.number=Table2.Number=Table3.AcctID).
I dont really need all the columns from the tables, but just need to know if the query returns a record or not..
Any ideas?
Heres the situation...I have 3 tables:
Table1: Key=number; condition to check=number='10' and Active='1'
Table2: Key=Number; condition to check=Number='10' and IsActive='1'
Table3: Key=AcctID; condition to check=AcctID='10' and Active='1'
Now all I am trying to do is get data from all these 3 tables...something like this:
Select * from Table1 where number='10' and Active='1'
and
Select * from Table2 where Number='10' and IsActive='1'
and
Select * from Table3 where AcctID='10' and Active='1'
Although, as you can see, all 3 tables have a different name for the same column(Table1.number=Table2.Number=Table3.AcctID).
I dont really need all the columns from the tables, but just need to know if the query returns a record or not..
Any ideas?