I am inserting a custom SQL into QS to query my DB; the query contains a CTE and some selection from the same like below:
with cte as
(
.....
)
select *
from cte;
Whenever I run the query in QS, I get a syntax error.
sourceErrorMessage: Incorrect syntax near the keyword 'with'
Any help on the syntax or whether CTEs are supported or not by QS would be helpful.
Thank you.