SOLVED
DataBricks filter in DB
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
nicktekippe
8 - Asteroid
‎03-31-2023
09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
Labels:
1 REPLY 1
13 - Pulsar
‎03-31-2023
09:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @nicktekippe ,
Here is a link to all the date functions in Databricks:
For your example, you should be able to use this logic:
`NOTIFICATION_DATE` >= date_sub(current_date(), 730)
