That's sufficient information for me thanks! I don't really have a concrete example at the moment. The idea just popped up in my head when I read that CTEs are reused inside parent queries.
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.