SQL Tuning: Generating Optimal  Execution Plans