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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT INTO VARIOUS TABLES

Status
Not open for further replies.

MrBaRRon

Programmer
Aug 8, 2003
39
IT
Hi everybody,


I have 3 tables which have the same primary key,

I would like to select * (ALL) from these 3 tables in one query where the primary key is the same.

This is my current code into only two tables :


sqlselect_affaires_clients = " SELECT * FROM CHANTIERS JOIN CLIENT_FINAL ON (CHANTIERS.numaffaire_pro = CLIENT_FINAL.numaffaire_pro)"


Set rsselect_affaires_clients = dbconn.Execute(sqlselect_affaires_clients)

Thank U
 
SELECT * FROM CHANTIERS JOIN CLIENT_FINAL ON (CHANTIERS.numaffaire_pro = CLIENT_FINAL.numaffaire_pro) JOIN ThirdTable ON (CHANTIERS.numaffaire_pro = ThirdTable.numaffaire_pro)"

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top