SQL语句1:
SELECT
dim_adid,
dim_creativeid,
dim_materialid,
‘999’ AS dim_djid,
‘999’ AS dim_videoid,
dim_advsiteid,
dim_timeslice
FROM
tab1
WHERE
timeslice >= 20240301
AND timeslice <= 20240531;
执行计划如下:
SQL语句2:
SELECT
999 AS dim_adid,
999 AS dim_creativeid,
999 AS dim_materialid,
dim_djid,
dim_videoid,
dim_advsiteid,
dim_timeslice
FROM
tab2
WHERE
timeslice >= 20240301
AND timeslice <= 20240531;
执行计划如下: