有人可以简单地解释一下下面的代码吗结果?
谢谢这里....
drop table selection_all_journey purge;
create table selection_all_journey as
select distinct
ca.activity_id,
ca.campaign_code,
--ca.agent_activity_description,
case when sl.filter3 = 'DB' then 'RES'
when sl.filter3 = 'SB' then 'EON'
when ca.agent_activity_description = 'Additional DM' then 'Trial 6 - DM'
else ca.agent_activity_description end as agent_activity_description,
case when ca.channel_id = 'DM' then 'Direct Mail'
when ca.channel_id = 'EM' then 'Email'
when ca.channel_id = 'TS' then 'Outbound_Calling'
else ca.channel_id end as channel_id,
sl.ice_customer_id,
sl.account_reference,
sl.load_date,
sl.mail_date,
sl.filter1
from cam.campaign_activity ca
join cam.selection_log sl
on ca .activity_id = sl.activity_id [ OK ]