Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

how to delete specific record using where option from SQL table?

imranmunshi
6 - Meteoroid

I have a table in SQL with column name "source" and has values A, B, C. I want to delete records with source C every time I run Alteryx flow. Once deleted, Again I have to append fresh excel file into SQL table for source C every time I run. Total number of records are 500,000.

 

I connected excel using  "Input tool" and  sql table using "output tool" . Then used  Pre SQL query on output tool "delete from [tablename] where source = 'C' " and selected "Append Existing" in output option. But it is taking  more than 7 hours to run and not deleting the records. Also it is not appending fresh records.

 

Can someone please help? 

 

2 REPLIES 2
TrevorS
Alteryx Alumni (Retired)

Hello @imranmunshi 

Are you able to upload a copy of your workflow and some sample data?

This will help the community to troubleshoot if the issue is within the workflow.

 

Additionally, some issues which can lead to slow workflow times can possibly be handled with some optimization.

Please check out the article Tips & Tricks 2016: Workflow Optimization for some options which may help to speed up your processes.


Thanks!

TrevorS

Community Moderator
imranmunshi
6 - Meteoroid

Hello TreVorS,

thank you for the reply.

Here attached the snapshot of my workflow and queries which I have written.

 

regards,

Imran

Labels
Top Solution Authors