cookies-icon

Our website uses cookies. By using this website, you agree to their use in accordance with the browser settings. You can modify your browser settings on your own. For more information see our Privacy Policy.

Course

Advanced

Understanding Indexes

To be a database professional, you must understand how indexes work. These structures help the database to execute SQL queries faster. Learn how to create indexes and how to write SQL queries that best utilize them.

Table of contents

10 free interactive coding challenges

Lifetime access

B042DDD8-A1C9-4053-8AF3-463EB31543B8@2x

limited to this course only

$39

Buy now

Want a better deal?

B042DDD8-A1C9-4053-8AF3-463EB31543B8@2x

Get unlimited lifetime access to all 65 present and future courses

Save $450

Unlimited lifetime access

B042DDD8-A1C9-4053-8AF3-463EB31543B8@2x

to all 65 present and future courses

$149

$599

75% OFF

Buy now
Details
55

Interactive exercises

10 h

Estimated time

1979

Users enrolled

☆☆☆☆☆
★★★★★

123 ratings

Working with Indexes is the final course in the Creating Database Structure track . You should already know how to create tables in SQL. If not, take The Basics of Creating Tables in SQL course first. After you complete that, we recommend doing the Data Types in SQL, SQL Constraints, and Working with Views courses. These will give you the foundation you need to complete this course.

Cover image for the course 'Understanding Indexes'

In this course, we talk about indexes. These are internal structures that help the database process SQL queries more efficiently. There are many kinds of indexes, but we’ll focus on B-tree indexes – the most common type. You will learn how to create, modify, and remove indexes.

Even though database indexes are present in all relational database engines, the SQL standard doesn't define a specific syntax to create them. We’ll explain the syntax commonly used in the most popular relational database management systems (SQL Server, MySQL, Oracle, and PostgreSQL).

Are you a programmer, developer, or beginning database administrator (DBA) who needs to deepen your SQL knowledge or improve database performance? Start learning indexes today. Working with Indexes is also great for computer science students who want to build their relational database skills.

Topics discussed in the course include:

  • Indexes. Look at the anatomy of the B-tree index and overview other types of database indexes.
  • Basic syntax. Understand the basic CREATE INDEX syntax.
  • Creating indexes. Learn when it’s worthwhile to create an index and how it affects SQL queries.
  • Advanced topics. Discover partial indexes, clustered indexes, and indexes that use expressions and functions.

The course is interactive. You’ll learn how to create and alter indexes by writing real SQL commands. You solve the exercises directly in your web browser; our platform runs your command and verifies your solution. You don’t need to install any extra software to run this course.

What Do You Need to Take This Course?

  • A web browser and an internet connection.
  • Knowledge of SQL, including SELECT, INSERT, UPDATE, and DELETE.
  • Basic understanding of the CREATE TABLE syntax.

This Course Will Teach You How To:

  • Create and remove indexes in a relational database.
  • Modify indexes.
  • Understand the impact of indexes on database and query performance.

Who Should Take This Course?

  • Beginning developers and programmers
  • Beginning database administrators (DBAs)
  • Students taking classes in relational databases
  • Anyone who wants to learn how to use indexes to improve database and query performance

Table of contents

Free

Paid content

0%

Course progress

0/55

Exercises completed

1.

Introduction to B-Tree Indexes

Learn what an index in a database is, what B-Trees are and how they are used in indexes.

0/7
Start now

3.

When to create indexes

Learn when indexes are automatically created and when it's a good idea to create an index manually.

0/13

5.

Summary

Review your knowledge about database indexes.

0/8

Reviews (1)

Average rating

4.80/5

☆☆☆☆☆
★★★★★

123 ratings

Details

5 stars

81%

4 stars

19%

3 stars

0%

2 stars

0%

1 stars

0%