Copyright © 2011 by Michael V. Mannino All rights reserved. Database Design, Application Development, and Administration, 5 th Edition Quiz G4 Hyunwoo.

Slides:



Advertisements
Similar presentations
The Relational Database Model
Advertisements

Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Relations The Relational Data Model John Sieg, UMass Lowell.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
Chapter 14 Getting to First Base: Introduction to Database Concepts.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
1 Pertemuan 04 MODEL RELASIONAL Matakuliah: >/ > Tahun: > Versi: >
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Thomas Connolly and Carolyn Begg’s
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 3 The Relational Data Model.
Database Architecture The Relational Database Model.
Database Systems Lecture # 8 11 th Feb,2011. The Relational Model of Data The term relation is basically just a mathematical term for a table. DBMS products.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Chapter 4 The Relational Model Pearson Education © 2014.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Relational Model Session 6 Course Name: Database System Year : 2012.
Chapter 4 The Relational Model.
Relational Data Model, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 The Relational Model Chapter 3.
Chapter 9 Integrity. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.9-2 Topics in this Chapter Predicates and Propositions Internal vs.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
Chapter 3 The Relational Model. 2 Chapter 3 - Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between.
R ELATIONAL D ATA M ODEL Joe Meehean 1. R ELATIONAL D ATA M ODEL Data stored as a set of relations really just tables Tables related to one another through.
SQL Server 7.0 Maintaining Referential Integrity.
Copyright © 2011 by Michael V. Mannino All rights reserved. Database Design, Application Development, and Administration, 5 th Edition Chapter 3 The Relational.
Chapter 2 The Relational Data Model. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Relational model basics Integrity.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
Database Design, Application Development, and Administration, 5 th Edition Copyright © 2011 by Michael V. Mannino All rights reserved. Chapter 6 Developing.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com ICOM 5016 – Introduction.
Database Systems, 9th Edition 1.  In this chapter, students will learn: That the relational database model offers a logical view of data About the relational.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Intro to Relational.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 3 The Relational Database Model.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 3 The Relational Database Model.
Announcements Reading for Monday –4.6 Homework 3 – Due 9/29.
Chapter 2 Introduction to Relational Model. Example of a Relation attributes (or columns) tuples (or rows) Introduction to Relational Model 2.
Chapter 2: Intro to Relational Model. 2.2 Example of a Relation attributes (or columns) tuples (or rows)
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
SE305 Database System Technology 25/09/2014 Quiz-1.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
Lecture 03 Constraints. Example Schema CONSTRAINTS.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Intro to Relational.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Logical Database Design and Relation Data Model Muhammad Nasir
Week 2 Lecture The Relational Database Model Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
Quiz Which of the following is not a mandatory characteristic of a relation? Rows are not ordered (Not required) Each row is a unique There is a.
Chapter 4 The Relational Model Pearson Education © 2009.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 2: Intro to Relational.
Chapter 2 The Relational Data Model. Outline Relational model basics Integrity rules Rules about referenced rows Relational Algebra.
CIS 207 The Relational Database Model
Lecture 2 The Relational Model
Chapter 2: Intro to Relational Model
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
The Relational Model Transparencies
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Database Dr. Roueida Mohammed.
Presentation transcript:

Copyright © 2011 by Michael V. Mannino All rights reserved. Database Design, Application Development, and Administration, 5 th Edition Quiz G4 Hyunwoo Choi Xiaobin Lin

Chapter 3: The Relational Data ModelSlide 2 1. a  Order is not matter  Each row is a unique  Primary key and foreign key

Chapter 3: The Relational Data ModelSlide 3 2. d CREATE TABLE Enrollment ( OfferNoINTEGER, StdNoCHAR(11), EnrGradeDECIMAL(3,2), CONSTRAINT PKEnrollment PRIMARY KEY(OfferNo, StdNo), CONSTRAINT FKOfferNo FOREIGN KEY (OfferNo) REFERENCES Offering ON UPDATE CASCADE, CONSTRAINT FKStdNo FOREIGN KEY (StdNo) REFERENCES Student ON UPDATE CASCADE )

Chapter 3: The Relational Data ModelSlide 4 3.  Which of the following constraints are enforced by a relational data model?  a. A value stored in a column within a row is atomic.  b. Values in a primary key column are unique.  c. Values in a foreign key column are subsets of values in a referenced  column.  d. All of the above.

Chapter 3: The Relational Data ModelSlide 5 4. Mark True or False:  a. The referential integrity rule ensures that people, things and events are uniquely identified in a database. False  b. A primary key can not be a superkey False

Chapter 3: The Relational Data ModelSlide 6 4.  c. A superkey may be designated to be a primary key. True  d. Each operator of relational algebra transforms one or more tables into a new table. True  e. Any attribute, whose values are unique in current relational database state, is a candidate key. False

Chapter 3: The Relational Data ModelSlide 7 5. a, between 0 and M*N Special case: no match in the columns we are joining

Chapter 3: The Relational Data ModelSlide 8 6. d, between 0 and M*N Special case: the rows from N matches all the rows from M

Chapter 3: The Relational Data ModelSlide 9 7. B  Table A does not have valid column ID  Table C, D are not atomic  Table E contains two values in one cell

Chapter 3: The Relational Data ModelSlide Entity integrity  Entity integrity: primary keys  Each table has column(s) with unique values  Ensures entities are traceable So that every rows in a table can be accessed via a unique ID.