Magento查询历史完成订单的产品销售价格
2015-10-17 14:49
204 查看
SELECT order_table.increment_id, item_table.created_at, item_table.sku, item_table.price, order_table.`status` FROM sales_flat_order_item AS item_table LEFT JOIN sales_flat_order AS order_table ON order_table.entity_id=item_table.order_id WHERE item_table.created_at <= '2015-08-01' and order_table.`status`='complete' GROUP BY sku
相关文章推荐
- poj_2112 网络最大流+二分法
- 最伟大的12位程序猿
- 僵尸进程和孤儿进程
- html 文档模式 与 meta
- SQL LCASE() 函数
- 经典排序算法 INSERT-SORT: 插入排序
- 套接字和域名系统DNS
- socket listen函数详解及TCP链接过程简要说明
- SQL UCASE() 函数
- 一个空指针问题
- 查询所有产品的原价的SQL
- 在jar包在读取配置是找不到文件
- spring配置文件模板
- SQL HAVING 子句
- Magento查询所有产品的Group Price, 返回 SKU和 价格
- [Q&A] C1DataGrid奇葩的BeginNewRow()方法
- 类与对象动手动脑
- 计算机网络应用层
- 详解 int argc, char *argv[]
- 请不要做浮躁的人