Lecture 29: Final Review Wednesday, December 11, 2002.

Slides:



Advertisements
Similar presentations
Chapter 15 Algorithms for Query Processing and Optimization Copyright © 2004 Pearson Education, Inc.
Advertisements

CS 540 Database Management Systems
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.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Recap of Mar 4: File Organization Major concepts: –Files are made up of records; records are made up of fields –Disk blocks are smaller than files and.
Summary. Chapter 9 – Triggers Integrity constraints Enforcing IC with different techniques –Keys –Foreign keys –Attribute-based constraints –Schema-based.
...Looking back Why use a DBMS? How to design a database? How to query a database? How does a DBMS work?
1 Revision and Exam Briefing M. Akhtar Ali School of CEIS.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Exam and Lecture Overview.
DatabaseCSIE NUK1 Fundamentals of Database Systems Wen-Yang Lin Dept. of Computer Science and Information Engineering National University of Kaohsiung.
1 Final Review Tuesday, March 6, The Final Date: Tuesday, March 13, 2007 Time: 6:30 - 8:30 Room: EE 037 You must come to campus Open book exam.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
Query Processing – Implementing Set Operations and Joins Chap. 19.
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.
Fan Qi Database Lab 1, com1 #01-08 CS3223 Tutorial 5.
Midterm Review. Main Topics ER model Relational model Relational Database Design (Theory)
CHAPTER 19 Query Optimization. CHAPTER 19 Query Optimization.
CS 540 Database Management Systems
CS 440 Database Management Systems
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.
Lecture 26: Query Optimizations and Cost Estimation
Prepared by : Ankit Patel (226)
CPSC-310 Database Systems
CS222P: Principles of Data Management Lecture #15 Query Optimization (System-R) Instructor: Chen Li.
Tugas-05 a. Sebutkan primary key masing-masing tabel
Evaluation of Relational Operations
COSC 6340 Projects & Homeworks Spring 2002
Introduction to Database Systems
Examples of Physical Query Plan Alternatives
Cse 344 May 7th – Exam Review.
From ER to Relational Model
CS405G: Introduction to Database Systems
February 7th – Exam Review
Physical Database Design
External Sorting The slides for this text are organized into chapters. This lecture covers Chapter 11. Chapter 1: Introduction to Database Systems Chapter.
Faloutsos/Pavlo C. Faloutsos – A. Pavlo Lecture#27: Final Review
Database Applications (15-415) DBMS Internals- Part IX Lecture 21, April 1, 2018 Mohammad Hammoud.
Introduction to Database Systems CSE 444 Lecture 23: Final Review
Lecture 15: Midterm Review Data Storage
Query Optimization and Perspectives
Final Review Topics Chapter 4 SQL,
Final Review Datalog (Ch 10) Rules and queries
Cse 344 June 1st – Final Review.
CMPT 354: Database System I
Lecture 27: Optimizations
Lecture 30: Final Review Wednesday, December 6, 2000.
Contents Preface I Introduction Lesson Objectives I-2
CPS216: Advanced Database Systems
CS4433 Database Systems Midterm Review.
Wednesday, May 29, 2002 XML Storage Final Review
Lecture 23: Query Execution
Evaluation of Relational Operations: Other Techniques
Review for Final Exam CSE462 B.Ramamurthy.
CSE594: REVIEW.
Lecture 24: Final Review Friday, March 10, 2006.
Lecture 30: Final Review Wednesday, December 10, 2003.
Query Optimization.
Monday, 5/13/2002 Hash table indexes, query optimization
Wednesday, 5/8/2002 Hash table indexes, physical operators
Introduction to Database Systems CSE 444 Lecture 23: Final Review
CS222: Principles of Data Management Lecture #15 Query Optimization (System-R) Instructor: Chen Li.
Final Review Friday, December 8, 2006.
Introduction to Database Systems CSE 444
Lecture 26: Wednesday, December 4, 2002.
Lecture 27 Wednesday, December 5, 2001.
Review #1 Intro stuff What is a database, 4 parts, 3 users, etc.
Lecture 20: Query Execution
Lecture 20: Representing Data Elements
Presentation transcript:

Lecture 29: Final Review Wednesday, December 11, 2002

Outline From the homework: Mr. Frumble’s blues An exercise: counting the number of joins Redo logging – 17.3 Redo/undo logging – 17.4 Course evaluation forms

Counting the Number of Join Orders (Exercise) R0(A0,A1) ⋈ R1(A1,A2) ⋈ . . . ⋈ Rn(An,An+1) The number of left linear join trees is: n! The number of left linear join trees without cartesian products is: 2n (why ?) The number of bushy join trees is: n!/(n+1)*C2nn = (2n)!/((n+1)*(n!)) The number of bushy join trees without cartesian product is: 2n-1/(n+1)*C2nn (why ?)

Number of Subplans Inspected by Dynamic Programming R0(A0,A1) ⋈ R1(A1,A2) ⋈ . . . ⋈ Rn(An,An+1) The number of left linear subplans inspected is: k=1,nCnk*k = n2n-1 The number of left linear subplans without cartesian products inspected is: k=1,n(n-k+1)*2 = n(n+1) why ? The number of bushy join subplans inspected is: k=1,nCnk*2k = 3k why ? The number of bushy join subplans without cartesian product: k=1,n(n-k+1)*(k-1) = n*n*(n-1)/2 – n(n-1)(2n-1)/6 = n(n-1)(n+1)/6

The Final Date: Friday, December 13 Time: 8:30 – 10:20 Place: this room Open book exam !

What to Prepare for the Final Everything ! Data modeling Relational model XML Relational algebra SQL Storage Indexes Physical operators Optimization Recovery

Data Modeling E/R diagrams, ODL Keys Relationships Inheritance Mapping to relations

Relational Algebra Relations Keys Functional dependencies Decomposition Normal forms

XML XML syntax DTD From relations to XML From XML to relations

SQL Select-from-where Subqueries Aggregation Nulls Outer joins

SQL (continued) Database modification Defining and modifying relation schemas Constraints On attribute values Keys Foreign keys Embedded SQL

Data Storage The I/O model of computation Representing data elements: Grouping records into blocks Variable length records Overflow blocks

Index Structures Terminology: B+-trees Hash tables Dense/sparse index Primary/secondary index B+-trees Hash tables

Physical Operators One-pass algorithms Nested-loop joins Two-pass algorithms based on sorting Two-pass algorithms based on hash tables Index-based algorithms

Optimizations Extended logical operators Algebraic identities Heuristic based optimization: Cost based optimization: Size estimation Dynamic programming for join order

Recovery Undo logging Redo logging Undo/redo logging

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

Grading –Homework 25% –Project: 25% –Midterm: 20% –Final: 25% best 4 out of 5 –Project: 25% –Midterm: 20% –Final: 25% –Intangibles: 5%

The End