Order of clauses in SELECT...WHERE
From: Michael Stanbrook <mstanbrook_at_yahoo.com>
Date: 3 Oct 2002 19:02:16 -0700
Message-ID: <4df22773.0210031802.e46997c_at_posting.google.com>
Date: 3 Oct 2002 19:02:16 -0700
Message-ID: <4df22773.0210031802.e46997c_at_posting.google.com>
Situation:
SELECT *
Does putting changing the order of the WHERE clauses have any effect
on the index usage and/or performance?
e.g.
SELECT *
FROM A, B
WHERE
A.CHILDID=B.PARENTID
AND B.STATUS='GOOD'
Say for the sake of argument that B.ParentID is not indexed in table
B, but B.STATUS is.
FROM A, B
WHERE
B.STATUS='GOOD'
AND A.CHILDID=B.PARENTID
Received on Fri Oct 04 2002 - 04:02:16 CEST