Results 1 to 4 of 4

Thread: Composit Index

  1. #1
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Composit Index

    I defined a composit index on three columns
    division code
    section code
    village code
    But in where claue i am using only division code and village code.while executing the query it is not using index . Is it compulsory to use all columns or cosecutive columns in where clause to use index?


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Composit Index

    If you ae not using all the fields in query then why you created the composit index un-necessarily. You must refer to all the indexed columns to use the index.


  3. #3
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: Composit Index

    I defined composit index on transaction file. The columns I am using in where clause depends on the tables that I am using in join codition.
    For exampple in Master table
    Divisionmaster I have only divisioncode
    Sectionmaster divisioncode, sectioncode
    villagemaster divisioncode,sectioncode,villagecode
    In some other tables I have only divisioncode and villagecode.
    But in most of the cases I am using all the three columns in where clause.
    Maximum How may composit indexes may I define on a table?


  4. #4
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Composit Index

    Please find a related discussion here.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact