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

Inner Join

Status
Not open for further replies.

alehawk

Programmer
Jun 18, 2003
332
AR
Hi!!!
I got a DB, table1 has categoryid & product, table2 has ID & txtcategory.
I want to show every product in the DB and it relatex category. My sqlstm is
SELECT * FROM TABLE1
But I know that with inner join I can display the txtcategory by reading the categoryid from table1. I dont know how to use the inner join, can anyone explain me how it works or can send me a link to a tutorial that shows how to use it?
Tnx!!!
 
Select categoryid, product,txtcategory from table1
inner join table2 ON categoryid.table1=Id.table2

-VJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top