pears.getcontactposition

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

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
  • database/functions/pears_getcontactposition.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1