CS 430/630 Database Management Systems

Spring, 2019
MW 4:00-5:15 in W-2-200

Instructor: Betty O'Neil, eoneil at cs dot umb dotedu
Office hours: MW 3:30-3:45, 5:30-6:45 in S/3/169

TA: Mohammad Hadianpour, Mohammad.Hadian001 at umb dot edu
Office Hours:  TBA in S-3-124A


Course Objectives

The course will introduce fundamental concepts in relational databases, such as: the relational model and relational algebra; the Standard Query Language (SQL); database design theory; conceptual design; database application development; database security.


Students registering for CS430/630 must have previously completed courses in data structures and discrete mathematics. Also, they are required to have working knowledge of Java and C programming languages, as well as familiarity in using the UNIX operating system.

Topics Covered


  1. R. Ramakrishnan, J. Gehrke (R&G), Database Management Systems, 3rd edition, 2002. Available in .pdf form online.
  2. J. Murach (M), Oracle SQL and PL/SQL for Developers, 2nd edition, 2014. Please purchase a print copy (under $50).
Note: No electronic devices are allowed in open-book exams, so be prepared to print out parts of online books

Recommended book: just published (on Amazon), covers nearly all of R&G topics, plus newer topics: W. Lemahieu, S. vanden Broucke, B. Baesens, Principles of Database Management, Cambridge U. Press, 2018. Videos


Simple point system. Midterm exam: 100 points, Final exam: 150 points, Assignments: various, about 100 points total. The exams are open-print-books, posted solutions, your own assignment papers, closed electronic devices.

Attendance Policy

Class attendance is strongly encouraged, and students are expected to participate actively in class by asking and answering questions. Occasional classes will have "labs", i.e., practice work in class, with credit for completed papers. In case of missed class, students are responsible to get up-to-date with course materials and announcements available at the class web page www.cs.umb.edu/cs630.

ACCOMMODATIONS: The University of Massachusetts Boston is committed to providing reasonable academic accommodations for all students with disabilities.  This syllabus is available in alternate format upon request. Students with disabilities who need accommodations in this course must contact the instructor to discuss needed accommodations. Accommodations will be provided after the student has met with the instructor to request accommodations. Students must be registered with the Ross Center for Disability Services, UL 211, www.ross.center@umb.edu , 617.287.7430 before requesting accommodations from the instructor.

ACADEMIC CONDUCT: It is the expressed policy of the University that every aspect of academic life—not only formal coursework situations, but all relationships and interactions connected to the educational process—shall be conducted in an absolutely and uncompromisingly honest manner. The University presupposes that any submission of work for academic credit indicates that the work is the student’s own and is in compliance with University policies. In cases where academic dishonesty is discovered after completion of a course or degree program, sanctions may be imposed retroactively, up to and including revocation of the degree. Students are required to adhere to the Code of Student Conduct, including requirements for academic honesty, delineated in the University of Massachusetts Boston Bulletin, found at:  http://www.umb.edu/life on_campus/policies/community/code.

Topics in More Detail

NOTE: Get a Linux account for cs430/630 by running apply for cs630, even if you already have a UNIX/Linux account here. See detailed directions at  https://www.cs.umb.edu/sp/resources/other/faqs/#FAQ02, reachable from www.cs.umb.edu by clicking RESOURCES, looking for the Common section, and clicking Answers to Frequently Asked Questions, then selecting FAQ02. You can get help in S/3/158. This should be done by the end of the first week to list your username for an Oracle account. See the class web page at http://www.cs.umb.edu/cs630. Also read Access to cs.umb.edu systems from offsite.

Here "R&G" means Ramakrishnan and Gehrke, M means Murach. "6pp" means formatted as 6 slides/page
Password for slides is available in class, or by email to eoneil.
Topic Reading
Course Overview and Introduction to Relational Model
Mon., Jan. 28 Lecture01(6pp)  Also see above NOTE about getting accounts.
See DatabaseSetup for more info. 
R&G: Chapter 1 - all, Chapter 2 - 2.1, 2.2, 2.3, Chapter 3 to top of pg. 62, plus subsection 3.2.1 (keys)
M: Chapter 1 to page15
 Relational Algebra
Wed., Jan. 30 Lecture02 (6pp)
Fri., Feb. 1: made Oracle and mysql accounts for 17 students with class accounts
Mon., Feb. 4 Lecture03 (6pp) Relational Algebra lab, in class: Lab Sheet Solution
Note: the problem with logins to pe07 turned out to be that some students had obtained accounts for cs430 (not your fault, this should not have been on the list!). Please apply for cs630, which has the access to pe07 that we need.
Wed. Feb 6. noon: all but 7 students have cs630 accounts and database accounts.
R&G: Chapter 4 - 4.1, 4.2
Intro to SQL.
Wed., Feb. 6 Lecture04 (6pp) (protected: use username/password provided in class)
Thurs., Feb 7, 5pm: all but 4 students have cs630 accounts and database accounts.
Mon., Feb. 11 Lecture05 (6pp) Constraints, more queries
R&G: Chapter 5 - 5.1-5.3
M: Chapter 1, Chapter 3, 4
M: Chapter 10
SQL Nested Queries
Wed., Feb. 13 Lecture06 (6pp)
R&G: Chapter 5 - 5.4 to (Q8)
M: Chapter 6
SQL Aggregate Queries, etc.
Wed., Feb. 20, Lecture07 (6pp) (added info, slides 10,11) on weighted AVG question from class)

Mon., Feb. 25 SQL Lab, in class (5 points)  SQL Lab Sheet Solution
More on Aggregates, Nulls, YelpDB queries
Wed., Feb. 27 Lecture08 (6pp)
Division in RA and SQL, Using the JOIN keyword in SQL
Mon., Mar. 4 Snow Day
Wed., Mar. 6 Lecture09 (6pp)
R&G: Chapter 5 - 5.5
M: Chapter 5
Outer Joins, Create Table, insert, update, delete, SQL Constraints
Mon., Mar. 18 Lecture10 (6pp)
R&G: Chapter 5 - 5.6
Chapter 3 - 3.1-3.3
M: Chapter 7. 8, 10
The Entity-Relationship (ER) Model
Mon., Mar. 18 Lecture 10a (6pp) Intro DB Design
Wed., Mar. 20 Lecture11 (6pp) Intro to ER
Mon., Mar. 25 Lecture12 (6pp) ER
R&G: Chapter 2 - all except 2.4.5, 2.5.3, 2.5.4, 2.6-2.8; Chapter 3 - 3.5 (up to 3.5.5)
M: Chapter 9
Wed., Mar. 27 Lecture13 (6pp
R&G: Chapter 3: 3.6 and 3.7
M: Chapter 11
Mon, Apr. 8 Midterm Review (6pp)
Wed., Apr. 10 Midterm Exam covering above material (including Views)
Practice Midterm Exam (Solution)

Database Application Development - Intro, JDBC, Transactions
Mon., Apr. 1 Lecture 14 (6pp) Intro to DB App Development, JDBC
Wed., Apr. 3 Lecture15 (6pp) JdbcCheckup.java Exceptions in Java (6pp) Microsoft .NET DB Access (6pp)
Wed., Apr. 17 Lecture16 (6pp) JDBC, homework4 notes
Mon., Apr. 22 Lecture17 (6pp) Transactions
R&G: Chapter 6.1
R&G: Chapter 6.2, 6.3
R&G: Chapter 16 to pg. 529 (Intro Transactions)
Database Application Development - Oracle PL/SQL
Wed., Apr. 24 Lecture18 (6pp)
M: Chapter 13, 15
M: Chapter 14 (transactions in PL/SQL)
Schema Refinement and Normal Forms
Mon., Apr. 29 Lecture19 (6pp)
M: Chapter 9 from pg. 298
Chapter 19 - 19.1-19.3 
BCNF and 3NF. Decompositions
Wed., May 1 Lecture20 (6pp)
Mon., May 6 Schema Refinement and Normal Forms Lab in class (4 points)
Lab Sheet (Solution)
R&G: Chapter 19 - 19.1-19.6 Solved Exercises to try: 19.3, 19.5, 19.7
Security and Authorization
Wed., May 8 Lecture 21 (6pp)
R&G: Chapter 21
M: Chapter 12
Mon., May 13 Intro to NoSQL Databases (6pp Lemahieu et al (recommended reference above) has Videos with one for Chap. 11 on NoSQL
Wed., May 15 Final Review (6pp), teacher evaluations
Final Exam Wed., May 22, 3:00-6:00 in W-2-200: come at 2:45 for extra time. Exam will end at 6:05 (room is in use after us)
Practice Final Exam Solution

Instructor: Prof. Betty O'Neil

TA: Mohammad Hadianpour

Local Resources
Web Resources