【问题标题】:Sales report by state in magento in 1.7.0.21.7.0.2 中 Magento 各州的销售报告
【发布时间】:2013-04-03 00:54:18
【问题描述】:

为 1.4 MySQL query for "Sales Report by Country and State/Province" 提供了一个解决方案,不幸的是,表结构已更改。有人知道在 1.7.0.2 中按州订购销售的查询吗?我将不胜感激。

【问题讨论】:

    标签: sql magento magento-1.7


    【解决方案1】:

    这是我想出的:

    SELECT
        sales_flat_order_address.region
        , count(*)
    FROM 
        `sales_flat_order` AS `main_table` INNER JOIN `sales_flat_order_address` 
            ON main_table.entity_id = sales_flat_order_address.parent_id 
            AND sales_flat_order_address.address_type="shipping" 
    GROUP BY
        sales_flat_order_address.region
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-05-28
      • 1970-01-01
      • 2016-09-04
      • 2016-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多