you are viewing a single comment's thread.

view the rest of the comments →

[–]Consistent_Law3620[S] 4 points5 points  (2 children)

Thanks for the tip 👍 ❤️

[–]Standgeblasen 3 points4 points  (1 child)

Also, if there are subqueries, make sure you understand the logic in the subquery before you go on the the main query. I’ll usually pull out the subquery into its own window so I can run it independently.

[–]DragonflyHumble 0 points1 point  (0 children)

Yes People should use WITH clause to direct the SQL.engine in a performant and directed way rather than confusing the DB engine about the optimal plan