Rewrite a SQL query plan tree

0
Practice

A query plan is a tree of scan, filter, project and join nodes. Write rewrite rules that make it cheaper, such as moving a filter beneath a join, while the new plan still returns exactly the same rows.

DatabricksCodingHardLast asked Jan 2026
No answer yet. Write the first one; the best answer gets endorsed.