I want to convert Powebuilder generated query into Standard Sql ,I tried and I did but I have doubt at few points.
POWER BUILDER QUERY:
PBSELECT( VERSION(400) TABLE(NAME=~"part~" )
COLUMN(NAME=~"part.part_no~")
COLUMN(NAME=~"part.part_id~")
WHERE(EXP1 =~"part.part_no~" OP =~"=~" EXP2 =~":p_part_no~" ) )
ARG(NAME = ~"p_part_no~" TYPE = string)"
STANDARD SQL CONVERTED QUERY:
SELECT
part.part_no ,
part.part_id FROM part
WHERE :EXP1 = part.part_no OR :EXP2 = p_part_no
I converted this query but I am not able to understand the variables: EXP1, EXP2 p_part_no & OP. If I look on the POWER BUILDER Query then only one argument is there but then what is EXP1 , EXP2 ,p_part_no and OP from where its values come.
Any suggestion and help will be appreciated.