SQL indexes are used to speed up data retrieval operations. There are 5 types of indexes in SQL: * **B-tree index:** The most common type of index. It is a balanced tree structure that keeps data sorted and allows for efficient lookups. * **Hash index:** An index that uses a hash function to map data values to a specific location in the index. This type of index is faster than B-tree indexes for lookups on non-clustered tables, but it cannot be used to enforce uniqueness constraints. * **Bitmap index:** An index that stores a bit vector for each row in the table, indicating which columns contain non-null values. This type of index is useful for queries that filter on multiple columns. * **Spatial index:** An index that stores information about the spatial location of data rows. This type of index is useful for queries that perform spatial joins or range queries. * **Full-text index:** An index that stores information about the text content of data rows. This type of index is useful for queries that search for text strings.
Which of the following is not a type of SQL index? (A) B-tree index (B) Hash index (C) Bitmap index (D) Column store index
Which of the following statements is false? (A) All indexes are stored in the database catalog. (B) Indexes are used to improve the performance of SELECT queries. (C) Indexes can be used to improve the performance of UPDATE queries. (D) Indexes can be used to improve the performance of INSERT queries.
Which of the following is not a disadvantage of using indexes? (A) Indexes increase the size of the database. (B) Indexes can slow down UPDATE queries. (C) Indexes can slow down INSERT queries. (D) Indexes can slow down DELETE queries.
Previous