CP363 DATABASE I, WINTER 2020, 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
CP164 (or CP114) or permission of the Depatment
Course Staff
- Instructor: Dr. Ilias S. Kotsireas,
Office: N2076A, Office Hours: 24/7 and by appointment, Phone: 884-0710 ext. 2218, E-Mail: ikotsireATwlu.ca
- Assistant: Mr. David Brown,
responsible for the course assignments, E-Mail: dbrownATwlu.ca
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 Winter Semester Timetable
| Mon | Wed |
| 13:00-14:20 | 13:00-14:20 |
| BA 101 | BA 101 |
______________|_____________|_____________|__
| | |
Week 1: | Jan 06 | Jan 08 |
Week 2: | Jan 13 | Jan 15 |
Week 3: | Jan 20 | Jan 22 |
Week 4: | Jan 27 | Jan 29 |
Week 5: | Feb 03 | Feb 05 |
Week 6: | Feb 10 | Feb 12 *1 |
______________|_____________|_____________|__
|
Reading Week | Feb 17-21 N o C o u r s e s
______________|______________________________
| | |
Week 7: | Feb 24 | Feb 26 |
Week 8: | Mar 02 | Mar 04 |
Week 9: | Mar 09 | Mar 11 |
Week 10: | Mar 16 | Mar 18 |
Week 11: | Mar 23 | Mar 25 |
Week 12: | Mar 30 | Apr 01 *2 |
______________|_____________|_____________|__
| | |
*1 --> Test 1 (T1) date
*2 --> Test 2 (T2) date
Course Requirements and Student Evaluation
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.