1 Final Review Tuesday, March 6, 2007. 2 The Final Date: Tuesday, March 13, 2007 Time: 6:30 - 8:30 Room: EE 037 You must come to campus Open book exam.

Slides:



Advertisements
Similar presentations
CS 540 Database Management Systems
Advertisements

Review for Final Test Indra Budi
CMPT 454, Simon Fraser University, Fall 2009, Martin Ester 1 Database Systems II Introduction.
Final Exam Coverage. E/R Converting E/R to Relations. SQL. –Joins and outerjoins –Subqueries –Aggregations –Views –Inserts, updates, deletes –Ordering.
Midterm Review Lecture 14b. 14 Lectures So Far 1.Introduction 2.The Relational Model 3.Disks and Files 4.Relational Algebra 5.File Org, Indexes 6.Relational.
CPSC-608 Database Systems Fall 2009 Instructor: Jianer Chen Office: HRBB 309B Phone: Notes #2.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
1 Review #1 l Intro stuff –What is a database, 4 parts, 3 users, etc. l Architecture –Data independence –Three levels, two mappings –Jobs of the DBA.
All of ERD (Ch 3) plus: – Class/subclass relationships – Inheritance – Specialization – Generalization – Category.
Summary. Chapter 9 – Triggers Integrity constraints Enforcing IC with different techniques –Keys –Foreign keys –Attribute-based constraints –Schema-based.
CS405G: Introduction to Database Systems Final Review.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #12.
...Looking back Why use a DBMS? How to design a database? How to query a database? How does a DBMS work?
System Catalogue v Stores data that describes each database v meta-data: – conceptual, logical, physical schema – mapping between schemata – info for query.
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes 1.
1 Relational Operators. 2 Outline Logical/physical operators Cost parameters and sorting One-pass algorithms Nested-loop joins Two-pass algorithms.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
4/20/2017.
Slide Dr. Almetwally Mohamad Mostafa spx is335.
Systems analysis and design, 6th edition Dennis, wixom, and roth
Database Technical Session By: Prof. Adarsh Patel.
Midterm Exam Chapters 1,2,3,5, 6,7 (closed book) March 11, 2014.
CS505: Final Exam Review Jinze Liu. Major Topics Before Mid-Term – Security and Access Control – Indexing After Mid-Term – Transaction Management Locking,
1 CS 3630 Database Design and Implementation. 2 Sets Foundation of relational database. Basic Operations Power set Mapping.
Object Persistence (Data Base) Design Chapter 13.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
Computer Science and Engineering Computer System Security CSE 5339/7339 Session 21 November 2, 2004.
CS4432: Database Systems II Query Processing- Part 3 1.
CS 257 Chapter – 15.9 Summary of Query Execution Database Systems: The Complete Book Krishna Vellanki 124.
CS 405G: Introduction to Database Systems
CS4432: Database Systems II Query Processing- Part 2.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
1 CSE444: REVIEW. 2 CSE444 in one slide v Logical : E/R diagram  normalized relations v Physical : files, buffering, and indexes v Logical : Relational.
Lecture 17: Query Execution Tuesday, February 28, 2001.
CS 440 Database Management Systems Lecture 5: Query Processing 1.
CS 540 Database Management Systems
CSE 303 Course Outline (Part 2) Text Book: Database System Concepts 6 th Edition by Abraham Silberschatz, Henry F. Korth and S. Sudarshan.
CS411 Database Systems Kazuhiro Minami 16: Final Review Session.
Diskusi-08 Jelaskan dan berikan contoh penggunaan theta join, equijoin, natural join, outer join, dan semijoin The slides for this text are organized into.
CS422 Principles of Database Systems Course Overview
Latihan Answer the following questions using the relational schema from the Exercises at the end of Chapter 3: Create the Hotel table using the integrity.
Prepared by : Ankit Patel (226)
CPSC-310 Database Systems
COSC 6340 Projects & Homeworks Spring 2002
Cse 344 May 7th – Exam Review.
From ER to Relational Model
CS405G: Introduction to Database Systems
February 7th – Exam Review
מערכות מסדי נתונים 1. הקדמה.
Faloutsos/Pavlo C. Faloutsos – A. Pavlo Lecture#27: Final Review
Introduction to Database Systems CSE 444 Lecture 23: Final Review
Lecture 15: Midterm Review Data Storage
Data Model.
Final Review Topics Chapter 4 SQL,
Final Review Datalog (Ch 10) Rules and queries
Cse 344 June 1st – Final Review.
Database management concepts
2/18/2019.
Lecture 30: Final Review Wednesday, December 6, 2000.
Wednesday, May 29, 2002 XML Storage Final Review
Review for Final Exam CSE462 B.Ramamurthy.
CSE594: REVIEW.
Database Systems (資料庫系統)
Lecture 24: Final Review Friday, March 10, 2006.
Lecture 30: Final Review Wednesday, December 10, 2003.
Query Optimization.
Introduction to Database Systems CSE 444 Lecture 23: Final Review
Final Review Friday, December 8, 2006.
Review #1 Intro stuff What is a database, 4 parts, 3 users, etc.
Lecture 29: Final Review Wednesday, December 11, 2002.
Presentation transcript:

1 Final Review Tuesday, March 6, 2007

2 The Final Date: Tuesday, March 13, 2007 Time: 6:30 - 8:30 Room: EE 037 You must come to campus Open book exam :) No computers :(

3 Problem 1: Queries SQL XPath/XQuery

4 SQL Select-from-where Subqueries Aggregation Nulls Outer joins Database modifications (insert/delete) A tricky query: for each product, find total sales in November

5 XPath/XQuery Xpath: simple navigation /, //, *, […] Xquery: nest/unnest/renest/aggregates A tricky query: eliminate duplicates in a collection of elements

6 Problem 2: Data Modeling E/R diagrams Functional dependencies and normal forms XML and semistructured data

7 E/R Diagrams Relationships Inheritance Weak entity sets Mapping to relations SQL DDL: –Creating tables –Constraints A tricky question: map a complex inheritance graph to relations

8 Functional Dependencies Basic definitions Computing the closure X+ Computing the keys Checking if a relation is in BCNF Decomposing into BCNF Tricky questions: find FD’s in a view; give counterexamples to FDs

9 XML XML syntax DTD From relations to XML From XML to relations A tricky question: N/A

10 Problem 3: Transactions Recovery Concurrency control

11 Recovery Undo log Redo log Undo/redo log A tricky question: place a missing END-CHECKPOINT

12 Concurrency control Serializability and conflict serializability Locks Timestamps Validation A tricky question: tell what happens in a schedule

13 Problem 4: Query Processing Engine Storage of database elements Indexes Logical algebra Physical algebra Optimizations Size/cost estimation

14 Storage of Database Elements Storing records in blocks Storing attributes in records A tricky question: N/A

15 Index Structures Types of indexes: –Dense/sparse index –Primary/secondary index B + -trees Hash tables: –Extensible hash tables A tricky question: perform insert/delete in a B+ tree or hash table

16 Logical Algebra Operators –Some interesting ones: natural joins, semijoins Converting SQL into the algebra A tricky question: SQL with NOT EXISTS to RA

17 Physical Operators One-pass algorithms Nested-loop joins Two-pass algorithms based on sorting Two-pass algorithms based on hash tables Index-based algorithms Their cost A tricky question: N/A

18 Optimizations Algebraic laws The dynamic programming algorithm Pipelining A tricky question: discuss alternative plans for a query

19 Size/Cost Estimation Simple size estimation formulas for selection and join Histograms –Eqdepth, eqwidth A tricky question: N/A

20 General Advice Some problems will require thinking –Use judgment Problem difficulty may be uneven: –do the easy ones first

21 Grading –Homework 35% –Project: 35% –Final: 30%

22 COMMIT (The End)