SSC-EWI-TS0026
With Delete Query turned to Create Table.
Severity
Low
Description
This EWI is added when a Common Table Expression With a Delete From is transformed to a Create or Replace Table.
Code Example
Input Code:
WITH Duplicated AS (
SELECT *, ROW_NUMBER() OVER (PARTITION BY ID ORDER BY ID) AS RN
FROM WithQueryTest
)
DELETE FROM Duplicated
WHERE Duplicated.RN > 1Output Code:
Recommendations
No additional user actions are required.
If you need more support, you can email us at [email protected]
Last updated
