SELECT id_item AS item, id_bodega AS bodega, id_sucursal AS suc, 
cantidad AS cantidad, costo_unidad AS costo_un,
valor_unidad AS valor
FROM `existencia_historico`
WHERE `fecha` = '2010-09-30'
ORDER BY suc, bodega, item
