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

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
techvarun
Specialist II
Specialist II

Date Range Selection

I have a SQL  table with more than 13 lakh records, I qureried all the records and stored in in a QVD for fast access now i need to show the Data's between two particular date Ranges...

How to fetch values between two range from QVD?

Any why my date field in qvd is a numeric value?

Thanks in advance

Regards

1 Solution

Accepted Solutions
tresesco
MVP
MVP

try something like this:

Load  *, DateField

From <QVD> where Date(DateField,'MM-DD-YYYY') <'01-01-2013' and  Date(DateField,'MM-DD-YYYY') >= Date(today(),'MM-DD-YYYY') ;

Hope this gives you an idea.

View solution in original post

4 Replies
MayilVahanan

Hi

Are you want to restrict the date range from script level? If so,

Load * from sample.qvd(qvd) where Date(Floor(ModDate),'MM/DD/YYYY') >= '08/01/2013';

QVDs convert datetime format to number format.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
tresesco
MVP
MVP

try something like this:

Load  *, DateField

From <QVD> where Date(DateField,'MM-DD-YYYY') <'01-01-2013' and  Date(DateField,'MM-DD-YYYY') >= Date(today(),'MM-DD-YYYY') ;

Hope this gives you an idea.

Not applicable


Try this,

TEMP:

Load *,SampleDate

FROM SAMPLE.QVD(QVD)

WHERE DATE(SampleDate,'MM/DD/YYYY') > '01/01/2012' AND DATE(SampleDate,'MM/DD/YYYY') < '12/31/2012'

CONCATENATE

Load *,SampleDate

FROM SAMPLE.QVD(QVD)

WHERE DATE(SampleDate,'MM/DD/YYYY') > '01/01/2013' AND DATE(SampleDate,'MM/DD/YYYY') < '12/31/2013'

If i have understood correctly,you meant 2 date ranges

techvarun
Specialist II
Specialist II
Author

Fetched the Data's Correct

Thanks