Pervasive Control Center SQL INTO Error -
i getting error in pcc doesn't make lot of sense. have 2 statements inside user defined function same , 1 runs fine while other returning error:
'into': syntax error
end , start parameters being passed function.
the error being thrown on second statement
select count(*) :divmodeltot1 "table1"."info" i.compldate <:end , (i.agree null or i.agree>:start) union select count(*) :divmodeltot2 "table2"."info" i.compldate <:end , (i.agree null or i.agree>:start);
any or suggestions appreciate.
thanks!
select must first query in statement containing union.
select count(*) :divmodeltot1 "table1"."info" i.compldate <:end , (i.agree null or i.agree>:start) union select count(*) "table2"."info" i.compldate <:end , (i.agree null or i.agree>:start);
Comments
Post a Comment