Questions tagged as 'cte'

1
answer

Comparison: CTE vs CURSOR

I do not know if this will be a question that many pose, but I have always had it in mind almost always. Normally when I need to deliver a corrective script to a client, used to only run once, I use a CURSOR , perhaps because it is mo...
asked by 24.12.2018 / 12:39
1
answer

Using CTE (Common Table Expression) creates a type of "cache" in the database?

I have a query with several JOIN and sub-queries, and when executed, it takes about 7 seconds to return. Getting the same result, using CTE's, the query takes about 8 seconds of the first execution, but the next few times ( I could not...
asked by 20.11.2018 / 15:44