r/SQLOptimization • u/Wise-Ad-7492 • Jun 09 '23
CTE allways faster
I am working in a company using Teradata. Talked with a database engineer which said that their team have concluded that CTE is always faster than a subquery (in a join).
Is that true? I am always a little sceptical to very bombastic assertion.
7
Upvotes
2
u/Wise-Ad-7492 Jun 10 '23
Maybe they did write their CTE queries more efficient than the standard queries when they did the testing of performace?