Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2006
    Posts
    198
    Plugin Contributions
    0

    Default SQL help to create a report of customers who purchased a specific product....

    I need to create a report that contains the contact information of the customers in our store that have purchased one specific product. Is there a way to create a SQL statement to get this information? Can anyone offer any help with regard to this? I did try the sales report add on but it only gave you the totals per product and that sort of thing....not the customer details.

    Thank you in advance for any help you can offer.

  2. #2

    Default Re: SQL help to create a report of customers who purchased a specific product....

    Code:
    SELECT DISTINCT c.*
    FROM customers c, orders o, orders_products op
    WHERE c.customers_id = o.customers_id
    AND o.orders_id = op.orders_id
    AND op.products_id = YOUR_PRODUCT_ID

 

 

Similar Threads

  1. Coupon for customers who previously purchased a specific item
    By CKlemow in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 29 Jun 2010, 08:32 AM
  2. Disable Specific Product from Customers who bought/selected also purchased...
    By dharma in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Dec 2009, 07:18 PM
  3. Emailing all customers who purchased a product
    By decohenh in forum General Questions
    Replies: 2
    Last Post: 31 Jan 2008, 07:21 PM
  4. Replies: 3
    Last Post: 18 Aug 2006, 09:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR