I have the following DB.
CREATE TABLE IF NOT EXISTS `omc_order` (
  `order_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `customer_id` int(10) unsigned NOT NULL,
  `total` decimal(10,2) NOT NULL,
  `order_date` datetime NOT NULL,
  `delivery_date` datetime NOT NULL,
  `payment_date` datetime NOT NULL,
  PRIMARY KEY (`order_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=32 ;
I want to create a statistic page to see total payment and total order monthly.
In one page I want to display something like this.
Month    Year    Total Order    Total Payment
Sep       09       800             760
Oct       09       670             876
Nov
...
...
Now I am not sure how to create query for this.
Could anyone give me some ideas how to approach this please?
Thanks in advance.