chetwyn Posted January 16, 2013 Share Posted January 16, 2013 HI Guys.. been banging my head against the wall. I'm trying to run a query to find: how many new customers per week how many return customers order per week please help totally stuck aaahhhhh!!! Link to comment Share on other sites More sharing options...
PhiLho Posted January 16, 2013 Share Posted January 16, 2013 Not sure if MySQL allows you to do such stats, but an element of answer is: SELECT COUNT(*) FROM ps_customer WHERE date_add >= DATE_ADD(NOW(), INTERVAL -1 WEEK); to see how many customers created an account in the last week. Not sure how you qualify "return customers order". Link to comment Share on other sites More sharing options...
bellini13 Posted January 17, 2013 Share Posted January 17, 2013 perhaps factor the customer create date in relation to the order date Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now