Class Notes
Module by module, following the syllabus
Each module explains the theory from the lecture notes in plain language. Every concept is then shown on the same database we use in the lab, university_lab, so you can run every example yourself.
How each topic is laid out
The short, exam-ready definition.
The idea in plain language, with diagrams and comparison tables.
The concept shown on university_lab, with real output.
Three or four revision points.
Each module ends with a one-page summary, practice exercises on university_lab, and exam-style questions.
Course outcomes
Database Architecture and Analytics (M4220152) carries 4 credits, split 3-1-0-0 (lecture-lab-seminar-project). By the end of the course you should be able to:
| Outcome | What you should be able to do | Covered in |
|---|---|---|
| CO1 | Summarize the basic concepts and applications of Database Management System. | Module 1 |
| CO2 | Design Entity – Relationship diagram and convert into the corresponding logical schema. | Module 2 |
| CO3 | Write SQL queries based on the given requirements and get practical knowledge on data modeling, data manipulation and data retrieval. | Module 3 |
| CO4 | Summarize the architecture and features of distributed databases and get the knowledge on distributed databases and understanding on handling unstructured data. | Module 4A, Module 4B |
Modules
Introduction to DBMS
- ▸ Data, Information, Database
- ▸ File Server Model, Client Server Model
- ▸ Components of DBMS, DBMS Features
- ▸ Transaction and ACID properties
- ▸ Data Abstraction and Data Independence
Data Modeling
- ▸ Logical and Physical Data Models
- ▸ E-R Modeling – a detailed study
- ▸ Record-based Models
- ▸ Relational Model – overview and concepts
- ▸ Tables, Keys, Constraints
- ▸ Data Integrity and Integrity Rules
- ▸ Database Objects – Schema and Non-schema
- ▸ Functional Dependency
- ▸ Database Normalization
- ▸ Codd's Rules
Introduction to SQL
- ▸ SQL Features, Operators and Data Types
- ▸ SQL Parsing
- ▸ Types of SQL Commands
- ▸ Querying Data from the Database
- ▸ Correlated Sub-queries
- ▸ Joins
- ▸ Hierarchical Queries
- ▸ Bind Variables and Cursors
- ▸ Views, Functions, Stored Procedures and Triggers
Distributed Databases
- ▸ Architectures for Parallel Databases
- ▸ Parallel Query Evaluation; Parallelizing Individual Operations
- ▸ Distributed Database Concepts
- ▸ Fragmentation, Replication and Allocation
- ▸ Query Processing in Distributed Databases
- ▸ Concurrency Control and Recovery
NoSQL
- ▸ The Emergence and Relevance of NoSQL
- ▸ Types of NoSQL Databases
- ▸ MongoDB, Cassandra, HBase, Neo4j – use and deployment
- ▸ Applications of NoSQL
The class database: university_lab
All examples run on the inter schema of university_lab, the database shared in class. Restore it and load the sample rows once, and you can run every example yourself.
Lab sessions in the syllabus
| Lab | Activity | Module |
|---|---|---|
| Lab 1 | Intro to DBMS, installing PostgreSQL, basic SELECT / INSERT / UPDATE / DELETE | Module 1 |
| Lab 2 | E-R diagrams and converting them to a relational schema | Module 2 |
| Lab 3 | Tables with keys and constraints; queries for data retrieval | Module 2 |
| Lab 4 | SQL operators and functions; complex queries with JOINs | Module 3 |
| Lab 5 | Normalizing tables; designing a well-structured schema | Module 2 |
| Lab 6 | Distributed databases: query processing and performance | Module 4A |
| Lab 7 | Concurrency control and recovery | Module 4A |
| Lab 8 | NoSQL: MongoDB, Cassandra and HBase – setup and CRUD | Module 4B |
| Lab 9 | NoSQL: Neo4j – creating and querying a graph database | Module 4B |
