Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Indexes on expressions
Partial indexes
Clustered indexes
Summary
12. Summary

Instruction

Good! Time to wrap things up.

  1. You can create indexes on expressions:
    CREATE INDEX company_insensitive
    ON dev_award (LOWER(company));
  2. If the expression doesn't contain a function call, you'll need an additional pair of parentheses:
    CREATE INDEX full_name
    ON dev_award ((first_name || ' ' || last_name));
  3. You can add a WHERE clause to create a partial index:
    CREATE INDEX lname_sql
    ON dev_award (last_name)
    WHERE category = 'sql';
  4. Some databases also provide clustered indexes, but there's no standard syntax for them.

How about a short quiz now?

Exercise

Click Next exercise to continue.