For now I fixed it in QP5 version 5.330 as follows (formatted forms while varying the margin from wide to narrow):
SELECT sgb.sgbstdn_pidm person_uid,
tcc.academic_period_mod || CASE WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’) THEN ‘5’ ELSE ‘0’ END academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code student_level,
sgb.sgbstdn_coll_code_1 college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc INNER JOIN saturn.sgbstdn sgb ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm
person_uid,
tcc.academic_period_mod || CASE WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’) THEN ‘5’ ELSE ‘0’ END
academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code
student_level,
sgb.sgbstdn_coll_code_1
college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc INNER JOIN saturn.sgbstdn sgb ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm
person_uid,
tcc.academic_period_mod || CASE WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’) THEN ‘5’ ELSE ‘0’ END
academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code
student_level,
sgb.sgbstdn_coll_code_1
college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm person_uid,
tcc.academic_period_mod
|| CASE WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’) THEN ‘5’ ELSE ‘0’ END academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code student_level,
sgb.sgbstdn_coll_code_1 college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm
person_uid,
tcc.academic_period_mod
|| CASE WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’) THEN ‘5’ ELSE ‘0’ END
academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code
student_level,
sgb.sgbstdn_coll_code_1
college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm person_uid,
tcc.academic_period_mod
|| CASE
WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’) THEN ‘5’
ELSE ‘0’
END academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code student_level,
sgb.sgbstdn_coll_code_1 college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm person_uid,
tcc.academic_period_mod
|| CASE
WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’) THEN ‘5’
ELSE ‘0’
END academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code student_level,
sgb.sgbstdn_coll_code_1 college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb
ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm person_uid,
tcc.academic_period_mod
|| CASE
WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’)
THEN
‘5’
ELSE
‘0’
END academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code student_level,
sgb.sgbstdn_coll_code_1 college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb
ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm person_uid,
tcc.academic_period_mod
|| CASE
WHEN sgb.sgbstdn_coll_code_1 IN
(‘FC’, ‘GS’)
THEN
‘5’
ELSE
‘0’
END academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code student_level,
sgb.sgbstdn_coll_code_1 college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb
ON sgb.sgbstdn_pidm = tcc.person_uid;
SELECT sgb.sgbstdn_pidm
person_uid,
tcc.academic_period_mod
|| CASE
WHEN sgb.sgbstdn_coll_code_1 IN (‘FC’, ‘GS’)
THEN
‘5’
ELSE
‘0’
END
academic_period,
tcc.academic_period_mod,
sgb.sgbstdn_levl_code
student_level,
sgb.sgbstdn_coll_code_1
college,
tcc.academic_year,
tcc.academic_year_desc
FROM odsmgr.z_total_credits_by_col_vw tcc
INNER JOIN saturn.sgbstdn sgb
ON sgb.sgbstdn_pidm =
tcc.person_uid;
( hmm, the IN(…) should be folded as well… )
Is this any better?
Thanks,
Andre