table showing customers that ordered product x but not y

Hello, I  was wondering if anyone has found a way to create a table showing customers that have ordered product x but not product y in a date range, where product x and product y and the date range are selected by the user.  The table should include Customers and column showing quantity ordered of product x 

If this isn't possible, instead, the table could include all customers that ordered product x whether they ordered product y or not and give the user the ability to re-order the table by any of the product quantities

thanks

0 0 29