Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two Tables

Status
Not open for further replies.
Joined
Apr 27, 1999
Messages
705
Location
US
Hi,

I have two Tables in an SQL database, Table A and Table B. Both have the same column headings and I'd like to display both tables of A and B where STATUS='ACTIVE'. ANy ideas how to create the SQL Query.

Thanks.

fengshui_1998
 
SELECT * FROM TABLEA WHERE STATUS = 'ACTIVE'
UNION
SELECT * FROM TABLEB WHERE STATUS = 'ACTIVE' Leslie
landrews@metrocourt.state.nm.us

There are 10 types of people in the world -
those who understand binary
and
those who don't!
 
Thanks to both of you for your help.

fengshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top