The following is an example shows a SQL statement with two conditions “emp_dept=dpt_id and emp_dept<'L'” .
select * from employee, department
where emp_dept=dpt_id
Here the following is the query plan of this SQL in Tosska proprietary tree format, it takes 8.84 seconds to finish.
The query plan looks...
How to Tune SQL statement with Transitive Dependency Improvement for MySQL?
select * from employee, department
where emp_dept=dpt_id
and emp_dept<'L'
and emp_id<1500000
and emp_salary= dpt_avg_salary
order by dpt_avg_salaryand emp_id<1500000
and emp_salary= dpt_avg_salary
Here the following is the query plan of this SQL in Tosska proprietary tree format, it takes 8.84 seconds to finish.
![[IMG]](http://live.staticflickr.com/65535/50861886931_80428e17f6_b.jpg)
The query plan looks...
How to Tune SQL statement with Transitive Dependency Improvement for MySQL?