troubleshooting Question

USING WITH CLAUSE AND CREATE TABLE

Avatar of PHIL Sawyer
PHIL SawyerFlag for United Kingdom of Great Britain and Northern Ireland asked on
Oracle DatabaseSQL
3 Comments1 Solution92 ViewsLast Modified:
Hi
I want to create a table where I have used With clause but keep getting an error.
First of all - is it possible and if so then how.
For the sake of simplicity see below as my actual sql is long.

WITH T1 AS
( SELECT 'TEST' AS AA, 25 AS NUM FROM DUAL)

CREATE TABLE TEST_ AS

SELECT AA, NUM FROM T1
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros