Here's how my query looks like :
Edit (I have near to none experience with PLSQL, I just read on some post if you're using Begin/End in your script, you no longer can use plain select, you should insert that result into somewhere! ) can this be the reason the query doesn't work in SSIS? )
Variable x1 Number
Variable x2 Number
Variable x3 Number
Variable x20 Number
Begin select user_defined_function(parameters) into x1 from dual;
select user_defined_function(parameters) into x2 from dual;
select user_defined_function(parameters) into x3 from dual;
select user_defined_function(parameters) into x20 from dual;
End;
/
with Q1 as (....)
, Q2 as (....)
, Q3 as (...)
Select * from Q1,Q2,Q3 joining together
The query works in SQL developer, however I have to use execute script instead of f5. otherwise it will prompt for variable values.
As I suspected, the query in its current format doesn't work in SSIS. I get the error INVALID SQL STATEMENT 900
Beginand the only oneEndthe problem?