Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.getcontactposition ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Original SQL ===== <code sql> create function "pears"."getcontactposition"( /* Application Maintained Function / Procedure - DO NOT EDIT*/ in "svacancyid" char(20),in "sprogressid" char(20),in "splacementid" char(20) ) returns char(50) begin declare "rv" char(50); if "svacancyid" is not null then select "position" into "rv" from "vacancy" where "vacancyid" = "svacancyid"; return "rv" end if; if "sprogressid" is not null then select "vacancy"."position" into "rv" from "vacancy" key join "progress" where "progress"."progressid" = "sprogressid"; return "rv" end if; if "svacancyid" is not null then select "employment"."position" into "rv" from "employment" key join "placement" where "placement"."placementid" = "splacementid"; return "rv" end if; return '' end </code> database/functions/pears_getcontactposition.txt Last modified: 2026/08/07 19:24by 127.0.0.1