Changeset 13450
- Timestamp:
- 2007/05/25 15:07:57 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/admin/total/index.php
r13424 r13450 661 661 $sql = "SELECT job, count(*) AS order_count, SUM(total) AS total, (AVG(total)) AS total_average "; 662 662 $sql.= "FROM dtb_customer AS T1 LEFT JOIN dtb_order AS T2 USING ( customer_id ) WHERE $where AND T2.del_flg = 0 and T2.status <> " . ORDER_CANCEL; 663 $sql.= " GROUP BY job ORDER BY total DESC";663 $sql.= " GROUP BY job ORDER BY total DESC"; 664 664 665 665 $objQuery = new SC_Query();
Note: See TracChangeset
for help on using the changeset viewer.