Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Viewing all articles
Browse latest Browse all 989

Bushy Recursion: SQL Techniques

$
0
0
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 ...

Viewing all articles
Browse latest Browse all 989

Trending Articles