[Magento SQL] 获取一定日期范围内销售最好的产品,返回sku,qty_ordered,price,product_name
2016-03-04 11:17
447 查看
SELECT t1.period,t2.sku,t3.`value` AS price ,t1.product_name,t1.qty_ordered from sales_bestsellers_aggregated_daily AS t1 LEFT JOIN catalog_product_entity AS t2 ON t1.product_id=t2.entity_id LEFT JOIN catalog_product_entity_decimal AS t3 ON t1.product_id=t3.entity_id where t1.period >= '2016-03-01' AND t1.period <= '2016-03-02' AND t1.store_id=1 AND t3.attribute_id=75 ORDER BY qty_ordered DESC
相关文章推荐
- Qt5.2.1交叉编译,带tslib插件
- Qt固定窗口大小
- Qt组播(多播)总结
- Qt之HTTPS登录
- Qt之HTTPS登录
- Qt入门学习书籍
- PyQt 5 入门指导教程
- PyQt5 - QWidgets部件进阶教程之模拟时钟
- PyQt5 - QWidgets部件进阶教程
- QT的signal和slot的几种常见使用场景
- qt.network.ssl:QSslSocket: cannot resolve SSLv2_client/server_method
- modal or modeless
- qt给exe文件添加图标
- MFC混用QT
- QTP11问题2: QTP11 点击New->Function Libraery后,工具右下角一直显示Opening,一直不能打开Library的窗口
- QTP无法录制web脚本的解决方法
- QTP11问题1:Object Spy探测到的web对象全是WinObject
- Qt::ConnectionType 解析
- 一起看代码来玩玩QT之14 15 16(动态库静态库的实现和调用)
- Qt::CaseSensitivity