Possible Duplicate:
How can an SQL query return data from multiple tables
i want a good intel about how to do such a thing :
select everything from my table 1 and my table 2 where the id_article of my table 2 is equal to id from my table 1…I try this :
SELECT * FROM table1 AS n, table2 AS a WHERE n.id = a.id_article
But it didn’t work…I don’t understand the whole process though….
Thanks for any clue
Use the
JOINstatement.Optionally you can add
WHEREconditions in the end