Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem in conditional SELECT?

Hello Everyone,

I hope it's a very basic questions, but as I recently started working on Qlikview, i don't know how to write the correct syntax for this. I've connected through a big data table, but I don't want to select the whole table as it has 11 million record so wanted to know how can we give the conditional select statement statement?

Oracle connection string;

SQL SELECT *

FROM table1

Where Snapshot_Date> '9/28/2010';

I added this where clause but I am getting an error which says :

ErrorSource: Microsoft OLE DB Provider for Oracle, ErrorMsg: ORA-01843: not a valid month

SQL SELECT *

FROM Table1

WHERE SNAPSHOT_DATE >= '09/8/2009'

the snapshot date is a field in table1.

Thanks. I will appreciate your replies.

11 Replies
Not applicable
Author

try

SQL SELECT *

FROM Table1

WHERE SNAPSHOT_DATE >= to_date('09/aug/2009')

Not applicable
Author

try this

SQL SELECT *

FROM table 1

WHERE SNAPSHOT_DATE >= to_date('09/08/2009 05:23:09', 'mm-dd-yyyy hh:mi:ss');

Change 'MM-DD-YYY HH:MI:SS PM'  to  'mm-dd-yyyy hh:mi:ss'