SEN2104 · Veritabanı Yönetim Sistemleri

Database Management Systems

The ER model, the relational model, relational algebra, SQL, normalization and indexing.

Textbook: A. Silberschatz, H. F. Korth, S. Sudarshan, “Database System Concepts”, 6th edition, McGraw Hill

  1. Week 1
    Introduction to Database Management Systems
    • Introduction to database management systemsWhy a DBMS is used instead of a file system, schema vs instance, the three-schema architecture, data independence, DDL/DML and the idea of a transaction. The university database we use all semester is introduced here too.
  2. Week 2
    Entity-Relationship Model
    • Entity-relationship (ER) modelEntities, attribute types, relationships, cardinality and participation, weak entities and specialization. The basis for reading and drawing ER diagram questions on the midterm.
  3. Week 3
    Introduction to Relational Data Model
    • The relational model, keys and ER-to-table mappingRelation, schema, instance, domain; super/candidate/primary/foreign key; referential integrity and the rules for turning an ER diagram into tables. Both the algebra and the SQL questions rely on these tables.
  4. Week 4
    Relational Algebra
    • Relational algebra: basic operatorsWriting queries with selection, projection, set operations, the Cartesian product and rename; the basis of the “write the relational algebra expression” and “give the result” exam questions.
  5. Week 5
    Relational Algebra
  6. Week 6
    Structured Query Language (SQL)
    • SQL basics: DDL, constraints, SELECT and joinsCreating tables (CREATE TABLE and constraints), querying a single table and joining tables (inner, natural, outer, self join). The basis of the "write the SQL" questions on the midterm.
  7. Week 7
    Structured Query Language (SQL)
  8. Week 8
    Midterm Exam
  9. Week 9
    Relational Database Design
    • Bad design, functional dependencies and closureYou learn why putting everything into one table produces anomalies, and then functional dependencies, Armstrong's axioms and finding keys with closure. All normalization questions rely on these calculations.
  10. Week 10
    Relational Database Design
    • Canonical cover and normal forms: 1NF, 2NF, 3NF, BCNFYou learn to drop extraneous attributes to find the canonical cover, and to determine step by step which normal form a schema is in. The recipe for the 'What is the highest normal form?' question is on this page.
  11. Week 11
    Relational Database Design
  12. Week 12
    Indexing and Query Processing
  13. Week 13
    Query Processing and Query Optimization
  14. Week 14
    Introduction to Data Analysis and Data Mining Concepts