CS 348: Introduction to Database Management  

Winter 2023


Course Description

This course is an introduction to database management systems (DBMSs), which are the core software systems that applications use to store, manage, query, and manipulate very large-scale data efficiently. The course covers three core topics. (1) We cover the fundamental topics of database management, which include: the relational data model and its query languages; integrity constraints to enforce invariants about application data; indexes and views to make DBMSs efficient for an application workload; and transactions to ensure safe concurrent access to data, focusing on fundamental topics such as serializability and ACID guarantees of a DBMS. (2) We cover database design methodology, which shows how to design "good" databases instead of "bad" ones and how this can be made formal using the theory of normalization. (3) We cover a suite of topics about the internals and architectures of DBMSs: query planning and optimization, transaction processing, and physical design and tuning of databases. (4) We cover advanced topics related to data management, including data warehousing, big data systems, and nosql systems. While topics under (1) and (2) are topics from the perspective of DBMS users and administrators, and teach students how to use DBMSs efficiently in practice, topics under (3) is from the perspective of system engineers that actually implement the DBMS, and aims to engage students interested in the low-level implementations of the core data structures, algorithms, and protocols DBMSs use to support higher-level applications. Topics under (4) aims at providing a gentle introduction to alternative DBMSs optimized for use cases revolving around large scale data management. 

Textbook

Required: Database System Concepts (DSC) (Seventh Edition) Abraham Silberschatz, Henry F. Forth and S.Sudarshan, McGraw Hill. 

Organization

Section Instructor Email (@uwaterloo.ca) Office Hours
LEC 001 Chao Zhang chao.zhang Weds, 2-3pm, DC3517 
LEC 002 Arif Usta arif.usta Mons, 3-4pm, DC3517

Instructional Apprentice Email (@uwaterloo.ca) Office Hours
Guy Coccimiglio gccoccim See Piazza
Shubhankar Mohapatra s3mohapa See Piazza

Teaching Assistant Email (@uwaterloo.ca)
Eli Henry Dykhne ehdykhne
Karl Knopf kknopf

Instructional Support Coordinator Email (@uwaterloo.ca)
Sylvie Davies sylvie.davies

Schedule

Week Lecture Topics & Slides Readings Date Important
Dates
1
Intro to course & database systems Ch. 1 Tue, Jan 10
Relational model, Relational languages Ch. 2 Thu, Jan 12
2
Basic SQL Ch. 3 Tue, Jan 17
Intermediate SQL Ch. 4.1-4.6 Thu, Jan 19 Project Announcement
3
Intermediate SQL Ch. 4.7 Tue, Jan 24 Assignment 1 Posted
Advanced SQL Ch. 5 Thu, Jan 26 Project Milestone 0 Due
4
Advanced SQL Ch. 5 Tue, Jan 31
Entity-Relationship modeling Ch. 6.1-6.6 Thu, Feb 2
5
Entity-Relationship modeling Ch. 6.1-6.6 Tue, Feb 7 Assignment 1 Due
E-R to Relational mapping Ch. 6.7-6.12 Thu, Feb 9
6
Constraints & normalization Ch. 7 Tue, Feb 14 Assignment 2 Posted
Constraints & normalization Ch. 7 Thu, Feb 16
7 Reading week Feb 20-25
8
Transaction support in SQL Ch. 17 Tue, Feb 28  Assignment 2 Due
MIDTERM REVIEW - Thu, Mar 2

Fri, Mar 3

(4:30-6:00 pm)

MIDTERM EXAM
9
Mon, Mar 6 Project Milestone 1 Due
Transaction support in SQL Ch. 17 Tue, Mar 7 Assignment 3 Posted
Physical design & tuning Ch.14, Ch. 25.1-25.4 Thu, Mar 9
10
DBMS architecture & internals Ch.15.1-15.3.2, 15.5.1-15.5.4.4, 16.1-16.2, 16.4.1-16.4.3 Tue, Mar 14
DBMS architecture & internals Ch. 18.1.1-18.1.3, Ch. 18.2, Ch. 18.4 Thu, Mar 16
11
Data warehousing & mining Ch. 11 Tue, Mar 21

Assignment 3 Due;

Assignment 4 Posted

Big Data Systems Ch. 10, Ch. 20.1, 20.4-20.6, 21.1, 21.2, 21.4, 22.1, 22.5, 22.9, 23.1 Thu, Mar 23 Project Milestone 2 Due 
12
NoSQL Systems Notes Tue, Mar 28
Project demo - Thu, Mar 30 Assignment 4 Due
13
Project demo - Tue, Apr 4 Project Final Report Due
FINAL REVIEW - Thu, Apr 6

Assignments

Crowdmark will be used to submit non-coding assignments. When the CrowdMark instance is ready, all students enrolled in the class will receive an email with a link to their individual submission site. In order to submit, upload a separate PDF file (multiple pages are allowed) to each question. You may resubmit as often as necessary until the due date. (More detailed CrowdMark information is available at https://crowdmark.com/help/completing-and-submitting-an-assignment/.)

Assignment release dates and due dates are as follows (dates are tentative and may change):

Assignment Date Posted Due (EDT/EST 11:59 pm) Hand In Via Marker
1 (relationational model and SQL) Tue, Jan 24 Tue, Feb 7 Crowdmark  TBD
2 (ER modeling and normalization) Tue, Feb 14 Tue, Feb 28 Crowdmark   TBD
3 (transaction and query processing) Tue, Mar 7 Tue, Mar 21 Crowdmark TBD
4 (data warehousing, big data, and nosql) Tue, Mar 21 Thu, Mar 30 Crowdmark TBD

Instructions for Assignments: Your written solutions will be judged not only for correctness but also for the quality of your presentation and explanations.

Collaboration Policy: The work you hand in must be your own. Unless specified otherwise, you can always use any result from the textbook, notes, or previous assignment just by citing it. You may discuss the assignment questions verbally with others, but you should come away from these discussions with no written or electronic records and you must acknowledge the discussion. Acknowledge any sources you have used. Any assistance received (from human or nonhuman sources) that is not given proper citation may be considered a violation of the university policies.

Late Policy:


Project

The group project is optional. You can choose between doing the group project or having higher weighted exams (refer to the Mark Breakdown section below).

Learn will be used to submit the group project. Detailed instructions will be given in week 2.

Milestone Due (11:59pm EDT/EST)
0 (Team up) Tue, Jan 26
1 (Proposal) Mon, Mar 6
2 (Midterm Report) Thu, Mar 23
3 (Final Report & Demo) Tue, Apr 4

Piazza

We will use Piazza for all course announcements and as a forum for students to ask and answer questions. So you should enroll yourself at your earliest convenience. During Piazza discussions, please do not reveal the solutions to the assignments by requesting or offering detailed advice. We'll delete comments that reveal too much. Violations can result in academic sanctions.

Similarly, do not solicit hints or provide hints about how to solve the homework problems on other bulletin boards, such as Facebook. Violations can result in academic sanctions.

Piazza is not the place to dispute how assignments are marked. If you have a complaint, please follow the process given below.


Mark breakdown

Two marking schemes, depending on whether you choose to do the group project:

Points of contact for common questions

Note: If you decide to e-mail the course staff, you must use your uwaterloo Quest e-mail account (WatIAM/Quest userID @uwaterloo.ca); otherwise we cannot verify who you are and are limited on what we can accept and respond to.

Help Topic Contact
Assignment: Missed Deadline We do not accept emailed assignments. The last files submitted before the deadline will be marked (submit early and often, even if not finished).
If the deadline is missed due to illness or other valid, verifiable reason, see Missed Work Due To Illness below.
Assignment: Marking Error Re-mark request, due within one week of release of marks on CrowdMark/Markoset. Contact the TA who marked the specific question and submit a written request. See TAs for contact information.
Assignment: Recording Error Grades will be made available through Marmoset and Crowdmark. Official marks will finally be on Learn. If you notice an error in the recorded value, please contact Sylvie Davies (CS 348 ISC).
Enrollment If Quest won't let you enroll or switch LEC or TUT sections without a permission/override number: Instructors and course staff are unable to help you—you must see a CS academic advisor.
General Course Help Check office hours.
Missed Work due to Illness or Valid & Verifiable Reason (Assignments, Exams) Validation required. See Verification of Illness Services but substitute Sylvie Davies (CS 348 ISC) for references to instructor. Make sure you also read the Math Faculty document on the consequences of submitting a VIF.
Accessibility Services (AAS) exam accommodation forms (request to write at AAS) Submit to AAS at least 3 weeks before exam

Course policy and other information

Plagiarism

Plagiarism is a very serious academic offence and is penalized accordingly. When you plagiarize you damage the learning experience for yourself and others. To avoid plagiarism accusations, do not copy other people's work, and cite all references that you use. If you work with others, only discuss general aspects of the course material, not specific solutions. Write up the solutions yourself, not in groups.

Mental Health Resources

Mental Health: If you or anyone you know experiences any academic stress, difficult life events, or feelings like anxiety or depression, we strongly encourage you to seek support.

On-campus Resources

Off-campus Resources

Diversity: It is our intent that students from all diverse backgrounds and perspectives be well served by this course, and that students’ learning needs be addressed both in and out of class. We recognize the immense value of the diversity in identities, perspectives, and contributions that students bring, and the benefit it has on our educational environment. Your suggestions are encouraged and appreciated. Please let us know ways to improve the effectiveness of the course for you personally or for other students or student groups. In particular:

University Policies (University required text)

Academic Integrity: In order to maintain a culture of academic integrity, members of the University of Waterloo community are expected to promote honesty, trust, fairness, respect and responsibility. All members of the UW community are expected to hold to the highest standard of academic integrity in their studies, teaching, and research. The Office of Academic Integrity's website ( http://www.uwaterloo.ca/academicintegrity) contains detailed information on UW policy for students and faculty. This site explains why academic integrity is important and how students can avoid academic misconduct. It also identifies resources available on campus for students and faculty to help achieve academic integrity in - and out - of the classroom.

Grievance: A student who believes that a decision affecting some aspect of his/her university life has been unfair or unreasonable may have grounds for initiating a grievance. Read Policy 70 - Student Petitions and Grievances, Section 4, http://www.adm.uwaterloo.ca/infosec/Policies/policy70.htm .

Discipline: A student is expected to know what constitutes academic integrity, to avoid committing academic offenses, and to take responsibility for his/her actions. A student who is unsure whether an action constitutes an offense, or who needs help in learning how to avoid offenses (e.g., plagiarism, cheating) or about "rules" for group work/collaboration should seek guidance from the course professor, academic advisor, or the Undergraduate Associate Dean. When misconduct has been found to have occurred, disciplinary penalties will be imposed under Policy 71 - Student Discipline. For information on categories of offenses and types of penalties, students should refer to Policy 71 - Student Discipline, http://www.adm.uwaterloo.ca/infosec/Policies/policy71.htm.

Avoiding Academic Offenses: Most students are unaware of the line between acceptable and unacceptable academic behaviour, especially when discussing assignments with classmates and using the work of other students. For information on commonly misunderstood academic offenses and how to avoid them, students should refer to the Faculty of Mathematics Cheating and Student Academic Discipline Policy, https://uwaterloo.ca/math/current-undergraduates/regulations-and-procedures/cheating-and-student-academic-discipline-guidelines.

MOSS (Measure of Software Similarities) is used in this course as a means of comparing students' assignments to ensure academic integrity. We will report suspicious activity, and penalties for plagiarism/cheating are severe. Please read the available information about academic integrity very carefully.

Discipline cases involving any automated marking system such as Marmoset include, but are not limited to, printing or returning values in order to match expected test results rather than making an actual reasonable attempt to solve the problem as required in the assignment question specification.

Appeals: A student may appeal the finding and/or penalty in a decision made under Policy 70 - Student Petitions and Grievances (other than regarding a petition) or Policy 71 - Student Discipline if a ground for an appeal can be established. Read Policy 72 - Student Appeals, https://uwaterloo.ca/secretariat/policies-procedures-guidelines/policy-72 .