====== pears.CompanyKeyWordsQuestion ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
create function "pears"."CompanyKeyWordsQuestion"(
/* Application Maintained Function / Procedure - DO NOT EDIT*/
in @CompanyID char(20) )
returns long varchar
begin
declare "rv" long varchar;
select "list"(distinct "GetQuestAnswer"("t"."TagLocation","t"."TagID",@CompanyID),' ')
into "rv"
from "Tag" as "t"
where "t"."TagLocation" like 'C%' and "t"."IncludeInKeyWordSearch" = 1 and "t"."TagType" in( 'T','U','L','M' ) ;
return "rv"
end