somehing like belowselect distinct o.OrderDate, p.SKU, c.CustomerID, c.CustomerLevelID, c.Email, c.FirstName, c.LastName from customer cjoin dbo.Orders_ShoppingCart os with (NOLOCK) on os.CustomerID = c.CustomerIDjoin dbo.Product p with (NOLOCK) on p.ProductID = os.ProductIDjoin dbo.Orders o with (NOLOCK) on o.OrderNumber = os.OrderNumberjoin dbo.PromotionUsage pu on pu.OrderID = o.OrderNumber join dbo.PromotionID pm ON pm.ID = pu.PromotionID and c.IsRegistered = 1and c.CustomerLevelID = '4'and p.SKU like '%'and <your promotion filter condition here>order by o.OrderDate, p.SKU, c.CustomerID
Also I hope you're aware of issues with using NOLOCK hintMake sure you read thishttp://visakhm.blogspot.in/2010/02/avoiding-deadlocks-using-new.html------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs