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.TempVacancyShiftMatch ====== <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> COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."TempVacancyShiftMatch" IS {create function TempVacancyShiftMatch( in @PersonID char(20),in @VacancyID char(20) ) returns double begin declare "rv" double; set "rv" = "DistanceBetweenPostCodes"( (select "Person"."PostCode" from "Person" where "Person"."PersonID" = @PersonID), (select "isnull"("vacancy"."postcode","company"."postcode") from "Vacancy" key join "Employment" key join "Company" where "Vacancy"."VacancyID" = @VacancyID),'Mi'); if "rv" < 1 then return "round"("rv",1) else return "round"("rv",0) end if end } </code> database/procedures/pears_tempvacancyshiftmatch.txt Last modified: 2026/08/07 19:24by 127.0.0.1