Happy 8th birthday to the Maveryx Community! Take a walk down memory lane in our birthday blog, and don't miss out on the awesome birthday present that all Maveryx Community members get to take advantage of!

Alteryx Designer Desktop Discussions

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

DataBricks filter in DB

nicktekippe
8 - Asteroid

nicktekippe_0-1680279042411.png

I need this filter to work in the in-DB tool or I need something that accomplishes the same thing in the code(SQL). I am pulling from databricks/edl

1 REPLY 1
phottovy
12 - Quasar
12 - Quasar

Hi @nicktekippe ,

 

Here is a link to all the date functions in Databricks:

https://docs.databricks.com/sql/language-manual/sql-ref-functions-builtin.html#date-timestamp-and-in...

 

For your example, you should be able to use this logic:

 

`NOTIFICATION_DATE` >= date_sub(current_date(), 730)

 

 


Labels