CMPT 354: Database System I

Slides:



Advertisements
Similar presentations
DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)
Advertisements

Copyright © 2004 Pearson Education, Inc.. Chapter 15 Algorithms for Query Processing and Optimization.
Foundations of Relational Implementation n Defining Relational Data n Relational Data Manipulation n Relational Algebra.
SQL (2).
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.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 8 Foundations of Relational Implementation.
CS405G: Introduction to Database Systems Final Review.
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
10/3/2000SIMS 257: Database Management -- Ray Larson Relational Algebra and Calculus University of California, Berkeley School of Information Management.
FEN  Concepts and terminology  Operations (relational algebra)  Integrity constraints The relational model.
Chapter 2 Adapted from Silberschatz, et al. CHECK SLIDE 16.
10/17/2012ISC471/HCI571 Isabelle Bichindaritz 1 Technologies Databases.
Quick review of SQL And conversion to Oracle SQL.
Using Microsoft Access 56:150 Information System Design.
CpSc 3220 The Language of SQL The Language of SQL Chapters
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
Chapter 8 Foundations of Relational Implementation David M. Kroenke Database Processing © 2000 Prentice Hall.
DBSQL 5-1 Copyright © Genetic Computer School 2009 Chapter 5 Structured Query Language.
SQL Structured Query Language. Aims  To introduce the implementation of a Physical design using SQL.  To introduce SQL Data Definition Language (DDL).
Indexes and Views Unit 7.
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.
(SQL - Structured Query Language)
1 SQL – IV Grouping data from tables in SQL –The concept of grouping –GROUP BY clause –HAVING Clause –Determining whether values are unique –Group by using.
1 SQL: Structured Query Language (‘Sequel’) Chapter 5.
Query Processing – Implementing Set Operations and Joins Chap. 19.
CpSc 3220 The Language of SQL Chapter 17 Modifying Data.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
CMPT 354 Database Management Systems Oliver Schulte
Select Complex Queries Database Management Fundamentals LESSON 3.1b.
SQL - Training Rajesh Charles. Agenda (Complete Course) Introduction Testing Methodologies Manual Testing Practical Workshop Automation Testing Practical.
Midterm Review. Main Topics ER model Relational model Relational Database Design (Theory)
SQL Query Getting to the data ……..
Rob Gleasure robgleasure.com
CpSc 3220 The Language of SQL
COP Introduction to Database Structures
CS411 Database Systems 08: Midterm Review Kazuhiro Minami 1.
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
CPSC-608 Database Systems
CIS 207 The Relational Database Model
SQL – Column constraints
David M. Kroenke and David J
Chapter 3 The Relational Database Model
Cse 344 May 7th – Exam Review.
CS405G: Introduction to Database Systems
February 7th – Exam Review
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Cse 344 APRIL 23RD – Indexing.
Chapter 4 Indexes.
CH 4 Indexes.
Introduction to Database Systems CSE 444 Lecture 23: Final Review
Database systems Lecture 3 – SQL + CRUD
Rob Gleasure robgleasure.com
SQL Fundamentals in Three Hours
CH 4 Indexes.
Lecture 3 Finishing SQL
Lecture 30: Final Review Wednesday, December 6, 2000.
Contents Preface I Introduction Lesson Objectives I-2
CSC 453 Database Systems Lecture
CS4433 Database Systems Midterm Review.
Rob Gleasure robgleasure.com
Lecture 30: Final Review Wednesday, December 10, 2003.
Query Optimization.
CPSC-608 Database Systems
Introduction to Database Systems CSE 444 Lecture 23: Final Review
Final Review Friday, December 8, 2006.
Relational Database Operators
Lecture 29: Final Review Wednesday, December 11, 2002.
SQL (Structured Query Language)
Presentation transcript:

CMPT 354: Database System I About Midterm

Midterm Coverage Database History (10%) Relational Model (10%) SQL (45%) Relational Algebra (25%) Query Processing and Indexing (10%)

Database History (10%) You need to understand Example Why Relational Model Why MapReduce Why NoSQL Example F T It is possible to implement SQL using MapReduce

Relational Model (10%) You need to understand Example Basics of Data Models Terminologies Keys Example F T A primary key is a single column that uniquely identifies a record in a relation

SQL (45%) You need to be familiar with Example SQL DDL SQL DML Create/Insert/Alter Constraints SQL DML Selection, Projection Set Operators (UNION, INTERSECT, EXCEPT) Joins (INNER, OUTER) Aggregation, Group By, Having Order By, Distinct, NULL Subqueries Example Similar to A1 and A2

Relational Algebra You need to know Examples How to write an RA query How to optimize an RA query How to convert an SQL query to an RA query Examples All students whose birth is larger than 1995 birth > 1995(Student) Optimize this query σcNum=354 (R ⨝ S) σcNum=354 (R) ⨝ S Convert “SELECT name FROM student” to an RA query πname (Student)

Query Processing and Indexing You need to know Query Processing Steps Which index is better/useful? Examples What does SQL Parser do? Convert the input SQL text to a logical plan Can the following index speed up this SQL query: SELECT * FROM Student WHERE id = ? Index on Student(id) YES NO

Notes Midterm Bring your Student IDs Thursday 2:30 – 3:20 pm AQ3149 Don’t be late Bring your Student IDs Please budget your time so you get to all questions Relax. You are here to learn