I am basically trying to run a create table statement using a query that has a with clause within it, but I am getting an error. Is there a different way to run this? The query statement is something like this:
CREATE TABLE DATA_TABLE AS ( WITH X AS (.....)
SELECT * FROM X )
I would appreciate any help. Thanks.
Here's what you want.