I have two tables, one is a product transforming history table and the other is the products table:
dbo.Product_Change_History
Date FK_ProductID FK_FinalProductID ChangedBy
20160709 1 3 John
dbo.Product_Detail
PK_ProductID ProductName
1 Red Bike
3 Green Bike
I would like a table like:
Date ProductName FinalProductName
20160709 Red Bike Green Bike
How do I join the two tables to achieve this? edit: This is in TSQL