SQL Statement
tbl_1
-------------------------
ProductID | Product
-------------------------
PH1 | Mouse
PH2 | KeyBoard
PH3 | Monitor
PH4 | CPU
PH5 | Headset
tbl_2
--------------------------
ProductID | Product
--------------------------
PH1 | Mouse
PH2 | KeyBoard
PH3 | Monitor
PH6 | CDROM
PH7 | Video Card
SELECT tbl_1.ProductID, tbl_1.Product
FROM tbl_1 INNER JOIN tbl_2 ON tbl_1.ProductID=tbl_2.ProductID;
---------------------
ProductID | Product
---------------------
PH1 | Mouse
PH2 | KeyBoard
PH3 | Monitor
|