Databases semester exam roadmap

Numericals

Days 10 to 12: closures, keys, index sizes, join costs and schedules. 4 topics, about 9 hours.

  1. Closures, keys and normal forms

    About 3 h.

    • Count candidate keys and find the highest normal form quickly

    Visualisers: Normalisation

  2. Index order, height and hashing

    About 2 h.

    • Compute B+ tree order from block, key and pointer sizes
    • Fill a hash table with a given collision strategy

    Visualisers: B+ tree, Hashing & indexing

  3. Join costs

    About 2 h.

    • Count block transfers for nested-loop, block nested-loop and hash joins

    Visualisers: SQL joins

  4. Schedules

    About 2 h.

    • Classify schedules as serialisable, recoverable, cascadeless or strict

    Visualisers: Serialisability