Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2009

Tip: Looking for answers? Try searching our database.

Compound Indices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JimS - 03 Jul 2009 16:04 GMT
If I create a compound index on a table with, say, 2 columns in the index,
then join it to another table using both columns, will Access automatically
use the index, or is there some other way I should do that?
Signature

Jim

MGFoster - 03 Jul 2009 17:39 GMT
> If I create a compound index on a table with, say, 2 columns in the index,
> then join it to another table using both columns, will Access automatically
> use the index, or is there some other way I should do that?

Yes.  In most RDBMS the first column in the index is usually used as the
main search part of the index.  The second column is a "secondary"
index.  So make sure the first column is something you'll use a lot - as
JOIN columns or criteria columns.

HTH,
Signature

MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
** Respond only to this newsgroup.  I DO NOT respond to emails **

Jerry Whittle - 04 Jul 2009 18:18 GMT
To really know if Access uses an index, Google "access showplan". It tells
you how queries are actually run. Always us the results from the second time
a query is run after being created or modified.
Signature

Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> If I create a compound index on a table with, say, 2 columns in the index,
> then join it to another table using both columns, will Access automatically
> use the index, or is there some other way I should do that?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.