In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Alteryx inDB SQL - help with interpretation and update option

MROGK
8 - Asteroid

One of the prev. techs in my team put in this formula for date extraction. This date pulls data only from Dec 20, how do I interpret this expression and update as needed. ..say for data from Dec 01 or Nov 01? thanks

 

MROGK_0-1641242028692.png

 

2 REPLIES 2
apathetichell
20 - Arcturus

I think you can just use "PRODUCTIONDATE" >='2021-11-01' AND "PRODUCTIONDATE"<'2021-12-01' - if you want entries during the month of November.

 

also you don't need to be in an action tool... I'm not quite sure what's going on here - but that was probably originally a dynamic interface component and this was probably part of an app  (although it could have been part of a batch macro)...

cmcclellan
14 - Magnetar

The code is actually saying....  the user enters a date, I'm going to take the year value, subtract 1 (so 2022 becomes 2021) then append 1220 ... to get 20211220 and read that as a date yyyymmdd

 

To stick with the original intention of the code, but make the changes you want, I would simply change the 1220 to 1201 (for Dec) or 1101 (for Nov)

Labels
Top Solution Authors