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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

odbc limit data load within sql-clause

hello,

i want to limit the data loaded with a sql-query.

i successfully set up a odbc connection.

the query is very simple, but it does not consider my where-clause.

the resultset is completly different compared doing this query with sql-developer.

with qlik sense i get far more rows back.

why? can you tell me what's wrong here.

SELECT

"id",

"system_date"

FROM "user"."configuration_table"

WHERE "system_date" = '01.01.2017'

1 Solution

Accepted Solutions
Not applicable
Author

hello,

yes, as i assumed it was my WHERE-clause.

very strange behaviour and no errors during execution -> is there a log-file that can be checked ?

finally my solution was to add the condition

WHERE system_date = to_char(SYSTEM_DATE,'DD.MM.YYYY')='15.02.2017';

View solution in original post

3 Replies
shraddha_g
Partner - Master III
Partner - Master III

issue is might be with WHERE "system_date" = '01.01.2017'

is the format of system_date is DD.MM.YYYY?

Not applicable
Author

hello,

yes, as i assumed it was my WHERE-clause.

very strange behaviour and no errors during execution -> is there a log-file that can be checked ?

finally my solution was to add the condition

WHERE system_date = to_char(SYSTEM_DATE,'DD.MM.YYYY')='15.02.2017';

shraddha_g
Partner - Master III
Partner - Master III

You can check script log at C:\ProgramData\Qlik\Sense\Log\Script