If you are a SQL programmer, learning recursive SQL techniques can be a boon to your productivity. A recursive query is one that refers to itself. I think the best way to quickly grasp the concept of ...
Hello there! 👋 I'm Luca, a BI Developer with a passion for all things data, Proficient in Python, SQL and Power BI ...
Problem: Starting from the HR department head (dept_id = 1, manager_id is NULL), list all employees in that reporting chain (head + all direct/indirect reports).
,cast(emp.empConcat + ',' + cast(e.employee_number as varchar) + ',' as varchar(250)) ,case when emp.lvl=1 then emp.employee_name else emp.emp_lvl_1 end as emp_lvl_1 ...