SELECT * FROM dt20181014 where aa = 'MO-CORE';sql
to flay,帶神奇格式的sql查詢模板,須要在編輯狀態下複製使用ide
合併表格並求和
SELECT aa,sum(Count) b
FROM
(SELECT aa,Count FROM dt20181014 where aa = 'MO-CORE'
UNION ALL
SELECT aaaa ,count FROM dt20181015 where aaaa = 'MO-CORE'
) dd
GROUP BY b;it