Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using WITH clause

495123Feb 16 2007 — edited Feb 16 2007
I can't seem to get the WITH clause to work in Toad 9. I have a lot more to do, but have cut it back to just this and still receive the error "SQL statement doesn't return rows".
WITH cust AS
     (SELECT /*+ materialize */
             COUNT (1) total_custs
        FROM customers)
SELECT total_custs
  FROM cust
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2007
Added on Feb 16 2007
8 comments
637 views