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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
stephenedberkg
Creator III
Creator III

Script where clause

i have a date field like 2015-07-28 11:00:00.000

I want to load the date 2015-07-28 11:00:00.000 to 2015-06-28 11:00:00.000

how to achieve this in where clause?

thanks In advance

10 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use this where clause:

Where DATE >= Date#('2015-07-28 11:00:00', 'yyyy-MM-dd hh:mm:ss') And DATE <= Date#('2015-06-28 11:00:00.000', 'yyyy-MM-dd hh:mm:ss')

But note that if the DATE does not contain time values (as in your sample), then this will not load data for 28 July 2015 and the first date will be 29 July.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein