...

/

Practice Exercises on Indexing and Query Optimization

Practice Exercises on Indexing and Query Optimization

Test your understanding of this module with a few practice questions.

We'll cover the following...

Problem 1

Management wants a report of all orders that were delivered late. The query will filter by DeliveryStatus = 'Delivered' and LateDelivery = TRUE. Create an appropriate index on the Orders table to speed this up.

MySQL 8.0
-- Create a composite index for late, delivered orders
...