|
|
|
|
|
by fifilura
1750 days ago
|
|
Long reply for a workday, but a quick reaction from your first example (with a slight risk that I misunderstood your problem). What you do here is to also wrap the main query into a CTE and then end everything with SELECT * from main_query. Then you can easily change that last clause to do SELECT FROM query_two while you keep everything as is, even the CTE you called main_query. |
|
For example, selecting the CTEs up to a certain point and using a particular button or keyboard shortcut within a development tool, much like we can already do with executing selection?
Of course, adding "clever" functionality like that might as well create some risks and inconsistencies, so i'm not entirely sure about that.