Free Trial

Alteryx Designer Desktop Discussions

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

Read and Execute .sql file

Hello All,

Please help with this.

I have a .sql file where i have sql query. i connected to  oracle db, but for now i can only copy paste the query directly into the table or query tab. how do i direct a path of my sql file, where it should read the sql query inside it and execute as output.

5 REPLIES 5
Felipe_Ribeir0
16 - Nebula

Hi @Devaraj_Manimaran 

 

You can use the input tool to read the query and the dynamic input tool to execute it.

Solved: Connect to a .SQL file - Alteryx Community

I did as you said. but please find the below screenshots, i have error saying no tables chosen. should i change something?

apathetichell
19 - Altair

Swap from "Read list of data sources" to modify "SQL query" (the lower radio button). Use your field as your query.

Felipe_Ribeir0
16 - Nebula

Hi @Devaraj_Manimaran 

 

Check the attached workflow

 

Felipe_Ribeir0_0-1668366614227.png

 

1)I am reading the query with the input tool

Felipe_Ribeir0_1-1668366645225.png

 

2)I used the summarize tool to turn it all in 1 cell

 

Felipe_Ribeir0_2-1668366675473.png

 

3)I used the bellow config to replace the embedded query of the dynamic tool for the one that came from the summarize tool

 

Felipe_Ribeir0_3-1668366743262.png

 

 

Thanks, now it makes sense. 😊

Labels
Top Solution Authors