Skip to content
KALANBLON
Show contents

Chapter 7 of 7 · 10 min

Quiz: performance and integrity

Indexes, query plans, triggers and constraints: let's check that your queries are fast and your data reliable. You need 70% correct answers.

Quiz

6 questions · pass mark: 70%

  1. 1.What does "SCAN customers" mean in a query plan?

    One answer

  2. 2.An index exists on (customer_id, date). Which query can't use it for its filter?

    One answer

  3. 3.Why does WHERE lower(email) = '…' ignore the index on email?

    One answer

  4. 4.Complete to refuse the operation with a message in a trigger.

    Complete the code

    BEGIN
      SELECT ____(ABORT, 'insufficient stock');
    END;
  5. 5.Which statements are true? (several answers)

    Several answers possible

  6. 6.SELECT name, AVG(amount) FROM orders; without GROUP BY, in SQLite:

    One answer

Your progress is saved on this device. Create a free account to keep your progress on all your devices.