I have a salesperson table with salespersonid as the pk along with name...etc... and a customer table that has salespersonid in it along with acquired...etc....I am trying to figure out how I can return one result set that has the salesperson information in it and the number of customer that have acquired = 'true' and number of customer that have acquired = 'false'.This is what I have but obviously it doesn't link the salesperson to the customer - so all salesperson get back the same 'gotnumber' and 'lostnumber'select *, (SELECT COUNT(customerid) FROM Customer WHERE Acquired = 'Yes' and AcquiredDate >= Convert(datetime, Convert(int, GetDate())) - 30) AS gotnumber, (SELECT COUNT(customerid) FROM Customer WHERE Acquired = 'No' and AcquiredDate >= Convert(datetime, Convert(int, GetDate())) - 30) AS lostnumber FROM SalesPerson