SQL> SELECT e.eid, d.ssno AS dep_ssno
2 FROM employees e, TABLE( e.dependents ) d WHERE d.age < 16;
EID DEP_SSNO
---------- ----------
101 322456776
101 123822332
102 565534555
SQL> SELECT e.eid, CURSOR (
2 SELECT d.ssno AS dep_ssno FROM TABLE( e.dependents ) d
3 WHERE d.age < 16 ) dep_tab
4 FROM employees e;
EID DEP_TAB
---------- --------------------
101 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
DEP_SSNO
----------
322456776
123822332
102 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
DEP_SSNO
----------
565534555
|
|