Archive for the ‘STATISTICS’ Category

Optimize Joins and Query Plan Changes

Joins and Query Plans Details of the article can be viewed at ask Tom Below are two queries posted by a user on askTom site. </pre>1) SELECT distinct D.deptno, D.dname FROM dept D, emp E WHERE E.deptno = D.deptno ORDER BY D.deptno; 2) SELECT D.deptno, D.dname FROM dept D WHERE EXISTS ( SELECT 1 FROM [...]

Continue reading »

Follow

Get every new post delivered to your Inbox.