Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Updates Statements in Alteryx

alexrossiter
6 - Meteoroid

Hi - I need to build the follow types of updates in in Alteryx workflows which are relatively straightforward using sql  - but I'm struggling to see how to achieve via an Alteryx workflow?? I've managed to find an Alteryx-SQL conversion guide - but it only deals with select type functions and not updates...

 

As an example:

 

update HESA_STUDENT_CURRICULUM hsc
set hesa_module_outcome = '7'
and hesa_module_outcome is null
and exists (select 1
from hesa_student_instance hsi
, student_course_detail_table scdt
, course_instance ci
where hsc.hesa_student_instance = hsi.object_id
and hsi.student_course_detail = scdt.object_id
and scdt.course_instance = ci.object_id
and ci.academic_year = &academic_year
)
;

1 REPLY 1
RolandSchubert
16 - Nebula
16 - Nebula

Hi,

 

if you want to embed the named SQL statement in an Alteryx workflow (e.g. select Data from an SQL datasource, do something and write it back),
it should be possible to use the "Pre Create SQL Statement" in the Data Output Tool:

 

21-05-_2019_14-59-35.png

 

If you want to use Alteryx workflow to fire the SQL statements, you should consider using IN-DB-tools (e.g. Formula In-DB).

 

Best regards

 

Roland

Labels
Top Solution Authors