Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order of fields in WHERE 1

Status
Not open for further replies.

vladk

Programmer
May 1, 2001
991
US
Hi,

If I use a composite index, say Field1, Field2, Field3, the order in which these fields are listed in WHERE clause will be important? And if yes, then how should I list them: from top to bottom or from bottom to top?

This is ACCESS database.

Thank you!

vladk
 
No. It doesn't matter what order you use.

Do note however that when you mix "AND" and "OR" operators in a WHERE clause, "AND" us evaluated first and then "OR". Use parentheses to ensure that the order of evaluation is what you intend.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top