Skip to content

Commit af7af70

Browse files
authored
Add oracle solution
1 parent 1b85fc8 commit af7af70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mastek/computedepth.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
-- MySQL solution
1+
-- Oracle solution
22

3-
WITH RECURSIVE cte AS (
3+
WITH cte (lvl, ManagerID, EmployeeID) AS (
44
SELECT 1 AS lvl, ManagerID, EmployeeID
55
FROM employees
66
WHERE ManagerID IS NULL

0 commit comments

Comments
 (0)