0
從多個表中選擇的是與此查詢MySQL的使用功能
select reports.SUM(time1),
reports.created_by,
reports.id,
users.wage,
users.title
from reports,
users
where users.title = reports.created_by
and reports.created_date >= '1396/03/01'
and reports.created_date <= '1396/03/30'
GROUP BY created_by
ORDER BY created_by
你只稱呼它'SELECT SUM(reports.time1)在第...' – derHugo