====== pears.NetCandidatePublicProfile ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Original SQL ===== create procedure "pears"."NetCandidatePublicProfile"( in "pWebUserID" char(20),in "pPersonID" char(20) ) result( "Name" char(100),"DOB" char(20),"hasPhoto" smallint ) begin select first "person"."name","dateformat"("person"."dob",'dd/mm/yyyy') as "DOB", if exists(select "id" from "blobstore" where "class" = 'J' and "id" = "person"."personid") and "iqxnethaspermission"("pWebUserID",'DOCCANDDOWNLOAD') = 1 then 1 else 0 endif as "hasPhoto" from "person" where "person"."personid" = "pPersonID" end go COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."NetCandidatePublicProfile" IS {create procedure pears."NetCandidatePublicProfile"( in "pWebUserID" char(20),in "pPersonID" char(20) ) result( "Name" char(100),"DOB" char(20),"hasPhoto" smallint ) begin select first "person"."name","dateformat"("person"."dob",'dd/mm/yyyy') as "DOB", if exists(select "id" from "blobstore" where "class" = 'J' and "id" = "person"."personid") and "iqxnethaspermission"("pWebUserID",'DOCCANDDOWNLOAD') = 1 then 1 else 0 endif as "hasPhoto" from "person" where "person"."personid" = "pPersonID" end }