0
0
DBMS Theoryknowledge~10 mins

Primary vs secondary indexes in DBMS Theory - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the type of index that uniquely identifies each record in a database table.

DBMS Theory
The index that uniquely identifies each record is called a [1] index.
Drag options to blanks, or click blank then click option'
Aclustered
Bsecondary
Cforeign
Dprimary
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing primary index with secondary index.
Thinking foreign key is an index type.
2fill in blank
medium

Complete the sentence to describe the index used to improve query performance on non-primary key columns.

DBMS Theory
An index created on columns other than the primary key to speed up queries is called a [1] index.
Drag options to blanks, or click blank then click option'
Aprimary
Bsecondary
Cunique
Dclustered
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing secondary index with primary index.
Assuming secondary index enforces uniqueness.
3fill in blank
hard

Fix the error in the statement about primary indexes.

DBMS Theory
A primary index [1] allow duplicate key values.
Drag options to blanks, or click blank then click option'
Acannot
Bshould
Ccan
Dmay
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'can' or 'may' which imply duplicates are allowed.
Confusing primary index rules with secondary index rules.
4fill in blank
hard

Fill both blanks to complete the description of secondary indexes.

DBMS Theory
Secondary indexes [1] the primary index and [2] the uniqueness enforced by the primary index.
Drag options to blanks, or click blank then click option'
Aare separate from
Bare the same as
Cdo not affect
Dalways replace
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking secondary indexes replace the primary index.
Assuming secondary indexes enforce uniqueness.
5fill in blank
hard

Fill all three blanks to complete the dictionary that creates a mapping of index types to their main characteristics.

DBMS Theory
index_info = { [1]: '[2]', '[3]': 'Improves query speed on non-key columns'}
Drag options to blanks, or click blank then click option'
A'Primary Index'
BPrimary Index
CSecondary Index
DUniqueness enforced
Attempts:
3 left
💡 Hint
Common Mistakes
Not using curly braces for dictionary.
Mixing up keys and values.
Forgetting quotes around string keys.