====== pears.PersonVacancyShiftMatch2 ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."PersonVacancyShiftMatch2" IS
{create function PersonVacancyShiftMatch2( in @PersonID char(20),in @VacancyID char(20) )
returns char(50)
begin
declare "rv" char(50);
set "rv" = (select first "sitename" from "vacancy" where "vacancyid" = @VacancyID);
return "rv"
end
}