I'm trying to do something like:
WITH megalodon_view AS (
-- 200 lines of gibberish
)
WITH RECURSIVE traverse_table AS (
-- big queries with multiple uses of megalodon_view for recursive traversing
)
Observe it's not a mather of defining 2 CTEs, but to use on within the scope of the other.
I'd like to use it in production, so I want preferrably not to create anything physically