Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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;
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;
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);