SQL> SELECT COUNT( * ) FROM (
2 SELECT e.dependents FROM employees e
3 WHERE e.eid = 101 );
COUNT(*)
----------
1
SQL> SELECT COUNT( * ) FROM (
2 SELECT TABLE( e.dependents ) FROM employees e
3 WHERE e.eid = 101 );
SELECT TABLE(e.dependents) FROM employees e WHERE e.eid = 101)
*
ERROR at line 2:
ORA-00936: missing expression
SQL> SELECT COUNT( * ) FROM
2 TABLE( SELECT e.dependents FROM employees e
3 WHERE e.eid = 101 );
COUNT(*)
----------
2
|