CP363 DATABASE I, FALL 2022, WLU
Course Description
The course provides an introduction to the basic features of Database Management Systems
(DBMS), focusing on Relational Database Management Systems (RDBMSs).
Students will obtain an understanding of how the
different components of a DBMS system fit together. They will
write programs to interact with a particular DBMS as a case
study.
Prerequisites
C164 or permission of the Depatment
Course Staff
- Instructor: Dr. Ilias S. Kotsireas,
Office: N2076A, Phone: 884-0710 ext. 2218, E-Mail: ikotsireATwlu.ca
- Assistant: Mr. David Brown,
responsible for the course assignments, E-Mail: dbrownATwlu.ca
Office Hours
- Please e-mail me to book an individual appointment at my office or on skype/zoom.
For authentication/security purposes, please include your Laurier Student ID, and your first and last name, in all communcations regarding the course.
Course Textbook
|
Fundamentals of Database Systems, 7/E
Ramez Elmasri, Shamkant B. Navathe
ISBN-10: 0133970779
ISBN-13: 9780133970777
|
Textbook Support Web Site:
Pearson Education
Lecture Topics (corresponding to the 12 weeks schedule)
- Introduction, Database System Concepts and Architecture
- Data Models
- Schemas
- Instances
- Data Independence
- Database Languages
CH1, CH2
- Entity/Relationship (ER) Model
- Entity Types
- Entity Sets
- Attributes
- Keys
- Relationship Types
- Relationship Sets
- Roles
- Structural Constraints
- Weak Enity Types
- ER Diagrams
- Naming Conventions
- Binary/Ternary Relationships
CH3
- Relational Data Model, Relational Databases, Examples of Relational Database Management Systems (RDBMS)
- Relational Constraints
- Relational Database Schemas
- Update Operations
CH5
- Structured Query Language (SQL) Part I
- Data Definition, Data Types
- Constraint Specification
- Basic Queries, SELECT/FROM/WHERE, Ambiguities/Aliasing, Tuple Variables, Distinct, ORDER BY
- Set-theoretic UNION/EXCEPT/INTERSECT
- Substring Pattern Matching, Arithmetic Operators
- Null Values, IS, IS NOT
- Nested Queries, Correlated Nested Queries, EXISTS, NOT EXISTS
- Explicit Sets of Values, Attribute Renaming
- Joined Tables, Outer Joins
- Aggregate Functions, MAX, MIN, AVG, SUM, COUNT
- Grouping, GROUP BY, HAVING clauses
- INSERT/DELETE/UPDATE
- CREATE ASSERTION, Triggers
CH6
- Structured Query Language (SQL) Part II
- Views (virtual Tables)
- Additional SQL examples on diferrent relational database schemas
CH7
- Relational Algebra (RA)
- Select/Project (Unary) RA operators
- Set-theoretic RA operators
- Join/Division (Binary) RA operators
- Aggregate Functions and Grouping
- Outer Join
CH8
- ER-to-Relational Mapping, EER-to-Relational Mapping
CH9
- Functional Dependencies (FDs), Normal Forms (NFs), Normalization
- Redundancy, Update Anomalies, Spurious Tuples
- Definition of an FD, Inference Rules for FDs
- Equivalent Sets of FDs, Minimal Sets of FDs
- First NF, Second NF, Third NF, 2NF/3NF Normalization
- BCNF, BCNF Normalization
CH14
- Algorithms for Relational Database Scheme Design, Multivalued and Join Dependencies
- Relational Decompositions
- Attribute Preservation, Dependency Preservation
- Nonadditive Join (Lossless Join)
- NULL Values, Dangling Tuples
- Multivalued Dependencies, Fourth NF
- Join Dependencies, Fifth NF
CH15
- Query Processing and Optimization
- Translating SQL Queries into Relational Algebra
- Algorithms for SELECT Operation
- Query Trees and Heuristics for Query Optimization
- General Transformation Rules for Relational Algebra Operations
- Outline of a Heuristic Algebraic Optimization Algorithm
- Cost-based query optimization
CH18, CH19
- Transactions, Schedules
- The Lost Update Problem, The Temporary Update Problem, The Incorrect Summary Problem
- Transactions States (BEGIN/END/COMMIT/ROLLBACK/ABORT), System Log
- ACID properties (Atomicity, Consistency preservation, Isolation, Durability/Permanency)
- operations in conflict (in a schedule)
- complete schedules, recoverable schedules, cascading rollback, cascadeless schedules
- Schedule Serializability, serial schedules, nonserial schedules, conflict-serializable schedules
CH20
Class Schedule and Fall Semester Timetable
| Mon | Wed | Fri |
| 10:30-11:20 | 10:30-11:20 | 10:30-11:20 |
| N1001 | N1001 | N1001 |
______________|_____________|_____________}_____________|_
| | | |
Week 0: | --- | --- | Sep 09 |
Week 1: | Sep 12 | Sep 14 | Sep 16 |
Week 2: | Sep 19 | Sep 21 | Sep 23 |
Week 3: | Sep 26 | Sep 28 | Sep 30 |
Week 4: | Oct 03 | Oct 05 | Oct 07 |
______________|_____________|_____________|_____________|______
|
Reading Week | Oct 10 - Oct 14 N o C o u r s e s
______________|________________________________________________
| | | |
Week 5: | Oct 17 | Oct 19 | Oct 21 |
Week 6: | Oct 24 | Oct 26 | Oct 28 T1 |
Week 7: | Oct 31 | Nov 02 | Nov 04 |
Week 8: | Nov 07 | Nov 09 | Nov 11 |
Week 9: | Nov 14 | Nov 16 | Nov 18 |
Week 10: | Nov 21 | Nov 23 | Nov 25 |
Week 11: | Nov 28 | Nov 30 | Dec 02 |
Week 12: | Dec 05 | Dec 07 T2 | --- |
______________|_____________|_____________|_____________|______
| | | |
Course Requirements and Student Evaluation
Assignments webpage, maintained by David Brown:
https://bohr.wlu.ca/cp363/
Contains a lot of very useful materials as well.
- Assignment 1: 10%,
https://bohr.wlu.ca/cp363/asgns
Release Date: Sep 30, 2022, Due date: Oct 17, 2022
- Assignment 2: 10%, Release Date: TBA
- Assignment 3: 10%, Release Date: TBA
- Assignment 4: 10%, Release Date: TBA
- Assignment 5: 10%, Release Date: TBA
- Midterm Test 1: 25%, Oct 28, (in class)
- Midterm Test 2: 25%, Dec 07, (in class)
- Strict adherence to the assignments submission instructions is required
- Late assignment submissions will not be accepted (unless valid medical documentation is provided) and will be marked with 0.
University and Course Policies (senate approved)
-
Special Needs: Students with disabilities or special needs are advised to contact Laurier’s Accessible Learning Centre for information regarding its services and resources. Students are encouraged to review the Academic Calendar for information regarding all services available on campus.
-
Plagiarism: Wilfrid Laurier University uses software that can check for plagiarism. If requested to do so by the instructor, students are required to submit their written work in electronic form and have it checked for plagiarism.
-
Academic Integrity: Laurier is committed to a culture of integrity within and beyond the classroom. This culture values trustworthiness (i.e., honesty, integrity, reliability), fairness, caring, respect, responsibility and citizenship. Together, we have a shared responsibility to uphold this culture in our academic and nonacademic behaviour. The University has a defined policy with respect to academic misconduct. As a Laurier student you are responsible for familiarizing yourself with this policy and the accompanying penalty guidelines, some of which may appear on your transcript if there is a finding of misconduct. The relevant policy can be found at Laurier's academic integrity website along with resources to educate and support you in upholding a culture of integrity. Ignorance is not a defense.
-
Classroom Use of Electronic Devices: Read WLU policy 9.3 Classroom Use of Electronic Devices.
-
Late Assignment Policy: late assignments will be marked with 0.
-
Final Examinations: Students are strongly urged not to make any commitments (i.e., vacation) during the examination period. Students are required to be available for examinations during the examination periods of all terms in which they register. Refer to the Handbook on Undergraduate Course Management for more information.
-
Foot Patrol, the Wellness Centre, Student Food Bank.