Expand my Community achievements bar.

Insert into dataset based on CTE

Avatar

Level 4

Hi Team,

We are working on a particular usecase where a query using "WITH" clause need to be inserted into a dataset which will be used at a later point in time. I have run the "select" clause successfully, however, the "Insert" command is not working in the script. Has anyone tried any such usecase? Curious to know your take on this!

 

Thank you!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Employee

you should be able to insert into a dataSet but you need to follow the struct syntax of the schema which you are inserting data into.

 

Please refer to the following page as reference:

https://experienceleague.adobe.com/en/docs/experience-platform/query/sql/syntax#insert-into

 

what is the error message is your getting?