Kaishan D. answered 06/20/19
Select DISTINCT SQL tutor
Simplifying SQL statements depend on both physical and logical plans.
Components of a physical plan: Access path selection for each relation – Scan the relation or use an index
Implementation choice for each operator – Nested loop join, hash join, etc
Scheduling decisions for operators – Pipelined execution or intermediate
materialization
Logical plans can include push selection down and join reorder based on the size of tables.
Simplifying SQL statements is not about reducing the length of SQL statements, yet about utilizing optimization algorithm.