Review for Exam 1 CS474 (Norton)

Similar documents
THE RELATIONAL DATABASE MODEL

Basant Group of Institution

Mahathma Gandhi University

Relational Model History. COSC 416 NoSQL Databases. Relational Model (Review) Relation Example. Relational Model Definitions. Relational Integrity

Chapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations

Data about data is database Select correct option: True False Partially True None of the Above

Entity Attribute STUDENT TABLE tuples single domain

CS317 File and Database Systems

8) A top-to-bottom relationship among the items in a database is established by a

Relational Model: History

Chapter 4. The Relational Model

Introduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure

Chapter 3: The Relational Database Model

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

Review -Chapter 4. Review -Chapter 5

Chapter 1 SQL and Data

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10

D.K.M COLLEGE FOR WOMEN(AUTONOMOUS),VELLORE DATABASE MANAGEMENT SYSTEM QUESTION BANK

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

CPS510 Database System Design Primitive SYSTEM STRUCTURE

Index. Bitmap Heap Scan, 156 Bitmap Index Scan, 156. Rahul Batra 2018 R. Batra, SQL Primer,

Relational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Relational Database Model. III. Introduction to the Relational Database Model. Relational Database Model. Relational Terminology.

Relational Model History. COSC 304 Introduction to Database Systems. Relational Model and Algebra. Relational Model Definitions.

Course Outline Faculty of Computing and Information Technology

Database Management System 9

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

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database?

II B.Sc(IT) [ BATCH] IV SEMESTER CORE: RELATIONAL DATABASE MANAGEMENT SYSTEM - 412A Multiple Choice Questions.

CPS 510 Data Base I. There are 3 forms of database descriptions the ANSI/SPARK, 1975 and so on

- Database: Shared collection of logically related data and a description of it, designed to meet the information needs of an organization.

Relational Database Systems Part 01. Karine Reis Ferreira

Introduction to Databases

DATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems

normalization are being violated o Apply the rule of Third Normal Form to resolve a violation in the model

Assignment Session : July-March

The Entity Relationship Model

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

; Spring 2008 Prof. Sang-goo Lee (14:30pm: Mon & Wed: Room ) ADVANCED DATABASES

Chapter 1 Database System Concepts and Architecture. Nguyen Thi Ai Thao

Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science

Relational Data Model ( 관계형데이터모델 )

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

Lecture 03. Spring 2018 Borough of Manhattan Community College

Chapter 6 The Relational Algebra and Relational Calculus

RELATIONAL DATA MODEL

Information Management (IM)

CHAPTER 2: DATA MODELS

Database System Concepts and Architecture. Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course:

Data, Databases, and DBMSs

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

Database Technology Introduction. Heiko Paulheim

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

Relational Model (cont d) & Entity Relational Model. Lecture 2

Data Base Concepts. Course Guide 2

Solved MCQ on fundamental of DBMS. Set-1

Database Applications (15-415)

Lecture 03. Fall 2017 Borough of Manhattan Community College

CHAPTER 2: DATA MODELS

Comp 5311 Database Management Systems. 2. Relational Model and Algebra

Full file at

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Databases 1. Daniel POP

CS 2451 Database Systems: Relational Data Model

Chapter 1: Introduction

Why Study the Relational Model? The Relational Model. Relational Database: Definitions. The SQL Query Language. Relational Query Languages

2. An implementation-ready data model needn't necessarily contain enforceable rules to guarantee the integrity of the data.

Top 88 Question Asked in Part I of MIS 150 EXAM #1 (Chapter 1-4, Appendix C) Exams questions gathered from old tests dating back to Fall 2000

Lecture2: Database Environment

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

CMSC 461 Final Exam Study Guide

CMP-3440 Database Systems

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

DATABASE MANAGEMENT SYSTEM

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

Lecture 2 SQL. Announcements. Recap: Lecture 1. Today s topic. Semi-structured Data and XML. XML: an overview 8/30/17. Instructor: Sudeepa Roy

Database Applications (15-415)

CS317 File and Database Systems

File Processing Approaches

The Relational Model

Database System Concepts and Architecture

A l Ain University Of Science and Technology

Relational Model and Relational Algebra. Rose-Hulman Institute of Technology Curt Clifton

Unit 2. Unit 3. Unit 4

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester

DATABASE DESIGN I - 1DL300

Relational Databases

پوهنتون کابل پوهنځی كمپيوترساینس

Index *EXTIND option, ADDPFTRG command. See CL command Alias CREATE ALIAS for, 62, 64 for a column, 22, for a table, 15-17, 62, 66-67,

Administrivia. The Relational Model. Review. Review. Review. Some useful terms

M S Ramaiah Institute of Technology Department of Computer Science And Engineering

Overview of Data Management

Chapter 2 Introduction to Relational Models

COSC344 Database Theory and Applications. σ a= c (P) Lecture 3 The Relational Data. Model. π A, COSC344 Lecture 3 1

Data Modeling Using the Entity- Relationship Model Design & Analysis of Database Systems

CS 377 Database Systems

Transcription:

Review for Exam 1 CS474 (Norton) What is a Database? Properties of a database Stores data to derive information Data in a database is, in general: Integrated Shared Persistent Uses of Databases The Integrated Database Environment Database Database Management System (DBMS) Users Applications Characteristics of a Database Management System (DBMS) Contains both data and a complete description of the database Multipurpose Data independence Supports multiple perspectives of the data. Functions of a Database Management System (DBMS) 1. Control data redundancy 2. Avoid data inconsistencies 3. Enforce security constraints 4. Enforce integrity constraints (also called business rules) 5. Allow for different ways of interaction with the user 6. Enforce the enterprise standards as defined by the DBA. People in Integrated Database Environment End users Applications programmers Data administrator (DA) Database Administrator (DBA) Classifications of Database Management Systems Data Model Heirarchical Network Relational Object-Oriented Number of Users Single-user or standalone (only one user at a time) Multi-user (one or more users)

Number of sites over which the database is distributed Centralized Distributed Homogeneous (same DBMS at every site). Heterogeneous (different DBMS at every site). Client/Server Parts of a Database & Database Tools Important Terms & Concepts (at least to begin with) Data Models What do they do? Why are they useful? Types (in general): High-Level Data Model Low-Level Data Model Implementation (Representational) Data Model Schemas and Instances Schema the description of the entire database. Instance the data stored in a database at a particular point in time The Three-Schema Architecture provides a framework for describing database concepts Conceptual Schema the user's perception of data. Internal Level the closest the physical storage. External Level Includes a number of external schemas (user views) of the data. Data Independence Types: Logical Data Independence Physical Data Independence Tables and Views and Indexes Data are stored in Tables/Relations (rows/tuples, columns/attributes) A View is a Virtual Table that results from a SQL query. Each table has one or more Indexes. Data Languages Data Definition Language (DDL) Data Manipulation Language (DML) Structured Query Language (SQL) Types of Data Models (specific) Entity-Relationship Model Relational Model Object-oriented Model Object-relational model Semi-structured Model 2

Parts of a DBMS & Tools for DB Design & Implementation Data, Information, & Knowledge Philosophical View Aristotle Kant Peirce Systems Theoretical & Education Ackoff Bloom Computer Science Database Knowledge Representation (AI) Database History 1. Before computers... 2. Proprietary File Managers (1950's - early 1970s) 3. Navigational DBMSs (1960s - today) 3 Major Forms A. Network (Bachman) B. Hierarchical (IBM) C. Object Oriented & XML DBMSs Advantages & Disadvantages 4. Relational DBMSs (1970s today) - Codd Early Systems Mathematical Basis of Difference from Navigational 5. Newcomers (old wine in new bottles: 1990s - today) Object-Oriented & Object-Relational DBMSs XML DBMSs The E-R Model (Chen) Purpose of Elements of (Chen, Crows Feet, and UML Models) How each element is represented... Entities Types & Instances & Sets Extension vs. Intension Properties of Attributes Properties of Domains of Required/Optional Null values 3

Keys Superkey Candidate Key Primary Key Alternate Key Secondary Key Composite Key Foreign Key Relationships Types & Sets Degree or Cardinality (1:1, 1:M, M:N) Optionality (must/may) Existence Dependency Weak and Strong Entities Crows Feet Conventions & Layout rules Positioning Text Naming & Layout (w/ respect to relationships) Case for Entities/Attributes Oracle Layout Rules Which way do crows fly? Benefits of... Advantages/disadvantages of Chen diagrams for E/R modeling Advantages/disadvantages of Crows Feet diagrams for E/R modeling Advantages/disadvantages of UML diagrams for E/R modeling How to get entities, etc. from a narrative The Relational Model Developed by whom & when? Attributes of Nature of... Tables/relations only Relations expressed mathematically based on matching attributes (attributes in the same domain). Can generate new tables from old (closure property) Properties of tables cell contains one and only one value columns have distinct names values in a column come from the same domain each row/tuple is distinct (no duplicates) order of rows/tuples immaterial order of columns/attributes immaterial Based on mathematical definition of relations Any subset of the Cartesian product of 2 sets Differences between mathematical and database notions of relation 4

Properties of Relations Degree Cardinality Keys (same as before) Integrity Constraints Domain constraints Entity Integrity (no null values in keys) Referential Integrity Representing Relational Schema Tables Attributes Keys Foreign Keys Relational Data Manipulation Languages Procedural Relational Algebra SQL (to some extent) Non-procedural Relational Calculus SQL (to some extent) Other QBE 4GL Natural Language (5GL) Relational Algebra Know all of the symbols!!! Primitive Operations Basic Unary Operations SELECT PROJECTION RENAME Binary Set Operations UNION (OR) DIFFERENCE PRODUCT 5

Derived Operations INTERSECTION (AND) short for A (A - B) JOIN short for SELECT from (A x B) Inner Joins Equijoin Natural Join Outer Joins Left Outer Join Right Outer Join Full Outer Join DIVIDE Just know that it belongs here 6