Skip to content

Commit 9a07f37

Browse files
authored
Update views.sql
Added test for 'Re-engineered WITH clause (CTE) statement usability for create_view, create_materialzed_view, create_table bodies' (for views)
1 parent 3d4934a commit 9a07f37

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sql/plsql/examples/views.sql

+9
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@ CREATE OR REPLACE VIEW oc_inventories OF inventory_typ
4848
CREATE EDITIONABLE VIEW TEST (A, B, C)
4949
AS SELECT 'A', 'B', 'C'
5050
FROM DUAL;
51+
52+
CREATE VIEW TEST (A, B, C)
53+
AS
54+
WITH TESTCTE AS (
55+
SELECT 1 ONE FROM DUAL
56+
)
57+
SELECT 'A', 'B', 'C'
58+
FROM DUAL
59+
JOIN TESTCTE;

0 commit comments

Comments
 (0)