CSEN 5314 Quiz 3.

Slides:



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

Relational data integrity
Complex Integrity Constraints in SQL. Constraints over a Single Table Table Constraint: Create TABLE Sailors (sid INTEGER, sname CHAR(10), rating INTEGER,
IS698: Database Management Min Song IS NJIT. The Relational Data Model.
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
CSEN 5314 Quiz 4.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
CSEN 5314 Quiz What type of join is needed when you wish to include rows that do not have matching values? A. Equi-joinB. Natural join C. Outer.
Relations The Relational Data Model John Sieg, UMass Lowell.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Introduction to Relational Database ISYS 464. Introduction to Relational Model Data is logically structured within relations. Each relation is a table.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
Methodology Logical Database Design for the Relational Model
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
Murali Mani SQL DDL and Oracle utilities. Murali Mani Datatypes in SQL INT (or) INTEGER FLOAT (or) REAL DECIMAL (n, m) CHAR (n) VARCHAR (n) DATE, TIME.
SQL DDL constraints Restrictions on the columns and tables 1SQL DDL Constraints.
Chapter 2. The Relational Model (cont.) IST2101. Review: Functional Dependency A relationship between attributes: some attribute(s) determine the value.
INTEGRITY Enforcing integrity in Oracle. Oracle Tables mrobbert owner granted access.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Transforming Data Models into Database Designs
Normalization Quiz Tao Li Grant Horntvedt. 1. Which of the following statements is true: a. Normal forms can be derived by inspecting the data in various.
Database Architecture The Relational Database Model.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
1 Relational model concepts Key constraints Referential integrity constraint Steen Jensen, autumn 2013.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Chapters 17 & 18 Physical Database Design Methodology.
Database Management System Lecture 6 The Relational Database Model – Keys, Integrity Rules.
Relational DB Components
SQL Server 7.0 Maintaining Referential Integrity.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Natural vs. Generated Keys. Definitions Natural key—a key that occurs in the data, that uniquely identifies rows. AKA candidate key. Generated key—a key.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
CSEN 5314 Quiz Inheritance is which of the following? A. When a supertype entity inherits values of the subtype attribute B. When a subtype entity.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
© 2002 by Prentice Hall 1 Database Processing with Microsoft Access David M. Kroenke Database Concepts 1e Appendix A.
Creating Tables and Inserting Records -- Not easy to edit! -- check constraints! Create table test1 ( C1 char(5) primary key, C2 Varchar2(15) not null.
Database Processing with Microsoft Access Appendix DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
SE305 Database System Technology 23/10/2014 Quiz-2.
1 Chapter 17 Methodology - Local Logical Database Design.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
1 SQL - II Data Constraints –Applying data constraints Types of data constraints –I/O constraints The PRIMARY KEY constraints The FOREIGN KEY constraints.
Chapter 9 Constraints. Chapter Objectives  Explain the purpose of constraints in a table  Distinguish among PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK,
Oracle 11g: SQL Chapter 4 Constraints.
CREATE TABLE CREATE TABLE statement is used for creating relations Each column is described with three parts: column name, data type, and optional constraints.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
Copyright © 2011 by Michael V. Mannino All rights reserved. Database Design, Application Development, and Administration, 5 th Edition Quiz G4 Hyunwoo.
Constraints Lesson 8. Skills Matrix Constraints Domain Integrity: A domain refers to a column in a table. Domain integrity includes data types, rules,
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,
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
SE305 Database System Technology 25/09/2014 Quiz-1.
Chapter 3: Relational Databases
Lecture 03 Constraints. Example Schema CONSTRAINTS.
SQL constrains and keys. SORTED RESULTS Sort the results by a specified criterion SELECT columns FROM tables WHERE predicates ORDER BY column ASC/DESC;
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke’s Chapter Six: Transforming Data Models into Database.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.
Databases Introduction - concepts. Concepts of Relational Databases.
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.
1 CS122A: Introduction to Data Management Lecture #4 (E-R  Relational Translation) Instructor: Chen Li.
Database Constraints ICT 011. Database Constraints Database constraints are restrictions on the contents of the database or on database operations Database.
Understanding Data Storage
COP 4540 Database Management
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.
Lecture # 13 (After 1st Exam)
COS 346 Day 8.
Referential Integrity
Referential Integrity
Presentation transcript:

CSEN 5314 Quiz 3

1. In the relational model, relationships between relations or tables are created by using: A. composite keys. B. determinants. C. candidate keys. D. foreign keys. 2. What is an SQL virtual table that is constructed from other tables? A. Just another table B. A view C. A relation D. Query results 3. What SQL structure is used to limit column values of a table? A. The LIMIT constraint B. The CHECK constraint C. The VALUE constraint D. None of the above is correct. True/False? 4. The Delete Operation can violate only referential integrity constraints 5. Entity integrity constraint means 'No primary key value can be NULL'

1. In the relational model, relationships between relations or tables are created by using: A. composite keys. B. determinants. C. candidate keys. D. foreign keys. 2. What is an SQL virtual table that is constructed from other tables? A. Just another table B. A view C. A relation D. Query results 3. What SQL structure is used to limit column values of a table? A. The LIMIT constraint B. The CHECK constraint C. The VALUE constraint D. None of the above is correct. True/False? 4. The Delete Operation can violate only referential integrity constraints. True 5. Entity integrity constraint means 'No primary key value can be NULL‘ True