Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

invalid statement unexpected token

sgwong
8 - Asteroid

SQL Studio script are required used in Input Data in Table / Query

Delete DispatchByCustomer
From DispatchByCustomer a
Inner Join OrgDO b
on b.PackNum = a.PackNum

 

Alteryx prompt error:

Error opening "SELECT * From "Delete DispatchByCustomer

from DispatchByCustomer a

inner join OrgDO b

on b"."PackNum = a"."PackNum": No Collumns Returned.

 

If add Select * from DispatchByCustomer before Delete ...,

below error

Invalid SELECT statement. Unexpected token "Delete at line 2, pos 1.

 

Try to place on Post SQL Statement for "Delete .... and Table / Query for "Select ...

It delete entire  DispatchByCustomer entire table information. 

 

4 REPLIES 4
sbansal
7 - Meteor

Hi,

 

You can use the Input tool in Alteryx to do this. For this, you need to use :

1. Table and query field to do select of any table

2. Post SQL statement for actually deleting the records as per your query

 

see attached snapshotAutoFilter.jpg

 

In post SQL statement write your delete query

 

Delete a
From DispatchByCustomer a
Inner Join OrgDO b
on b.PackNum = a.PackNum

 

Hope this helps.

 

thanks,

Sunny

sgwong
8 - Asteroid

Thanks for your advice. It is working now.

sbansal
7 - Meteor

Please mark it as solution for others.

jjimenez
8 - Asteroid

I'm unable to open a Dynamic Tool due to the following error. I can't figure what I need to manipulate in SQL to get access.

 

Any guidance will be greatly appreciated. 

jjimenez_0-1622819415467.png

jjimenez_1-1622819524970.png

 

 

Labels