我似乎无法获得特定属性的return语句。 DPP2应当返回“计划转移到马哈大区UHCC的UHCC”,并且 DPP4应该返回attribute_value为“ KAIEIE”的“从UHCC转移过来的四年制校园”
'如果(如果...则为“”) (如果attribute ='',则返回“”)
对于运行Oracle 8g的WINDOW 2012 R2服务器,使用SQL Developer在BANNER(学生信息系统)(我们所有学生数据的主数据库)上查找数据字段,表,元素等。我们运行SQL脚本来构建.txt文件,这些文件将上传到Hobsons Starfish系统进行处理。
SELECT DISTINCT
pr.id_number user_integration_id,
'KAIEIE' attribute_key,
STUDENT_ATTRIBUTE_DESC || ' (' || STUDENT_ATTRIBUTE ||') - '|| ATS.ACADEMIC_PERIOD_START || ' through ' || ATS.ACADEMIC_PERIOD_END attribute_value,
NULL modified_ts
FROM starfish_users pr, MST_STUDENT_ATTRIBUTE ATS
WHERE 1=1
and pr.person_uid= ats.person_uid
Case where (ats.student_attribute = 'DPP2', return "UHCC who plans to transfer to UH Manoa" else if ats.student_attribute = DPP4', return "4-year campus who transferred from a UHCC") End attribute
AND ACADEMIC_PERIOD_END = '999999'
ORDER BY USER_INTEGRATION_ID, ATTRIBUTE_KEY
我不断收到ORA-00923、00936和00933的错误