Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

comparison the dates (Timestamp e Today)

Good afternoon,

I'm performing an incremental extraction in my database.

For it, I'm comparing a field of type timestamp with the function Today (), but this does not work, only it brings the fields nulls, if use a field of type Date, it work. I need use the timestamp.

How could comparate timestamp with the function Today()?

4 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

both the field are numbers so you should be able to compare them

maybe try converting both to numbers using num() function

Not applicable
Author

Hi Liron, I can not convert because I'm doing this in SELECT ... FROM, and Qlik Sense does not recognize the Num () function.

lironbaram
Partner - Master III
Partner - Master III

hi

you can do preceding load above the Select and use Qlik functions

your script should look something like:

Load field,

         field1,

         ...

where ;

sql Select *

From;

because you don't use from in the upper section sense will use the table below as a source table.

Not applicable
Author

Hello,

I solved the problem creating a variable with "Timestamp(Today())" and in code SQL does "SELECT * FROM WHERE Field = '$(vDateEnd)'".

Thak's.