Topic: Data from 2 tables using Report(SQL
Hello,
I've just started using Report(SQL) and I have a question.
Here's my SQL statement:
.
select EquipName, EqModel, EqPurchDate,
EqNotes, EqSparePart, EquipType
from tbl_Equip, tbl_EquipType
where tbl_Equip.EqSparePart LIKE "Installed"
.
This code worked fine for data from the tbl_Equip table. Then I added a field from another table tbl_EquipType. When I run it as written above I get the records from tbl_Equip but I also get ALL of the records from tbl_EquipType (it is a lookup table and has 24 entries for EquipType). I only want to see the one that is associated with each tbl_Equip record.
.
I'm thinking the query might need some kind of a JOIN clause. Since my SQL skills are limited, I'm not sure if that's what I need and if so, how to do it.
.
Thanks
Frank