The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

IN-DB Date Filter Vertica Server

cjsnets10
Meteoroide

I am attempting to do an IN-DB filter of 'date' > 2021-01-01.

 

I am connected to a Vertica server and have been unable to find the correct sql query.

3 RESPOSTAS 3
ShankerV
Castor

Hi @cjsnets10 

 

1. There might be mismatch in the data type where you would have stored in VARCHAR[10] in database.

You need to convert into date format and apply the filter.

 

Shanker V

cjsnets10
Meteoroide

@ShankerV would you be able to please provide how to do that IN-DB?

apathetichell
Arcturus

usually it's something like

 

`date` > '2021-01-01'

 

(or try)

"date" >= '2021-01-01'

 

basically your string value has to be in single quotes and your field name has to be standardized (double quotes usually works best). I do not use Vertica and I am not aware of any specific considerations for using datetime with it. - my assumption is that your field is stored as date or datetime - if not you'd need to cast it as date first using TO_DATE.

Rótulos
Autores com maior número de soluções