在 SELECT 语句中使用函数 / 时间函数 |
图: 查询
SELECT customer_num, WEEKDAY (call_dtime) called, WEEKDAY (res_dtime) resolved FROM cust_calls ORDER BY resolved;
图: 查询结果
customer_num called resolved 127 3 110 0 0 119 1 2 121 3 3 116 3 3 106 3 3 116 5 4
图: 查询
SELECT COUNT(*) FROM cust_calls WHERE WEEKDAY (call_dtime) IN (0,6);
图: 查询结果
(count(*)) 4