我在使用下面的 SQL 查询时遇到问题……它与我的服务器上的 CPU 挂钩,最终超时而不返回结果。查询的格式看起来没问题吗?
BD
SELECT dfa_data_dump.date,
campaignname,
placementgroup,
placementstartdate,
placementenddate,
placementgrouptotalbookedunits,
placementgroupid,
sitename,
dfa_data_dump.placementid,
placement,
dfa_data_dump.placementrate,
placement_rates.ratetype,
placementtotalbookedunits,
placementsize,
time_dimension.month,
Sum(impressionsdelivered),
Sum(clicksrecorded),
Sum(totalactivities),
Sum(totalcost)
FROM dfa_data_dump
INNER JOIN time_dimension
ON time_dimension.date = dfa_data_dump.date
INNER JOIN placement_rates
ON placement_rates.placementid = dfa_data_dump.placementid
GROUP BY dfa_data_dump.date,
campaignname,
placementgroup,
placementgrouptotalbookedunits,
placementgroupid,
sitename,
placementid,
placement,
placementrate,
placementtotalbookedunits,
placementsize,
time_dimension.month