Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

Sql to Altreyx

Kavya432
8 - Asteroid

Is there any way we can covert this to Altreyx, especially the max of Date field?

 

SELECT
        ProducerFirst_Nm, ProducerLast_Nm,
             MAX(AgencyCancel_Dt) as lastest_cancel_dt
        
FROM RPT_AGSL_APPS2.A_ProducerHierarchy_AsIs

where ProducerFirst_Nm like'Abi%' and ProducerLast_Nm='IM'
group by 
        ProducerFirst_Nm, ProducerLast_Nm
3 REPLIES 3
OllieClarke
15 - Aurora
15 - Aurora

@Kavya432 you could do this:

OllieClarke_0-1583852095662.png

Although that is reading in all the data in the first place. 

Alternatively, as you're connecting to a database, you can edit the Table or Query and use your SQL

 

OllieClarke_1-1583852215483.png

 

A third option would be to use the In-DB tools like so:

OllieClarke_0-1583852551468.png

Or even to edit the query in the Connect In-DB tool (like we did in the input data tool)

 

Hope that helps, Ollie

 

Kavya432
8 - Asteroid

That helps! Thank you!

OllieClarke
15 - Aurora
15 - Aurora

Hi @Kavya432 if you agree, would you mind marking my answer as a solution, so it can be easily found by other members of the community with the same problem?

 

Cheers

Labels