| Version 79 (modified by , 9 years ago) ( diff ) |
|---|
CS122A Winter 2017: Introduction to Data Management
Course Personnel
Instructor:
- Mike Carey
E-Mail: mjcarey@ics.uci.edu
Office: Bren Hall 2091
Office hours: Tue 5-6 PM, Wed 4-5 PM
TAs:
- Xikui Wang
E-mail: xkkwww@gmail.com
Office: ICS 424A (Building 302, 4th floor)
Office hours: Wed/Fri 12-1 PM - Bryan Chou
E-mail: chunghc3@uci.edu
Office: ICS 424A (Building 302, 4th floor)
Office hours: Mon/Wed 4-5 PM
Readers:
- Shiva Jahangiri
E-mail: shivaj@uci.edu
Office: ICS 424E (Building 302, 4th floor)
Reader hours: Thu 2-3 PM - Akshay Sridhar
E-mail: amanchal@uci.edu
Office: ICS 424A (Building 302, 4th floor)
Reader hours: Tue 11-12 PM - Abhinaya Dasarathy
E-mail: adasarat@uci.edu
Office: ICS 424A (Building 302, 4th floor)
Reader hours: M 1-2 PM
Meeting Times & Places
Lecture:
Time: Mon/Wed/Fri 5-5:50 PM
Place: HSLH 100A
Instructor: Mike
Discussion 1:
Time: Mon 6-6:50 PM
Place: MSTB 124
Instructor: Bryan
Discussion 2:
Time: Mon 7-7:50 PM
Place: MSTB 124
Instructor: Bryan
Discussion 3:
Time: Mon 8-8:50 PM
Place: MSTB 124
Instructor: Bryan
Discussion 4:
Time: Wed 6-6:50 PM
Place: MSTB 124
Instructor: Xikui
Discussion 5:
Time: Wed 7-7:50 PM
Place: MSTB 124
Instructor: Xikui
Discussion 6:
Time: Wed 8-8:50 PM
Place: MSTB 124
Instructor: Xikui
Course Objectives
This course provides students with an introduction to the design of databases and the use of database management systems in support of applications. It covers the entity-relationship (E-R) approach to logical database design. It then covers the relational data model, mapping of E/R designs to relations, relational database design principles, abstract query languages such as the relational algebra and relational calculus, and the industry-standard query language, SQL. It also covers indexing and physical database design, Students will gain exposure to how relational database management systems are used to manage an actual database. Time permitting, the course will also touch briefly on advanced database management topics such as semi-structured data management and/or transactions.
This course is aimed at database design and the use of database management systems in building database applications. It feeds into a follow-on project course, CS122B, whose focus is data-centric Web applications. The CS122A/B course sequence does NOT cover the internal workings of database systems; that material is covered in the undergraduate course CS122C (or its graduate equivalent, CS222) and the graduate-level follow-on course CS223. (The course textbook also delves further into that material for those students who are curious about what goes on under the hood.) Interested students are strongly encouraged to take one, two, or all of these courses; CS122B and CS122C/CS222 are independent, as each one requires only CS122A as their required database background.
Prerequisites
Students should ideally have some experience programming in Python, Java, C++, or C#.
Textbooks
Database Management Systems (3rd Edition) by Raghu Ramakrishnan and Johannes Gehrke (a.k.a. "the Cow book").
Topic Coverage and Exam Schedule
Syllabus
| Topic | Reading |
| Databases and DB Systems | Ch. 1 |
| Entity-Relationship (E-R) Data Model | Ch. 2.1-2.5, 2.8 |
| Relational Data Model | Ch. 3.1-3.2 |
| E-R to Relational Translation | 3.5 |
| Relational Design Theory | Ch. 19.1-19.6, 20.8 |
| Midterm Exam 1 | Mon, Feb 6 |
| Relational Algebra | Ch. 4.1-4.2 |
| Relational Calculus | Ch. 4.3-4.4 |
| SQL Basics (SPJ and Nested Queries) | Ch. 3.4, 5.1-5.3 |
| SQL Analytics (Aggregation, Nulls, and Outer Joins) | Ch. 5.4-5.6 |
| Advanced SQL Goodies (Constraints, Triggers, Views, and Security) | Ch. 3.3, 3.6, 5.7-5.9, 21.1-21.3, 21.7 |
| Midterm Exam 2 | Fri, Mar 3 |
| Tree-Based Indexing | Ch. 9.1, 8.1-8.3, 10.1-10.2 |
| Hash-Based Indexing | Ch. 10.3-10.8, 11.1 |
| Physical DB Design | Ch. 8.5, 20.1-20.7 |
| Semistructured Data Management (a.k.a. NoSQL) | AsterixDB Paper |
| Basics of Transactions | Ch. 16 and Lecture Notes |
| Endterm Exam | Wed, Mar 22 |
Midterm Exam 1
Time: Mon, Feb 6, 5-5:50 PM
Place: HSLH 100A
(Solution to midterm 1 Ver.A) (Solution to midterm 1 Ver.B)
Midterm Exam 2
Time: Fri, Mar 3, 5-5:50 PM
Place: HSLH 100A
(Solution to midterm 2)
Endterm Exam
Time: Wed, Mar 22, 11-11:50 AM
Place: HSLH 100A
(Solution to endterm)
Helpful Exam Resources
(Example midterm)
(Solution to example midterm)
(Example final)
(Solution to example final)
Exams, Assignments, and Grading
Grading Critera
Homework: 40%
Quizzes: 3%
Midterm 1: 19%
Midterm 2: 19%
Endterm: 19%
Homework and Quizzes
Homework assignments must be turned in by the assigned due dates/times. Details of how to turn in a given assignment will be included in each assignment's handout. The 40% of your grade attributed to homework will be based on your top 7 out of 8 homework scores. (You can spend the 8th one however you like, but if you decide to skip an assignment, do keep in mind that the material will still be on the exam and that the homework is intended to be a useful study/practice tool.) There will also be short weekly quizzes in the discussion sections to give you further practice with the course material; those will count relatively little towards your final grade (they're essentially a discussion section participation score), and they're just there for your benefit (to give you another chance to check your understanding of things and see what questions you might want to ask the TA).
Grade Change Policy
For all of the graded assignments as well as the midterm exam, if you disagree with the grading, you may discuss your concerns with the relevant instructor (professor, TA, or reader) within two weeks after they are returned. After that, all grades will be considered final. Instructors' office hours are the best time/place to handle these issues (or you can make a separate appointment). Do not wait until the end of the term to raise issues, as two weeks means two weeks.
Collaboration Policy
All homework assignments are to be completed individually. It is okay to discuss assignments with your peers, e.g., to clarify details of an assignment or to compare thoughts on rough approaches, but the bulk of your work is to be done solo. See http://www.ics.uci.edu/ugrad/policies/index.php#academic_honesty for a good discussion of what is/isn't considered honest collaboration. The exams are also to be done solo. :-)
Late Policy
Due dates will be clearly indicated on all HW assignments. Assignments will still be accepted for up to two days after the due date, but you will lose 20 points per day (out of the 100-point total per assignment) for any lateness. We will not accept assignments in any form whatsoever after that time. "Stuff happens" sometimes, as we all know, so you should anticipate that reality and try to avoid working up until the very last minute. Assignments MUST be turned in per the assignment's instructions by the indicated deadline date/time in order to get full credit. (Note: The best-7-out-of-8 grading policy is another fallback plan for what would otherwise be late homework assignments; that will work once, but obviously only once.)
Exam Attendance Policy
The exam dates are provided at the start of the term. These dates are not flexible and makeup exams will not be offered, so please avoid scheduling interviews, three-day weekends, or any other activities in ways that interfere with exam-taking. All students are required to take the exam on the same date in the same time window in order to ensure that we can give, grade, and fairly curve the entire class on a single exam. (Thanks!)
Academic Honesty Policy
Cheating is the one area where the instructor for this course has zero patience or sympathy. You are here at UCI to learn, and cheating totally defeats that purpose. All students will be expected to adhere to the UCI and ICS Academic Honesty policies (see http://www.editor.uci.edu/catalogue/appx/appx.2.htm#academic and http://www.ics.uci.edu/ugrad/policies/index.php#academic_honesty to read their details). Any student found to be involved in cheating or aiding others in doing so will be academically prosecuted to the maximum extent possible: that means you will most probably fail this course in its entirety. (Ask around - it's happened.) Just say no to cheating!!!
DBMS Platform
This class will use an industrial-strength relational database management system (RDBMS) for the hands-on homework assignments. In some past terms we have allowed students to choose between MySQL (an open source DBMS), DB2 (from IBM), and/or another RDBMS of their choosing. This quarter we will be suggesting that everyone use the same system, namely MySQL.
For information on how to set up and use MySQL, please see: [MySQL Installation Guide for Mac], [MySQL Installation Guide for Windows], [Sample SQL Script used in the guide].
For information on how to use MySQL Command-Line Tool, please see: [MySQL Command-Line Tool Guide for Mac], [MySQL Command-Line Tool Guide for Windows] [Sample SQL Script used in the guide].
For further information on how to use the DBMS, you can look here: https://dev.mysql.com/doc/refman/5.7/en/index.html.
If you have a strong preference for using another database system for the course project, e.g., because you are working elsewhere on- or off-campus with a different RDBMS (e.g., SQL Server), you may e-mail the Instructor with a request for permission to do so. If you opt to do this, you will then be on your own to make sure everything works right within the prescribed timeframes (i.e., DBMS difficulties will not be accepted as a lateness excuse).
Discussion Forums for All Things CS122A
We will be using Piazza for online class discussions. The system is catered to getting you the help you need fast and efficiently from classmates, the TAs, the Reader, and the Instructor. Rather than emailing your course or HW content questions to the teaching staff, you will be expected to post your questions on Piazza. (If you have any problems or feedback for the Piazza developers, email team@piazza.com.) We've used Piazza for this class multiple times before, and it seems to work remarkably well. You can find our class Piazza page at: http://piazza.com/uci/winter2017/cs122a.
As you are aware, there is also a weekly Discussion session meeting, and attendance of those is highly encouraged. The encouragement will be provided via the quiz portion of your final grade (3%), as quizzes can only be taken in person during the Discussion session. If for some reason you have to miss your session during one week, you can attend a different one if you want - but please try to avoid that, for load-balancing reasons, most weeks. You will be held responsible for the material discussed in the Discussion sessions, so if you opt out or miss one, be sure to ask a trusted classmate who's been to theirs what you might need to know. The Discussion sessions will also serve as "group office hours" - we will leave ample time for questions most weeks, so come armed with things you'd like to have clarified or expanded on. Lastly, in weeks where Monday is a UCI holiday, Wednesday Discussion session enrollees will also get the evening off. :-) (That will happen twice, during the weeks of Jan. 16/18 and Feb. 20/22.)
HW Due Dates & Links
Homework Assignments
| Due Date | Topic | Assignment | Solution | Grading Notes |
| Fri, Jan 20 (5 PM) | E-R Modeling | [HW 1] TMPL | [HW 1 Solution] | [HW 1 Grading Notes] |
| Fri, Jan 27 (5 PM) | E-R to Relational Translation | [HW 2] TMPL | [HW 2 Solution] | [HW 2 Grading Notes] |
| Fri, Feb 3 (5 PM) | Relational Design Theory | [HW 3] TMPL | [HW 3 Solution] | [HW 3 Grading Notes] |
| Tue, Feb 14 (6 PM) | Relational Algebra and Calculus | [HW 4] [INST] | [HW 4 Solution] | [HW 4 Grading Notes] |
| Tue, Feb 21 (5 PM) | SQL (Hands-on) | [HW 5] [INST] [SCRIPT] | [HW 5 Solution] | [HW 5 Grading Notes] |
| Tue, Feb 28 (5 PM) | More SQL (Hands-on) | [HW 6] [INST] [SCRIPT] [SAILOR DB] | [HW 6 Solution] | [HW 6 Grading Notes] |
| Fri, Mar 10 (5 PM) | SQL Design and Indexing | [HW 7] | [HW 7 Solution] | [HW 7 Grading Notes] |
| Fri, Mar 17 (5 PM) | NoSQL (Hands-on) | [HW 8] | [HW 8 Solution] | [HW 8 Grading Notes] |
Discussion Section Quizzes
| Week | Topic | Quiz | Solution |
| Week 1 | Setting the Stage for Success | [Quiz 1] | [Quiz 1 Solution] |
| Week 2 | (No Discussion) | ||
| Week 3 | E-R Modeling | [Quiz 2] | [Quiz 2 Solution] |
| Week 4 | Relational DB Design Theory | [Quiz 3] | [Quiz 3 Solution] |
| Week 5 | (No Discussion) | ||
| Week 6 | Relational Algebra and Calculus | [Quiz 4] | [Quiz 4 Solution] |
| Week 7 | (No Discussion) | ||
| Week 8 | TBD | [Quiz 6] | [Quiz 6 Solution] |
| Week 9 | TBD | [Quiz 7] | [Quiz 7 Solution] |
| Week 10 | TBD | [Quiz 8] | [Quiz 8 Solution] |
Attachments (86)
-
AsterixDBOverview.pdf
(286.9 KB
) - added by 9 years ago.
AsterixDB overview paper
- 2017w-cs122a-mysql-cmdtool-guide-for-mac.pdf (765.5 KB ) - added by 9 years ago.
- 2017w-cs122a-mysql-cmdtool-guide-for-windows.pdf (78.8 KB ) - added by 9 years ago.
- 2017w-cs122a-mysql-installation-guide-for-windows.pdf (2.0 MB ) - added by 9 years ago.
- createscript.sql (414 bytes ) - added by 9 years ago.
- sample_script.sql (3.7 KB ) - added by 9 years ago.
- 2017w-cs122a-mysql-installation-guide-for-mac.pdf (1.6 MB ) - added by 9 years ago.
-
CS122aLecture1.pdf
(563.7 KB
) - added by 9 years ago.
Lecture 1 slides (for real :-))
-
CS122aLecture2.pdf
(329.1 KB
) - added by 9 years ago.
Lecture 2 slides
- 2017w-cs122a-hw1.pdf (93.2 KB ) - added by 9 years ago.
- 2017w-cs122a-hw1-template.pdf (21.1 KB ) - added by 9 years ago.
-
CS122aLecture3.pdf
(456.3 KB
) - added by 9 years ago.
Lecture 3 slides
-
CS122aLecture4.pdf
(326.1 KB
) - added by 9 years ago.
Lecture 4 slides
-
CS122aLecture5.pdf
(432.2 KB
) - added by 9 years ago.
Lecture 5 slides
- 2017w-cs122a-hw2.pdf (514.5 KB ) - added by 9 years ago.
- 2017w-cs122a-hw1-solution.pdf (35.6 KB ) - added by 9 years ago.
-
CS122aLecture6.pdf
(296.0 KB
) - added by 9 years ago.
Lecture 6 slides
-
CS122aLecture7.pdf
(574.4 KB
) - added by 9 years ago.
Lecture 7 slides
- HW2_012345678.sql (774 bytes ) - added by 9 years ago.
-
CS122aLecture8.pdf
(1.4 MB
) - added by 9 years ago.
Lecture 8 slides
- 2017w-cs122a-quiz1.pdf (54.4 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz1-soln.pdf (194.1 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz2.pdf (121.5 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz2-soln.pdf (122.5 KB ) - added by 9 years ago.
-
CS122aLecture9.pdf
(473.4 KB
) - added by 9 years ago.
Lecture 9 slides
- 2017w-cs122a-hw3.pdf (88.5 KB ) - added by 9 years ago.
- CS122aMidtermS14.pdf (327.2 KB ) - added by 9 years ago.
- CS122aS14MidtermSolution.pdf (2.1 MB ) - added by 9 years ago.
- 2017w-cs122a-hw2-solution.pdf (24.8 KB ) - added by 9 years ago.
-
CS122aLecture10.pdf
(280.5 KB
) - added by 9 years ago.
Lecture 10 slides
- 2017w-cs122a-quiz3-soln.pdf (70.5 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz3.pdf (65.5 KB ) - added by 9 years ago.
-
CS122aLecture11.pdf
(766.1 KB
) - added by 9 years ago.
Lecture 11 slides
- 2017w-cs122a-hw3-solution.pdf (110.1 KB ) - added by 9 years ago.
- HW4_Instruction.pdf (279.8 KB ) - added by 9 years ago.
- 2017w-cs122a-hw4.docx (38.8 KB ) - added by 9 years ago.
-
CS122aLecture12.pdf
(1.0 MB
) - added by 9 years ago.
Lecture 12 slides
-
CS122aLecture13.pdf
(829.1 KB
) - added by 9 years ago.
Lecture 13 slides
-
CS122aLecture14.pdf
(425.6 KB
) - added by 9 years ago.
Lecture 14 slides
- 2017w-cs122a-hw5.pdf (48.1 KB ) - added by 9 years ago.
- 2017w-cs122a-hw5-inst.pdf (206.5 KB ) - added by 9 years ago.
- HW5_Dataset_Final.sql (67.2 KB ) - added by 9 years ago.
-
CS122aLecture15.pdf
(409.7 KB
) - added by 9 years ago.
Lecture 15 slides
- 2017w-cs122a-quiz4-soln.pdf (30.3 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz4.pdf (29.7 KB ) - added by 9 years ago.
-
CS122aLecture16.pdf
(932.5 KB
) - added by 9 years ago.
Lecture 16 slides
- 2017w-cs122a-hw6.pdf (120.6 KB ) - added by 9 years ago.
- CS122aMidterm1Winter17_VersionA_Solution.pdf (264.5 KB ) - added by 9 years ago.
- CS122aMidterm1Winter17_VersionB_Solution.pdf (385.7 KB ) - added by 9 years ago.
-
CS122aLecture17.pdf
(406.6 KB
) - added by 9 years ago.
Lecture 17 slides
-
CS122aLecture18.pdf
(1.8 MB
) - added by 9 years ago.
Lecture 18 slides
- HW6_Dataset_Update.sql (67.4 KB ) - added by 9 years ago.
- 2017w-cs122a-hw5-solution.pdf (263.5 KB ) - added by 9 years ago.
- 2017w-cs122a-hw6-inst.pdf (87.3 KB ) - added by 9 years ago.
-
CS122aLecture19.pdf
(455.0 KB
) - added by 9 years ago.
Lecture 19 slides
- SailorExample.sql (3.3 KB ) - added by 9 years ago.
-
CS122aFinalS14.pdf
(296.3 KB
) - added by 9 years ago.
Example final
-
CS122aSpring2014FinalKey.pdf
(977.2 KB
) - added by 9 years ago.
Solution to example final
- 2017w-cs122a-quiz5-soln.pdf (71.0 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz5.pdf (31.7 KB ) - added by 9 years ago.
- EmpDeptTestDump.sql (6.3 KB ) - added by 9 years ago.
-
CS122aLecture20.pdf
(372.5 KB
) - added by 9 years ago.
Lecture 20 slides
- 2017w-cs122a-hw6-solution.pdf (218.8 KB ) - added by 9 years ago.
- 2017w-cs122a-hw4-solution.pdf (483.6 KB ) - added by 9 years ago.
- 2017w-cs122a-hw7.pdf (111.9 KB ) - added by 9 years ago.
- 2017w-cs122a-hw7.2.pdf (111.9 KB ) - added by 9 years ago.
-
CS122aLecture21.pdf
(388.1 KB
) - added by 9 years ago.
Lecture 21 slides
- SQL++Primer.txt (14.0 KB ) - added by 9 years ago.
- HowtorunAsterixDBlocallyonyourmachine.pdf (117.7 KB ) - added by 9 years ago.
- HW8_DataInit.txt (95.1 KB ) - added by 9 years ago.
- HW8_TableInit.txt (1.6 KB ) - added by 9 years ago.
-
2017w-cs122a-hw8.pdf
(294.4 KB
) - added by 9 years ago.
HW #8 questions
- 2017w-cs122a-quiz6-soln.pdf (172.4 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz6.pdf (100.1 KB ) - added by 9 years ago.
-
CS122aLecture22a.pdf
(329.6 KB
) - added by 9 years ago.
Lecture 22 slides, part A
-
CS122aLecture22b.pdf
(824.2 KB
) - added by 9 years ago.
Lecture 22 slides, part B
-
CS122aLecture23.pdf
(2.7 MB
) - added by 9 years ago.
Lecture 23 slides
-
CS122aLecture24.pdf
(385.2 KB
) - added by 9 years ago.
Lecture 24 slides
- 2017w-cs122a-hw7-solution.pdf (231.7 KB ) - added by 9 years ago.
-
CS122aLecture25.pdf
(663.6 KB
) - added by 9 years ago.
Lecture 25 slides
- 2017w-cs122a-quiz8.pdf (66.7 KB ) - added by 9 years ago.
- 2017w-cs122a-quiz8-soln.pdf (74.5 KB ) - added by 9 years ago.
- 2017w-cs122a-hw8-solution.pdf (284.6 KB ) - added by 9 years ago.
- CS122aMidterm2aWinter17-solution.pdf (652.1 KB ) - added by 9 years ago.
- CS122aMidterm2bWinter17-solution.pdf (665.8 KB ) - added by 9 years ago.
- CS122aEndterm-VersionA_W17-solution.pdf (590.2 KB ) - added by 9 years ago.
