i'm hoping to put on a best selling list on to an ecommerce site, so i am wondering what would be the best way to select from the following table so that the most popular items shall come first?.
CREATE TABLE order_items (
orderid int(10) unsigned NOT NULL default '0',
code char(13) NOT NULL default '',
item_price float(4,2) NOT NULL default '0.00',
quantity tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (orderid,code)
) TYPE=MyISAM
thanks in advance