Seemed like malpractice to post code without testing, so I created some test data and tested it. The only change from your schema is that I created the FinancialReport table in the same database instead of the ORDERSDBcreate table dbo.ITEMTABLE( item int, margin float);create table dbo.FinancialReport(Item int, margin float, date datetime);insert into dbo.ITEMTABLE values (1, null);insert into dbo.ITEMTABLE values (2, null);insert into dbo.ITEMTABLE values (3, null);insert into dbo.FinancialReport values (1, 0.7, '20110101');insert into dbo.FinancialReport values (1, 0.3, '20110107');insert into dbo.FinancialReport values (1, 0.1, '20110103');insert into dbo.FinancialReport values (2, 0.8, '20110203');insert into dbo.FinancialReport values (2, 0.1, '20110403');
And it works, until you tell me otherwise