This?select c.CustomerID, c.FirstName + ' ' + c.LastName AS CustomerName, count(o.OrderNumber) As NoOrdersfrom customer c join dbo.Orders_ShoppingCart os with (NOLOCK) on os.CustomerID = c.CustomerID join dbo.Product p with (NOLOCK) on p.ProductID = os.ProductID join dbo.Orders o with (NOLOCK) on o.OrderNumber = os.OrderNumber and c.IsRegistered = 1 and p.SKU like '%'where o.OrderDate >= '20130101'GROUP BY c.CustomerID, c.FirstName + ' ' + c.LastNamehaving count(o.OrderNumber) = 1order by c.CustomerID