CSE 414 Database Systems section 10: Final Review. Joseph Xu 6/6/2013

Similar documents
CSE 344 Final Examination

McGill April 2009 Final Examination Database Systems COMP 421

CSE 444 Final Exam. August 21, Question 1 / 15. Question 2 / 25. Question 3 / 25. Question 4 / 15. Question 5 / 20.

CSE 344 Final Review. August 16 th

CSE 190D Spring 2017 Final Exam

CSE wi Final Exam Sample Solution

CSE 344 Final Examination

CSE 344 Final Examination

MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

CSE 444 Midterm Exam

In these relations, vin is a foreign key in ORDER referring to the CAR relation, and techid is a foreign key

CSE 414 Final Examination

Goals for Today. CS 133: Databases. Final Exam: Logistics. Why Use a DBMS? Brief overview of course. Course evaluations

Bachelor in Information Technology (BIT) O Term-End Examination

CSE 344 Final Examination

L Information Systems for Engineers. Final exam. ETH Zurich, Autumn Semester 2017 Friday

Midterm 2: CS186, Spring 2015

CS145 Midterm Examination

CS/B.Tech/CSE/New/SEM-6/CS-601/2013 DATABASE MANAGEMENENT SYSTEM. Time Allotted : 3 Hours Full Marks : 70

CSE 444 Final Exam 2 nd Midterm

CS 564 Final Exam Fall 2015 Answers

Department of Information Technology B.E/B.Tech : CSE/IT Regulation: 2013 Sub. Code / Sub. Name : CS6302 Database Management Systems

CSE 190D Spring 2017 Final Exam Answers

Introduction to Database Systems. Announcements CSE 444. Review: Closure, Key, Superkey. Decomposition: Schema Design using FD

Homework 5: Miscellanea (due April 26 th, 2013, 9:05am, in class hard-copy please)

Introduction to Data Management CSE 344. Lecture 1: Introduction

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

ADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g.

CSE 444 Midterm Exam

CSE 444, Fall 2010, Midterm Examination 10 November 2010

CSE 530 Midterm Exam

CSE 344 JANUARY 5 TH INTRO TO THE RELATIONAL DATABASE

CompSci 516: Database Systems. Lecture 20. Parallel DBMS. Instructor: Sudeepa Roy

Database Applications (15-415)

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization

Final Review. Zaki Malik November 20, 2008

Computer Science 597A Fall 2008 First Take-home Exam Out: 4:20PM Monday November 10, 2008 Due: 3:00PM SHARP Wednesday, November 12, 2008

Lecture 12. Lecture 12: The IO Model & External Sorting

Announcements. Database Systems CSE 414. Why compute in parallel? Big Data 10/11/2017. Two Kinds of Parallel Data Processing

CSE 562 Final Exam Solutions

CSE 344 Final Exam. March 17, Question 1 / 10. Question 2 / 30. Question 3 / 18. Question 4 / 24. Question 5 / 21.

Fall, 2004 CIS 550. Database and Information Systems Midterm Solutions

Database Management Systems Paper Solution

IMPORTANT: Circle the last two letters of your class account:

Database Management

Introduction to Data Management CSE 344. Lecture 14: Relational Calculus

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

CSE 344 Midterm. Wednesday, February 19, 2014, 14:30-15:20. Question Points Score Total: 100

15CS53: DATABASE MANAGEMENT SYSTEM

Homework 6: FDs, NFs and XML (due April 15 th, 2015, 4:00pm, hard-copy in-class please)

Examination paper for TDT4145 Data Modelling and Database Systems

Introduction to Database S ystems Systems CSE 444 Lecture 1 Introduction CSE Summer

rate name People Consult Topics name rate name People Consult Topics name

Introduction to Database Systems CSE 414. Lecture 16: Query Evaluation

CSE 344 JULY 30 TH DB DESIGN (CH 4)

Draw A Relational Schema And Diagram The Functional Dependencies In The Relation >>>CLICK HERE<<<

Relational Database Design Part I. Announcement. Relational model: review. CPS 116 Introduction to Database Systems

Final Exam CSE232, Spring 97

CSE 444, Winter 2011, Midterm Examination 9 February 2011

CSE 344 Midterm. November 9, 2011, 9:30am - 10:20am. Question Points Score Total: 100

Introduction to Databases Fall-Winter 2009/10. Syllabus

Announcement. Relational Database Design Part I. Keys. Relational model: review. Schema vs. data. More examples of keys

Parallel DBMS. Lecture 20. Reading Material. Instructor: Sudeepa Roy. Reading Material. Parallel vs. Distributed DBMS. Parallel DBMS 11/15/18

CSE 344 Final Examination

CPSC 421 Database Management Systems. Lecture 19: Physical Database Design Concurrency Control and Recovery

Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002

CSE 444 Midterm Exam

Introduction to Data Management CSE 344

Introduction to Data Management CSE 344

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization

Introduction to Data Management CSE 344. Lecture 2: Data Models

Where Are We? Next Few Lectures. Integrity Constraints Motivation. Constraints in E/R Diagrams. Keys in E/R Diagrams

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, normal forms. University of Edinburgh - January 25 th, 2016

Schema And Draw The Dependency Diagram

Rochester Institute of Technology Golisano College of Computing and Information Sciences Department of Information Sciences and Technologies

B.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline

CMSC 461 Final Exam Study Guide

The University of British Columbia

Introduction to Data Management. Lecture #11 (Relational Languages I)

CSE344 Final Exam Winter 2017

DATABASE MANAGEMENT SYSTEMS

Introduction to Database Systems CSE 444. Lecture 1 Introduction

CS 411a/433a/538a Databases II Midterm, Oct. 18, Minutes. Answer all questions on the exam page. No aids; no electronic devices.

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017

Introduction to Database S ystems Systems CSE 444 Lecture 1 Introduction CSE Summer

Administrivia. CS186 Class Wrap-Up. News. News (cont) Top Decision Support DBs. Lessons? (from the survey and this course)

Database Systems Management

Page 1. Goals for Today" What is a Database " Key Concept: Structured Data" CS162 Operating Systems and Systems Programming Lecture 13.

Fundamentals of Databases

Introduction to Databases Fall-Winter 2010/11. Syllabus

Review The Big Picture

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

Exam II Computer Programming 420 Dr. St. John Lehman College City University of New York 20 November 2001

6.830 Lecture PS1 Due Next Time (Tuesday!) Lab 1 Out end of week start early!

CSE 344 MARCH 9 TH TRANSACTIONS

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Database Systems: Fall 2015 Quiz I

COURSE 1. Database Management Systems

GUJARAT TECHNOLOGICAL UNIVERSITY

CSE 344 AUGUST 1 ST ENTITIES

Relational Database Design. Announcements. Database (schema) design. CPS 216 Advanced Database Systems. DB2 accounts have been set up

Transcription:

CSE 414 Database Systems section 10: Final Review Joseph Xu 6/6/2013

Final Exam The final exam is Monday, June 10 from 2:30-4:20 Materials:You may bring your textbook plus one sheet of 8.5x11" paper with any handwritten notes you wish, plus your handwritten note sheet from the midterm. Otherwise closed book, no computers, etc

Final Topics Comprehensive-anything we've done this quarter, although the exam will be biased towards new material since the midterm

Review topics 1. XML 2. E/R Diagrams, Constraints, Conceptual Design 3. Views 4. Transactions 5. Parallel Data Processing

1. XML/Xpath/XQuery XML Basic definitions: tags/elements/attributes/text, well-formed/valid XML document - DTDs Xpath = simple navigation Xquery = the SQL of XML Example: Give the names of all the countries with population at least 10 million. <result> { doc("mondial.xml")//country[population/text() >= 10000000]/name } </result>

2. 1 E/R Diagrams, Constraints Entities, attributes Relationships: Many-many, many-one, one-one. Multi-way relationships Modeling subclasses Constraints in E/R diagrams

2. 1 E/R Diagrams, Constraintsm Example(HW6, Q1): Design an E/R diagram for geography that contains the following kinds of objects together with the listed attributes: countries: name, area, population, gdp("gross domestic product") cities: name, population, longitude, latitude rivers: name, length seas: name, max depths Model the following relationships between the geographical objects: each city belongs to exactly one country each river crosses one or several countries each river ends in a river or in a sea

2. 1 E/R Diagrams, Constraintsm Example(HW6, Q1) solution:

2. 2Conceptual Design Normal forms and functional dependencies: Anomalies(redundancy, update/deletion anomalies), functional dependencies, attribute closures, BCNF decomposition

2. 2Conceptual Design Example: Consider the following relational schema and set of functional dependencies. R(A,B,C,D,E,F,G) with functional dependencies: A -->D D --> C F --> EG DC --> BF Decompose R into BCNF. Show your work for partial credit. Your answer should consist of a list of table names and attributes and an indication of the keys in each table (underlined attributes).

2. 2Conceptual Design R(A,B,C,D,E,F,G) A -->D D --> C F --> EG DC --> BF

3. Views Definition: A view is derived data that keeps track of changes in the original data Virtual (Computed only on-demand slow at runtime) v.s. materialized views (Pre-computed offline fast at runtime) Application of virtual views: Increased physical data independence (vertical/horizontal data partitioning) Logical data indepence Security

4. Transactions

4. Transactions Example 1: Consider the following transaction schedules. For each schedule, indicate if it is conflict-serializableor not. r1(a), w1(a), r2(b), w2(b), r3(c), w3(c), r2(c), w2(c), r1(b), w1(b), c1, c2, c3

4. Transactions Example 2: Consider the following transaction schedules. For each schedule, indicate if it is conflict-serializableor not. r1(a),r2(b),r3(c),w1(c),w2(a),w3(b),c1,c2,c3

4. Transactions Example 3: Three transactions run concurrently on this database, issuing commands at the following time stamps:

4. Transactions Example 3: Three transactions run concurrently on this database, issuing commands at the following time stamps:

4. Transactions Example 3: Three transactions run concurrently on this database, issuing commands at the following time stamps: Hint:

4. Transactions Solution for SQL Lite

4. Transactions Solution for SQL server

5. Parallel Data Processing Parallel databases Speedup/scaleup Shared memory, shared disk, shared nothing How to implement simple algorithms: group-by, join MapReduce Pig system and Pig Latin language

5. Parallel Data Processing Example Consider a relation R(a,b)that is horizontally partitioned across N = 3 machines as shown in the diagram below. Each machine locally stores approximately 1/N of the tuples in R. The tuples are randomly organized across machines (i.e., R is block partitioned across machines). Show a relational algebra plan for this query and how it will be executed across the N = 3 machines. Pick an efficient plan that leverages the parallelism as much as possible. Include operators that need to re-shuffle data and add a note explaining how these operators will re-shuffle that data. SELECT a, max(b) as topb FROM R WHERE a > 0 GROUP BY a

5. Parallel Data Processing Solution: SELECT a, max(b) as topb FROM R WHERE a > 0 GROUP BY a

Suggestions Goover lecture notes Check the solutions of the past homework Tryexample problems from the past final exams