In the Introduction to Indexing lesson, we explored how to speed up `SELECT` queries that only filter one column by creating an index for that column.
In this lesson, we'll explore how to create indexes for speeding up queries that filter multiple columns. In addition, you'll learn concepts such as multi-column indexes, covering indexes, and query plans for multiple columns. Not only will you learn how to create multi-column indexes, you will learn why multi-column indexes are critical to know.
We'll also explore how to modify the queries we write to better take advantage of indexes. For example, if we create an index for the name column, we'll explore why the following query:
`SELECT name from facts WHERE name = 'India';`
will be faster than:
`SELECT * from facts WHERE name = 'India';`
We'll continue to work with `factbook.db`, a SQLite database that contains information about each country in the world. Recall that this database contains just the facts table and each row represents a single country.
2. Query Plan
3. Query plan for multi-column queries
5. Multi-column index
6. Creating a multi-column index
7. Covering index
8. Covering index for single column