1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
SQL> create table t_d1 (a int)
2 /
Table created
SQL> create table t_d2 (b int)
2 /
Table created
SQL> create view w_t_d1 as select * from t_d1 cross join t_d2
2 /
View created
SQL> create table t_d3(c int)
2 /
Table created
SQL> create view w_t_d2 as select * from w_t_d1 cross join t_d3
2 /
View created
SQL> create view w_t_d3 as select count(*) Nbr from w_t_d2 cross join t_d2
2 /
View created
SQL>
SQL> Select distinct referenced_name
2 From user_dependencies t
3 Connect By prior referenced_name = name
4 Start With name = 'W_T_D3'
5 /
REFERENCED_NAME
----------------------------------------------------------------
T_D2
T_D3
T_D1
W_T_D2
W_T_D1 |
Partager