Results 1 to 3 of 3

Thread: use of composite indexes

  1. #1
    Join Date
    Jun 2005
    Posts
    14

    use of composite indexes

    Hi,

    Suppose there is a composite index on a table, and in includes, for example 3 columns.

    If I do a select using one of those three columns, will the select use the composite index? Will it aid in retrevial or should I create an index on the
    individual column.

    any thoughts on this would be appreciated.



    thanks

  2. #2
    Join Date
    Feb 2003
    Posts
    1,048
    Enter your query in Query analyzer and view the estimated execution plan. What does it say in there? Is it doing an index scan/seek or a table scan?

  3. #3
    Join Date
    Sep 2002
    Posts
    5,938
    Depends on which column you query for. If you don't use first column in the index in where clause, optimizer will not use that index.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •