If im off, modify this to illustrate what you need:declare @tblProduct table (ProductID int, ProductName varchar(10))declare @tblPriceHistory table (ProductID int, CustomerID int, SalesPrice int, SalesDate datetime)insert into @tblProduct select 1, 'Hat' union select 2, 'Shirt'insert into @tblPriceHistory select 1, 1, 5, getdate()SELECT p.ProductID, p.ProductName, ph.SalesPrice, ph.SalesDatefrom @tblProduct pleftjoin @tblPriceHistory ph ON p.ProductID = ph.ProductID and ph.CustomerID = 1
Nathan Skerl