CREATE OR REPLACE VIEW V_DU_NBO_CAMPAIGN
AS
SELECT PMM_UPSELL_CAMPAIGN.STATUS, PMM_UPSELL_CAMPAIGN.TEST_EPOCH, DU_NBO_CAMPAIGN.*, OFFER_MSG_OFFERMESSAGE.TEXT AS OFFER_MSG_OFFERMESSAGE, NULL AS AWARD_MSG, REMINDER_MSG_REMINDERMESSAGE.TEXT AS REMINDER_MSG_REMINDERMESSAGE, PMM_PROGRAM.BASE_TIMEZONE, PMM_UPSELL_CAMPAIGN.CAMPAIGN_TEMPLATE, PMM_UPSELL_CAMPAIGN.TASKS_SUBMITTED, PMM_UPSELL_CAMPAIGN.TASKS_EVALUATED, PMM_UPSELL_CAMPAIGN.TASKS_COMPLETED, PMM_UPSELL_CAMPAIGN.EMITS, PMM_UPSELL_CAMPAIGN.LAST_EVALUATION, PMM_UPSELL_CAMPAIGN.LAST_PREEVALUATION, PMM_UPSELL_CAMPAIGN.TARGET_LIST_JOB_STATUS, PMM_UPSELL_CAMPAIGN.TARGET_LIST_TYPE, PMM_UPSELL_CAMPAIGN.TARGET_LIST_ID, PMM_UPSELL_CAMPAIGN.PENDING_TIME, PMM_UPSELL_CAMPAIGN.STARTING_TIME, PMM_UPSELL_CAMPAIGN.OFFERING_TIME, PMM_UPSELL_CAMPAIGN.OPEN_TIME, PMM_UPSELL_CAMPAIGN.SUSPENDED_TIME, PMM_UPSELL_CAMPAIGN.COMPLETE_TIME, PMM_UPSELL_CAMPAIGN.FAILED_TIME, PMM_UPSELL_CAMPAIGN.KILLED_TIME, PMM_UPSELL_CAMPAIGN.LAST_UPDATE_TIME
FROM
DU_NBO_CAMPAIGN
LEFT JOIN
PMM_UPSELL_CAMPAIGN
ON PMM_UPSELL_CAMPAIGN.CAMPAIGNID = DU_NBO_CAMPAIGN.CAMPAIGNID
LEFT JOIN
PMM_PROGRAM
ON PMM_PROGRAM.PROGRAM_ID = DU_NBO_CAMPAIGN.PROGRAM_ID
LEFT JOIN
DU_NBO_CAMPAIGN_MSG OFFER_MSG_OFFERMESSAGE
ON DU_NBO_CAMPAIGN.PROGRAM_ID = OFFER_MSG_OFFERMESSAGE.PROGRAM_ID
AND DU_NBO_CAMPAIGN.CAMPAIGNID = OFFER_MSG_OFFERMESSAGE.CAMPAIGNID
AND PMM_PROGRAM.DEFAULT_LANGUAGE = OFFER_MSG_OFFERMESSAGE."LANGUAGE"
AND OFFER_MSG_OFFERMESSAGE.MESSAGEID = 'NBO_SMS_OFFER'
LEFT JOIN
DU_NBO_CAMPAIGN_MSG OFFER_MSG_OFFERMESSAGE
ON DU_NBO_CAMPAIGN.PROGRAM_ID = OFFER_MSG_OFFERMESSAGE.PROGRAM_ID
AND DU_NBO_CAMPAIGN.CAMPAIGNID = OFFER_MSG_OFFERMESSAGE.CAMPAIGNID
AND PMM_PROGRAM.DEFAULT_LANGUAGE = OFFER_MSG_OFFERMESSAGE."LANGUAGE"
AND OFFER_MSG_OFFERMESSAGE.MESSAGEID = 'NBO_SMS_AWARD'
LEFT JOIN
DU_NBO_CAMPAIGN_MSG REMINDER_MSG_REMINDERMESSAGE
ON DU_NBO_CAMPAIGN.PROGRAM_ID = REMINDER_MSG_REMINDERMESSAGE.PROGRAM_ID
AND DU_NBO_CAMPAIGN.CAMPAIGNID = REMINDER_MSG_REMINDERMESSAGE.CAMPAIGNID
AND PMM_PROGRAM.DEFAULT_LANGUAGE = REMINDER_MSG_REMINDERMESSAGE."LANGUAGE"
AND REMINDER_MSG_REMINDERMESSAGE.MESSAGEID = 'NBO_SMS_REMINDER'
ORDER BY DU_NBO_CAMPAIGN.SCHEDULED_DAY DESC, DU_NBO_CAMPAIGN.SCHEDULED_HOUR DESC, DU_NBO_CAMPAIGN.NAME ASC;
在Sql Developer中运行上面时出现此错误: -
命令行出错:1列:0
错误报告: SQL错误:ORA-00918:列模糊定义
00918。 00000 - "列模糊定义"