At the end of every month we need to know how much we have earned, or how much we have sold every day, in a year for our Zen-Cart based shop cart. Usually we have to login our admin panel, and check the total orders we have sold at the certain time. We have to download the xml files, and add all the orders together; hen deleted the unpaid orders, and canceled orders. It will take us a lot of time and energy.
Here let me teach you how to use mysql command to achieve this, only one sentence if only need to know the net sales, say in a month, from “2012-04-01″ to “2012-04-30″, we can use the following code: Continue reading