1 / 11

COP4710 Database Systems

COP4710 Database Systems. Midterm Review. Fall 2013. Midterm Exam. Time : Friday 10/18/2012 9:05am --- 9:55am Plan your time well Venue : HCB 315, in-class exam Closed book, closed note, but you can bring a piece of cheat sheet (A4, double side) Plan your strategy well

naif
Download Presentation

COP4710 Database Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COP4710Database Systems Midterm Review Fall 2013

  2. Midterm Exam • Time: Friday 10/18/2012 9:05am --- 9:55am • Plan your time well • Venue: HCB 315, in-class exam • Closed book, closed note, but you can bring a piece of cheat sheet (A4, double side) • Plan your strategy well • No calculators or other electronic devices • Laptops, Ipads, smart phones, etc. are prohibited • Any form of cheating on the examination will result in zero grade, and will be reported to the university

  3. Midterm Exam • 15% of your final score • Format • Short-answer questions: testing for basic concepts • Make your answers clear and succinct • Example 1: What is the difference between Cartesian product and natural join? • Example 2: Given a relation R in 3NF, is R in BCNF? Why? • Relational algebra • Address queries using relational algebra • Example: Assignment 2 • SQL • Address queries using SQL • Example: Assignment 2

  4. Midterm Exam • What will be covered? • From “Introduction” to “SQL-basics” • Materials in both the slides and the textbook • How to do well in the midterm exam? • Review the materials carefully and make sure you understand them • Reexamine the homework and make sure you can work out the solutions independently • Discuss with your peer students • Discuss with the TA and me • Relax 

  5. DB: What and Why? • Besides file systems and OS, why bother yet another so-called DB? • Schemas & Data • DDL & DML

  6. ER Model: Nothing but Drawing • Entities • Attributes • Relationships • Key constraints • Participation constraints • Roles • Subclasses • Constraints • Keys, referential integrity • Weak Entity Set: Why & How?

  7. Relational Model: A Step Further • Relation Schema: revisited • Primary key, Foreign key, Unique, NULL, Default • Translating ER to Relations • Entities • Relationships (many-many, many-one, one-one) • Weak entity set • Subclass

  8. Relational Algebra: Let’s Do Math • Operators and operands • Set-based operators • Other basic operators • Derived operators • Cartesian product, theta-join, equi-join, natural join • Relational algebra expressions and expression trees

  9. Relational Design: Design it right • Motivation • Functional dependencies & keys • Armstrong axioms • Closures • Normal forms and decomposition algorithms • BCNF • Lossless or lossy? • 3NF • Functional-dependency preserving or not? • Don’t overdo it

  10. SQL: Let’s Get Hands Dirty • What is SQL? • Why SQL? • DDL & DML in SQL • Select-From-Where • String pattern matching • 3-value logic • Subqueries • Aggregation • Select-From-Where-Groupby-Having

  11. Break a Leg!

More Related