Non-Clustered Indexes and Performance Quiz
12 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What type of index contains the physical locations of the rows in the table?

  • Filtered index
  • Clustered index
  • Non-clustered index (correct)
  • Include index
  • In what form does the base data exist if a non-clustered index is separate from it?

  • B-tree
  • Hash table
  • Sorted array
  • Heap (correct)
  • What does a filtered index contain?

  • Rows that meet a user-defined predicate (correct)
  • Only key column values
  • Non-key column values
  • All rows in the table
  • Which type of index can contain copies of non-key column values at the leaf level of the index tree?

    <p>Include index</p> Signup and view all the answers

    What happens if values from columns not in the non-clustered index are requested?

    <p>The query uses the clustered index</p> Signup and view all the answers

    Can a clustered index be filtered?

    <p>No, it has to contain all the data in the table</p> Signup and view all the answers

    What is the purpose of a clustered index?

    <p>To represent the base data as a whole in a specific order</p> Signup and view all the answers

    Why might a non-clustered index take longer for a query on Employee2 compared to Employee1?

    <p>Employee2 is a physically separate structure with different sort order</p> Signup and view all the answers

    What is the drawback of using indexes?

    <p>Indexes consume additional storage space</p> Signup and view all the answers

    What is the advantage of using a clustered index?

    <p>Fast access through a tree structure</p> Signup and view all the answers

    Why might indexes slow down updates, deletes, and inserts?

    <p>They have to be updated along with the data</p> Signup and view all the answers

    What is the purpose of INCLUDE columns in an index?

    <p>To speed up data retrieval for specific columns in queries</p> Signup and view all the answers

    More Like This

    Database Design Concepts
    19 questions
    Database Indexes
    5 questions

    Database Indexes

    MeticulousMemphis avatar
    MeticulousMemphis
    Use Quizgecko on...
    Browser
    Browser