SELECT case when mgr is null then 'null' else 'not' end AS nullility , count(*), sum(count(*))over() cnt FROM ( SELECT empno, mgr , CONNECT_BY_ISLEAF AS "LEAFER" , SUBSTR(SYS_CONNECT_BY_PATH(empno,','),2,19) as emp_pathy , LEVEL as DEPTH# , CONNECT_BY_ROOT ...
↧