Following query is not executed due to an SQL Parse Error in PaQu. The individual parts are fine, just the combination of a subquery inside the BETWEEN statement causes trouble
SELECT * FROM MDR1.FOFMtree
WHERE fofTreeId BETWEEN 100000000 AND
(SELECT lastProgId FROM MDR1.FOFMtree WHERE fofTreeId = 100000000)
AND np>1000
Following query is not executed due to an SQL Parse Error in PaQu. The individual parts are fine, just the combination of a subquery inside the BETWEEN statement causes trouble
SELECT * FROM MDR1.FOFMtree WHERE fofTreeId BETWEEN 100000000 AND (SELECT lastProgId FROM MDR1.FOFMtree WHERE fofTreeId = 100000000) AND np>1000