In my last article How to Tune SQL Statement with EXISTS Subquery for SQL Server I? | Go4Expert
that a SQL statement with an Exists subquery was improved 90 times by the following rewrite.
SELECT *
FROM DEPARTMENT
where exists (select 'x' from employee
Query Plan:...
How to Tune SQL Statement with EXISTS Subquery for SQL Server II?
that a SQL statement with an Exists subquery was improved 90 times by the following rewrite.
SELECT *
FROM DEPARTMENT
where exists (select 'x' from employee
where emp_id > 2700000
and emp_dept=DPT_ID)
and emp_dept=DPT_ID)
Query Plan:...
How to Tune SQL Statement with EXISTS Subquery for SQL Server II?