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.TempaidTempEmaill ====== <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"."TempaidTempEmaill"( in "pid" char(20) ) returns varchar(100) begin declare "rv" varchar(100); select "isnull"("person"."payrollemailaddress",(select first "phone"."number" from "phone" key join "phonetype" where "phone"."who" = 'P' and "phone"."whoid" = "pid" and "phonetype"."name" like '%E%mail%'),'') into "rv" from "person" where "personid" = "pid"; return("rv") end </code> database/functions/pears_tempaidtempemaill.txt Last modified: 2026/08/07 19:24by 127.0.0.1