Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Automatically-created indexes
SQL index best practices
Summary
12. Quiz Time

Instruction

Here's the quiz question for you.

Exercise

A laboratory has the following table, which stores info on all the mixtures they've created:

CREATE TABLE mixture (
  id integer primary key,
  name varchar UNIQUE,
  created date,
  ingredients text
);

Your task is to:

  1. Quickly delete all the data from the table without deleting the table structure.
  2. Add an index named created_index on the column named created.