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: 
davidfagundes
Contributor III
Contributor III

Where <Today

Bom dia  a todos

estou com uma duvida referente a carga.

quero deixar meu extrato sempre dia de hoje -1

no quer estou fazendo dessa forma, porem não esta certo alguém consegue me ajudar ?


SQL SELECT *

" FROM CNP."FAT_MOVIMENTO_CAPA"


where DTA_DOCUMENTO>='01/01/2016' and DTA_DOCUMENTO<"today";


STORE FMC into ..\dados\FMC.qvd(qvd);



Grato desde ja

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

What database is this? May be this if the database is ORACLE

SQL SELECT *

"FROM CNP." FAT_MOVIMENTO_CAPA "

where DTA_DOCUMENT> = '01/01/2016' and DTA_DOCUMENT < SYSDATE;

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

What database is this? May be this if the database is ORACLE

SQL SELECT *

"FROM CNP." FAT_MOVIMENTO_CAPA "

where DTA_DOCUMENT> = '01/01/2016' and DTA_DOCUMENT < SYSDATE;

giovanneb
Creator II
Creator II

Olá outra forma de resolver esse problema seria declarar uma variável com o valor do dia atual -1 e usa-lá no Select, segue,

LET vHoje = date(Today()-1);

SQL SELECT *

" FROM CNP."FAT_MOVIMENTO_CAPA"


where DTA_DOCUMENTO>='01/01/2016' and DTA_DOCUMENTO< $(vHoje);


STORE FMC into ..\dados\FMC.qvd(qvd);