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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ajaykumar1
Creator III
Creator III

Getting only todat's date value from database

Hi Everyone,

I have the fields like below.

    

WHATSTATESTARTEDFINISHED
First JobReady10/29/2015 9:0110/29/2015 9:01
First JobReady10/28/2015 8:0110/28/2015 8:40
First JobReady10/27/2015 8:0110/27/2015 8:28
First JobReady10/25/2015 7:1610/25/2015 7:35
First JobReady10/23/2015 10:0110/23/2015 10:48
First JobNot Ready10/29/2015 9:0010/29/2015 9:01
First JobProcess10/29/2015 9:0010/29/2015 9:01
First JobMiddle10/29/2015 9:0010/29/2015 9:01

My conditions when am getting the data from the data base is;

What = 'First Job' and State = Ready and Started = todaysdate

With that above sample data then 0 records should come .But after if i run this extractor after some time

If my 'Started' have todays time stamp(i.e. e.g 10/30/2015 10.15) then i need to get those records.

I hope my requirement is clear.

Thanks,

Ajay

16 Replies
avinashelite

what is your back end database?? if you can specific that we will able to give the exact solution

ajaykumar1
Creator III
Creator III
Author

My backend data base is oracle.

Anonymous
Not applicable

then try with CurDate() (

load ...

from xyz

where (What='First Job') and (State='Ready') and (date#(Started,'DD/MM/YYYY')=CURDATE())

Oracle Spec

Table 12.13 Date/Time Functions
NameDescription
ADDDATE()  Add time values (intervals) to a date value 
ADDTIME()  Add time 
CONVERT_TZ()  Convert from one timezone to another 
CURDATE()  Return the current date
ajaykumar1
Creator III
Creator III
Author

Hi All,

I have tried all those things like systime,curdate() and today() and etc..

But am unable to get the positive reslut...Getting the proper with with whatever the same data which i provided earlier with same time stamp...thats good.

Thanks for all your patience support for my small work.:-)

Ajay

maxgro
MVP
MVP

in Oracle use

SYSDATE                    --> 30/10/2015 13:45:58

or trunc(SYSDATE)    --> 30/10/2015

an example, adapt to your req

load

     .....

     ;

SQL

SELECT

     .........

WHERE STARTED >= SYSDATE;

vishsaggi
Champion III
Champion III

Hello AJay,

Probably first get the data from Oracle and load into a temp table and

do a resident load as given by Rudolf. Did you try that resident load???

V.

tschullo
Creator III
Creator III

WHERE DATE(STARTED) = Today();