Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with SQL query (starts with "WITH")

Hi,

I'm pretty new to QV, but got a few simple queries to work and reports created.

I'm now trying to copy and paste a more complex SQL query into QV, but seems to have issues in even recognizing the keywords.

The query is something like this.

WITH xyz AS (Select ...... ) Select .... from xyz

I added the SQL tag in front of 'with' in the QV editor.

Only the 'with' keyword turned blue .... other keywords like Select, from, ... do not seem to get recoganised and as expected, gives an error

SQL Error:[Oracle][ODBC][Ora]ORA-00936: missing expression SQL Scriptline: SQL State:S1000

Any suggestions?

Thanks,

Vijay

2 Replies
llauses243
Creator III
Creator III

Hi,

WITH only used in Oracle see ... http://www.dba-oracle.com/t_with_clause.htm

See attached ... my offer is to decompose using select and load

good luck, Luis

Not applicable
Author

Thanks Luis. I'll try it.