Секція 2. Розділ 5
single
Challenge: Project Task Dependency Resolution
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write a recursive CTE that retrieves all tasks (direct and indirect) that must be completed before a specified project task can begin. Use the sample data provided, which contains task dependencies for multiple projects. Your query should return the task IDs and names of all prerequisite tasks for the given task_id.
- Start the recursion from the immediate dependencies of the specified
task_id. - In each recursive step, find dependencies of the tasks found in the previous step.
- Continue until all transitive dependencies are found.
- Return each prerequisite task's ID and name.
- The output should include only the prerequisite tasks, not the specified
task_iditself.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 5
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат