Hi, I'm trying to use a WITH clause in a query but keep getting the message
ORA-00942: table or view does not exist
I've tried to create a simple query just as an example here:
WITH
test AS
(
SELECT COUNT(Customer_ID) FROM Customer
)
SELECT * FROM test;
But even this dosen't work, it just gives the message:
SELECT * FROM test; 2 3 4 5 6 SQL>
SELECT * FROM test
* ERROR at line 1:
ORA-00942: table or view does not exist
I've never used the WITH clause before, is there something simple I'm missing here? I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod Any advise would be appreciated. Thanks.