INFS 614 -- Section 03: Database Management

Spring 2008 Course Web Page

Thursdays 7:20 - 10pm / Robinson A 247

Professor Ken Smith (kps@mitre.org)




General Information




Week 1 Notes:




Week 2 Notes:




Week 3 Notes:




Week 4 Notes:




Week 5 Notes:




Week 6: Midterm Review:




Week 9 Notes:



Week 10 Notes:

  • Homework 4. Please write out answers to Exercise 5.2, problems 3 through 10 in your text (8 SQL queries). On 10, note that "print" simply means to return certain fields in your SELECT clause. This assignment is due on April 10th.
  • SQL Lecture #2 This week's lecture covers SQL from a TRC perspective. Here are the slides. Read Section 5.4 this week and 5.5 next week. These are well-written sections in the text, and complement the lecture materials well. Please read and study both.




Week 11 Notes:

  • Homework 1c ER diagram. Here is an ER diagram for Homework 1c. I omitted lines to attributes for simplicity; attributes belong to the entity set/relationship set they are close to in the diagram. Please use this diagram for the rest of your assignment!

    Note that it differs a bit from what we decided on in class. First, I added a "black arrow" relationship between "VisitRecord" and "Doctor" because that will result in Dr-ID being apart of the table for visit record (as required). Otherwise to recover information about the Dr. of a VisitRecord we'd have to do a bunch of joins! (Can you see how?). I also invented "MRI-ID" as a key for MRI. This was not specified in the textual descripiton (Not uncommon in the real world!), but one is still needed.

    For those of you doing the extra credit, the above paragraph gives you some ideas about the ambiguities. I would also suggest looking into whether we could use an aggregation (as discussed in class) in which "VisitRecord" is related to the entire "Visit" relationship.

  • Due Date Clarification! Please check the updated syllabus for all class and homework due dates for the rest of the semester. HW 4 is due on Thursday April 10th (as in the syllabus)! I mistyped it here earlier and apologize for the confusion. (If it were due on April 17th (with 1c) you would not have enough time to get your graded homeworks back before the final.)
  • SQL Lecture #3 This week's lecture covers the rest of SQL, including aggregation, nulls, ordering, and other topics. Here are the slides. Please read Sections 5.5 and 5.6.


Week 12 Notes:

  • This coming week: Functional Dependencies, Homework, and Internships This week's lecture covers chapter 19.1-19.3 in your text. Here are the slides. Your HW4 is due, and HW5 (the last one!) will be assigned. I will also spend about 10-15 minutes of class time discussing internships, as several of you are going to be involved in these.
  • HW 1c Queries The rest of the HW 1c assignment is to enter data and write a set of queries. The details described in this document. Note, as discussed in class, you may modify your database to combine "date" and "time" into a single Oracle timestamp field.
  • Class on April 24th On April 24th (week 14) we will have three guest speakers, presenting topics very relevant to our class. First off, Dr. Michael Morse will spend an hour on indexing, with a special emphasis on spatial indexing and spatial queries (e.g., Find all persons living within 10 miles of GMU). Then, Dr. Douglas Burdick will spend an hour discussing OLAP and the data cube operator, a powerful way to explore aggregates (e.g., sums, averages). Our third lecture will be given by class member Paul Lockaby who tunes large databases for performance as his "day job". He will give examples and demonstrations of some relevant tools. All three speakers work actively in the areas they are presenting on, and all three topics have tremendous practical relevance. I am looking forward to each of these presentations!


Week 13 Notes:

  • Homework 1c. Due in class on 4/17. Please turn in your ER design, relational tables, and script. Please also email your script to the GTA.
  • Homework 5 (the last one!). Please do Exercises: 19.1 problems 1, 2, 5, and 6; 19.2 problems 1 and 3; 19.5 part b only; 19.6 (all); and 19.7 parts a and c only. This is due in class on 4/24.
  • Internships/Book. Last night, after the lecture, we discussed internships and careers. I mentioned a book What Color Is Your Parachute? by Richard Nelson Bolles, which I have found very useful. Its been published annually since the 70's! Here is an Amazon link for it.
  • Normalization Lecture. Please read Chapter 19.4-7 for this coming week. Here are the slides.
  • Extra Credit on Week 14. On 4/24 we will be having 3 guest lectures (about an hour each). For extra credit, please write 1-2 pages answering the following two questions: 1) Which lecture did you like best and why? 2) How does the material in that lecture relate to, or expand on, what you have learned so far in class? I will not award actual points, but will use your writeup if you are on a borderline between two grades.


Week 14 Notes:

  • Updated normalization notes. Here is an updated version of the slides on normalization. These clarify the issues raise during lecture. Please study these; we will go over the issues during the final review session. Also read carefully sections 19.5.2 and 19.6.1 in your text.
  • SQL homework solutions (to help you study for the final). Here are the solutions for HW4 (SQL).


Week 15, Final Review:

  • Normalization Homework Solutions. Here are the solutions for HW5 (Normalization).
  • Final Material. We will go over your specific questions in class this week. In general, the final is comprehensive, covering material presented both in lecture and in the text. However, it will emphasize the major new material since the midterm: nested and aggregate SQL, and normalization into BCNF. As on the midterm, be prepared to turn a written description into an ER diagram, and to manually execute a query on a given relation instance, and produce the result. The final exam will primarily be fill-in-the-blank and multiple choice (so I can grade it quickly!).


Your Grades

  • All course grades posted. All grades have now been posted to Patriot Web. Best wishes in the future! Professor Smith.