Relational Database Theory. Relational Database Theory Database design using MySQL 21-Jan-06 : [1]
|
|
- Colin Atkins
- 6 years ago
- Views:
Transcription
1 Relational Database Theory Relational Database Theory Database design using MySQL 21-Jan-06 : [1]
2 Reminder MySQL is a Relational DBMS, so this section looks at Relational DB theory. The main reasons for using a database are to: reduce data redundancy (i.e. data duplication) achieve data independence (data storage independent of user applications) enforce data integrity (i.e. accuracy). Relational Database Theory Database design using MySQL 21-Jan-06 : [2]
3 Real World Database A database is a simplified representation or model of a real world situation. Probably the most popular method for modelling real world situations for relational databases is the: Entity-Attribute-Relationship (EAR) Model Relational Database Theory Database design using MySQL 21-Jan-06 : [3]
4 EAR Modelling Stems from perception of the real world as finite objects. Attributes describe entities which in turn are linked by relationships. Entity: a physical or abstract object that exists and can be distinguished from other objects. Attribute: a named characteristic of an entity. Relationship: a mapping between two entity classes. Relational Database Theory Database design using MySQL 21-Jan-06 : [4]
5 Relationships A direct mapping between two entity classes. one-to-one: an element from one class is mapped to exactly one element from another class. one-to-many: an element from one class is mapped to one or more elements in another class. many-to-many: zero, one or more elements from one class are mapped to zero, one or more elements in another class. Relational Database Theory Database design using MySQL 21-Jan-06 : [5]
6 EAR Example Students on a particular course each have a personal tutor for the duration of their study. During the course they undertake various modules, and an individual project. Relational Database Theory Database design using MySQL 21-Jan-06 : [6]
7 EAR Diagram TUTOR STUDENT PROJECT MODULE one-to-one relationship one-to-many relationship many-to-many relationship Relational Database Theory Database design using MySQL 21-Jan-06 : [7]
8 Keys An entity key is an single or set of attribute(s) that uniquely defines that entity. name address gender county number of residents hair colour dob Person NI no. weight height road name Building postcode house name or number Relational Database Theory Database design using MySQL 21-Jan-06 : [8]
9 What is there is no key? If there is no suitable unique key, can add an integer number key yourself. e.g. name gender person id number Person weight Relational Database Theory Database design using MySQL 21-Jan-06 : [9]
10 And, back to tables? So we ve gone from real world situation to EAR model diagram. Now what? A relational database consists of tables, records and fields. How does it all tie in to the EAR model? Relational Database Theory Database design using MySQL 21-Jan-06 : [10]
11 Tabulating room number name name year of study TUTOR STUDENT dob PROJECT MODULE description title title course code Relational Database Theory Database design using MySQL 21-Jan-06 : [11]
12 One Table? Student Name John Smith John Smith Jenny Crinion Student Yr of Study Student DOB Student Tutor Name Paul Tinker Paul Tinker John Foss Student Tutor Rm Project Title Aerosols Aerosols Hydraulics Project Description blah blah different blah Project Tutor John Foss John Foss Paul Tinker Project Tutor Rm Module Code Module Title database 1 database 2 database 2 Module Tutor Emily Fahye Paul Tinker Paul Tniker Module Tutor Rm Relational Database Theory Database design using MySQL 21-Jan-06 : [12]
13 Design from the EAR room number name name year of study TUTOR STUDENT dob PROJECT MODULE description title each entity has its own table one-to-one and one-to-many relationships can be included by adding an entity key into the relevant many -end table. many-to-many relationships will require their own table consisting of related entity keys. Relational Database Theory Database design using MySQL 21-Jan-06 : [13] title course code
14 Lots of tables? Table tutors tutor_id name Rm 1 Paul Tinker John Foss Emily Fahye 345 Table modules code title tutor_id O1 database 1 3 O2 database 2 1 Table enrolment student_id mod_code Table students student_id name tutor_id dob 1 John Smith 2 Jenny Crinion Table projects title description tutor_id student_id Aerosols blah 2 1 Hydraulics different blah 1 2 Relational Database Theory Database design using MySQL 21-Jan-06 : [14]
15 Keys The unique record keys in each of the tables are called primary keys. If this primary key consists of more than one field it is called a composite key. A key in a table that refers to the primary key in another table is called a foreign key. Relational Database Theory Database design using MySQL 21-Jan-06 : [15]
16 Primary and Foreign Keys tutor_id name Rm primary keys Table tutors 1 Paul Tinker John Foss Emily Fahye 345 code title tutor_id O1 database 1 3 O2 database 2 1 Table modules foreign keys Every primary key in a particular table must be unique. To ensure referential integrity all foreign keys must have a associated value as a primary key in the related table. Relational Database Theory Database design using MySQL 21-Jan-06 : [16]
17 Normalisation This process of decomposing data into lots of smaller tables which are related through the use of keys is called normalisation. It is essential to eliminate data redundancy (i.e. repeated data). Relational Database Theory Database design using MySQL 21-Jan-06 : [17]
18 Normalisation: Next step To ensure a fully normalised solution with no repeated data, it is also important not to store data that can be derived from elsewhere Table bank_accn Name Balance Overdraft Limit Available John Alice NO! Available = Balance + Overdraft Limit Relational Database Theory Database design using MySQL 21-Jan-06 : [18]
19 Data Integrity or Accuracy type checks e.g. ensure numeric field is numeric and not a string. redundancy checks e.g. check that a new record is not a copy of another. i.e. MySQL won t check your data very thoroughly. That the job of the input application. Relational Database Theory Database design using MySQL 21-Jan-06 : [19]
20 Data Integrity By Normalisation Sometimes it is desirable to restrict the data in a column to a set of values. Can either: A. Use an ENUM( value1, value2, ) field type definition. B. Use an addition table to store the values to choose from and relate the tables using primary and foreign keys. Relational Database Theory Database design using MySQL 21-Jan-06 : [20]
21 ENUM vs. Normalisation Table person Name Gender Hair_id John male 1 Alice female 3 James male 1 name Person gender hair colour Table hair Hair_id Colour 1 Blonde 2 Brown 3 Black Why hair_id? Performance is better with integer keys. Also, if we join on a ID key, we can change the names of the hair colours without touching any other tables Relational Database Theory Database design using MySQL 21-Jan-06 : [21]
22 Review Familiar with the concept of modelling the real world using the EAR method constructing an EAR diagram mapping this diagram to a relational database schema the terms normalisation, primary and foreign keys. data integrity and some of the measures that can be taken to enforce it. Relational Database Theory Database design using MySQL 21-Jan-06 : [22]
23 Group Case Study HOE 8 Designing a Database Relational Database Theory Database design using MySQL 21-Jan-06 : [23]
The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.
Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting
More informationRelational Algebra for sets Introduction to relational algebra for bags
Relational Algebra for sets Introduction to relational algebra for bags Thursday, September 27, 2012 1 1 Terminology for Relational Databases Slide repeated from Lecture 1... Account Number Owner Balance
More informationA Flat file database. Problems with a flat file database (data redundancy)
Data capture Before you can create a database, you need to collect data. This is known as data capture. One of the most common ways is to use and optical mark reader (OMR). An OMR sensor is used for marking
More informationLecture 03. Spring 2018 Borough of Manhattan Community College
Lecture 03 Spring 2018 Borough of Manhattan Community College 1 2 Outline 1. Brief History of the Relational Model 2. Terminology 3. Integrity Constraints 4. Views 3 History of the Relational Model The
More informationIn mathematical terms, the relation itself can be expressed simply in terms of the attributes it contains:
The Relational Model The relational data model organises data as 2-dimensional tables or relations. An example of one such relation would be STUDENT shown below. As we have seen in the wine list example,
More informationOverview of the Class and Introduction to DB schemas and queries. Lois Delcambre
Overview of the Class and Introduction to DB schemas and queries Lois Delcambre 1 CS 386/586 Introduction to Databases Instructor: Lois Delcambre lmd@cs.pdx.edu 503 725-2405 TA: TBA Office Hours: Immediately
More informationEntity Relationship Diagram (ERD) Dr. Moustafa Elazhary
Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built
More informationRelational model. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c)
Relational model Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) 2011-2016 Relational database model Data are represented as a mathematical relation (subset of cartesian product) of attribute domains
More informationACS-3902 Fall Ron McFadyen 3D21 Slides are based on chapter 5 (7 th edition) (chapter 3 in 6 th edition)
ACS-3902 Fall 2016 Ron McFadyen 3D21 ron.mcfadyen@acs.uwinnipeg.ca Slides are based on chapter 5 (7 th edition) (chapter 3 in 6 th edition) 1 The Relational Data Model and Relational Database Constraints
More informationEE221 Databases Practicals Manual
EE221 Databases Practicals Manual Lab 1 An Introduction to SQL Lab 2 Database Creation and Querying using SQL Assignment Data Analysis, Database Design, Implementation and Relation Normalisation School
More informationDBMS. Relational Model. Module Title?
Relational Model Why Study the Relational Model? Most widely used model currently. DB2,, MySQL, Oracle, PostgreSQL, SQLServer, Note: some Legacy systems use older models e.g., IBM s IMS Object-oriented
More informationIntroduction to Database. Dr Simon Jones Thanks to Mariam Mohaideen
Introduction to Database Dr Simon Jones simon.jones@nyumc.org Thanks to Mariam Mohaideen Today database theory Key learning outcome - is to understand data normalization Thursday, 19 November Introduction
More informationDatabase Management Systems
Database Management Systems Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Computer Science Department 2015 2016 Department of Computer Science
More informationInformation Services. Essential Access Exercises. IT
Information Services Essential Access Exercises IT www.york.ac.uk/it-services/training Essential Access Tasks Exercises to accompany Essential Access Course Books 1 & 2 Sample files for use with these
More informationLecture 03. Fall 2017 Borough of Manhattan Community College
Lecture 03 Fall 2017 Borough of Manhattan Community College 1 2 Outline 1 Brief History of the Relational Model 2 Terminology 3 Integrity Constraints 4 Views 3 History of the Relational Model The Relational
More informationDefinition. 02. Data Modeling. Example ABC Company Database. Data Modeling Importance
0. Data Modeling Definition Data Model = a collection of concepts that can be used to describe the structure of a database Structure = data types, relationships, constraints that should hold for that data
More informationRelational terminology. Databases - Sets & Relations. Sets. Membership
Relational terminology Databases - & Much of the power of relational databases comes from the fact that they can be described analysed mathematically. In particular, queries can be expressed with absolute
More informationDatabase Management Systems,
Database Management Systems Database Design (2) 1 Topics Data Base Design Logical Design (Review) Physical Design Entity Relationship (ER) Model to Relational Model Entity Relationship Attributes Normalization
More informationRelational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity
COS 597A: Principles of Database and Information Systems Relational model continued Understanding how to use the relational model 1 with as weak entity folded into folded into branches: (br_, librarian,
More informationChapter 2 Introduction to Relational Models
CMSC 461, Database Management Systems Spring 2018 Chapter 2 Introduction to Relational Models These slides are based on Database System Concepts book and slides, 6th edition, and the 2009 CMSC 461 slides
More informationbegin [atomic] operation, operation, { commit rollback} end
Set Processing Languages standard, simple data structure RELATION abstracted retrievals RELATIONAL ALGEBRA abstracted updating INSERT, DELETE, UPDATE transaction indivisible set of active operations begin
More informationCS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010
CS403- Database Management Systems Solved MCQS From Midterm Papers April 29,2012 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 CS403- Database Management Systems MIDTERM EXAMINATION - Spring
More informationIntroduction to Database Systems. The Relational Data Model
Introduction to Database Systems The Relational Data Model Werner Nutt 1 4. The Relational Data Model 4.1 Schemas 1. Schemas 2. Instances 3. Integrity Constraints 2 Different Schemas are Based on Different
More informationIntroduction to Database Systems. The Relational Data Model. Werner Nutt
Introduction to Database Systems The Relational Data Model Werner Nutt 1 4. The Relational Data Model 4.1 Schemas 1. Schemas 2. Instances 3. Integrity Constraints 2 Different Schemas are Based on Different
More informationData Analysis 3. SET08104 Database Systems. Napier University
Data Analysis 3 SET08104 Database Systems Copyright @ Napier University Mapping ER Models into Relations Overview map 1:1 relationships into relations map 1:m relationships into relations map m:n relationships
More informationConsistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one
Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we
More informationDatabase Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015
Lecture 5 Database Systems Instructor: M.Imran Khalil Imrankhalil3@gmail.com Resource:Imrankhalil3.wordpress.com University of Sargodha Canal Campus Lahore Overview - important points Some introductory
More informationDatabase Normalization is the process of efficiently organizing data in a database. There are two goals of the normalization process:
NORMAL FORMS INTRODUCTION Normal Forms can be simply defined as database normalization rules/conditions. It is a condition of using keys and functional dependencies (FDs) of a relation to certify whether
More informationSQL - Subqueries and. Schema. Chapter 3.4 V4.0. Napier University
SQL - Subqueries and Chapter 3.4 V4.0 Copyright @ Napier University Schema Subqueries Subquery one SELECT statement inside another Used in the WHERE clause Subqueries can return many rows. Subqueries can
More informationCSC 742 Database Management Systems
CSC 742 Database Management Systems Topic #5: Relational Model Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Motivation A relation is a mathematical abstraction for a table The theory of relations provides
More informationDatabase Design. 6-1 Artificial, Composite, and Secondary UIDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 6-1 Objectives This lesson covers the following objectives: Define the different types of unique identifiers (UIDs) Define a candidate UID and explain why an entity can sometimes have more
More informationCS 405G: Introduction to Database Systems
CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of
More informationUNIT 1 INTRODUCTION TO DBMS 1
UNIT 1 INTRODUCTION TO DBMS 1 UNIT 1 INTRODUCTION TO DBMS 2 Example of simple college database which stores student and course information. Student: Stud-id Name Subjects Grade 1 Bob CS A 2 Tom MATH B
More informationCS313D: ADVANCED PROGRAMMING LANGUAGE
CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 11: Connection to Databases Lecture Contents 2 What is a database? Relational databases Cases study: A Books Database Querying
More informationDatabase Systems CSE Comprehensive Exam Spring 2005
Database Systems CSE 5260 Spring 2005 Database Schema #1 Branch (Branch_Name, Branch_City, Assets) Customer (Customer_Name, SS#, Street, City, State, Zip_Code) Account (Account_Number, Branch_Name, Balance)
More informationSQL Simple Queries. Chapter 3.1 V3.01. Napier University
SQL Simple Queries Chapter 3.1 V3.01 Copyright @ Napier University Introduction SQL is the Structured Query Language It is used to interact with the DBMS (database management system) SQL can Create Schemas
More informationMIS Database Systems Entity-Relationship Model.
MIS 335 - Database Systems Entity-Relationship Model http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database Design Main concepts in the ER model? ER Diagrams Database Design
More informationLogical Database Design. ICT285 Databases: Topic 06
Logical Database Design ICT285 Databases: Topic 06 1. What is Logical Database Design? Why bother? Bad logical database design results in bad physical database design, and generally results in poor database
More informationData Modeling. Yanlei Diao UMass Amherst. Slides Courtesy of R. Ramakrishnan and J. Gehrke
Data Modeling Yanlei Diao UMass Amherst Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 Outline v Conceptual Design: ER Model v Relational Model v Logical Design: from ER to Relational 2 Conceptual
More informationCS530 Database Architecture Models. Database Model. Prof. Ian HORROCKS. Dr. Robert STEVENS. and Design The Relational
02 - The Relational Database Model CS530 Database Architecture Models and Design Prof. Ian HORROCKS Dr. Robert STEVENS In this Section Topics Covered The basics of the relational model in the context of
More informationCOMP Instructor: Dimitris Papadias WWW page:
COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management
More informationCS317 File and Database Systems
CS317 File and Database Systems http://dilbert.com/strips/comic/2010-08-24/ Lecture 8 Introduction to Normalization October 17, 2017 Sam Siewert Exam #1 Questions? Reminders Working on Grading Ex #3 -
More informationLab 1 (fall, 2017) Introduction to R and R Studio
Lab 1 (fall, 201) Introduction to R and R Studio Introduction: Today we will use R, as presented in the R Studio environment (or front end), in an introductory setting. We will make some calculations,
More informationOffice Access. Intermediate
Office 2007 Access Intermediate May 2010 Contents INTRODUCTION... 1 DATABASE CONCEPTS... 3 WHAT IS A DATABASE?... 3 DATABASE OBJECTS... 3 WHAT IS A PRIMARY KEY?... 4 WHAT IS A FOREIGN KEY?... 4 WHAT IS
More informationLearning Unit 1 CHECK POINT 1 CHECK POINT 2
Learning Unit 1 CHECK POINT 1 1. A relation is a table in a relational database. It is represented as a list of fields following the table name and the field that is the primary key is underlined. tablename(primary
More informationDatabase Systems. Course Administration
Database Systems ( ) September 20, 2004 Lecture #2 By Hao-hua Chu ( ) 1 Course Administration Can everyone get the textbook? HW #1 is out on the course homepage It is due one week from today. Next week
More informationKINGDOM OF SAUDI ARABIA-JAZAN UNIVERSITY COLLEGE OF COMPUTER SCIENCE & INFORMATION SYSTEMS 221 INFS 3 DATABASE SYSTEMS-1 REVIEW QUESTIONS
KINGDOM OF SAUDI ARABIA-JAZAN UNIVERSITY COLLEGE OF COMPUTER SCIENCE & INFORMATION SYSTEMS 221 INFS 3 DATABASE SYSTEMS-1 REVIEW QUESTIONS Chapter 1: Databases and Database Users 1. Define the following
More informationDatabase Applications (15-415)
Database Applications (15-415) The Relational Model Lecture 3, January 18, 2015 Mohammad Hammoud Today Last Session: The entity relationship (ER) model Today s Session: ER model (Cont d): conceptual design
More informationL12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018
L12: ER modeling 5 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/22/2018 200 Announcements! Keep bringing your name plates J Exam 1 discussion: questions on grading: Piazza,
More informationCS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam
CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam Question No: 1 ( Marks: 1 ) - Please choose one Which of the following is NOT a feature of Context DFD?
More informationDistributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science
Distributed Database Systems By Syed Bakhtawar Shah Abid Lecturer in Computer Science 1 Distributed Database Systems Basic concepts and Definitions Data Collection of facts and figures concerning an object
More informationData Analysis 3. Chapter 2.3 V3.0. Napier University Dr Gordon Russell
Data Analysis 3 Chapter 2.3 V3.0 Copyright @ Napier University Dr Gordon Russell Mapping ER Models into Relations Overview map 1:1 relationships into relations map 1:m relationships into relations map
More informationData about data is database Select correct option: True False Partially True None of the Above
Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another
More informationIGCSE Information Communication Technology (ICT) Syllabus code Section 5: Data types
IGCSE Information Communication Technology (ICT) Syllabus code 0417 Section 5: Data types At the end of this Unit students will be able to: (a) identify different data types: logical/boolean, alphanumeric/text,
More informationEntity-Relationship Model &
Entity-Relationship Model & IST 210 Diagram Todd S. Bacastow IST 210: Organization of data 2/1/2004 1 Design Principles Setting client has (possibly vague) idea of what he/she wants. YOUR task must design
More informationNormalization Rule. First Normal Form (1NF) Normalization rule are divided into following normal form. 1. First Normal Form. 2. Second Normal Form
Normalization Rule Normalization rule are divided into following normal form. 1. First Normal Form 2. Second Normal Form 3. Third Normal Form 4. BCNF First Normal Form (1NF) As per First Normal Form, no
More informationRelational Databases Overview
Relational Databases Overview Full Description of the Relational Model Mapping ER diagrams to the Relational Model Integrity Constraints and the Relational Model Querying A Relational Database The Relational
More informationLevel 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE
C30147 RELATIONAL DATABASE Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards This module has been developed to further the learner s
More informationCMPT 354: Database System I. Lecture 3. SQL Basics
CMPT 354: Database System I Lecture 3. SQL Basics 1 Announcements! About Piazza 97 enrolled (as of today) Posts are anonymous to classmates You should have started doing A1 Please come to office hours
More informationCGS 3066: Spring 2017 SQL Reference
CGS 3066: Spring 2017 SQL Reference Can also be used as a study guide. Only covers topics discussed in class. This is by no means a complete guide to SQL. Database accounts are being set up for all students
More informationIntroduction to Data Management. Lecture #5 Relational Model (Cont.) & E-Rà Relational Mapping
Introduction to Data Management Lecture #5 Relational Model (Cont.) & E-Rà Relational Mapping Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1
More informationThe data structures of the relational model Attributes and domains Relation schemas and database schemas
The data structures of the relational model Attributes and domains Relation schemas and database schemas databases First normal form (1NF) Running Example Pubs-Drinkers-DB: Pubs (name, location) Drinkers
More informationDatabases. Jörg Endrullis. VU University Amsterdam
Databases Jörg Endrullis VU University Amsterdam The Relational Model Overview 1. Relational Model Concepts: Schema, State 2. Null Values 3. Constraints: General Remarks 4. Key Constraints 5. Foreign Key
More informationCOSC344 Database Theory and Applications. σ a= c (P) Lecture 3 The Relational Data. Model. π A, COSC344 Lecture 3 1
COSC344 Database Theory and Applications σ a= c (P) S P Lecture 3 The Relational Data π A, C (H) Model COSC344 Lecture 3 1 Overview Last Lecture Database design ER modelling This Lecture Relational model
More informationUNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE FZE. BSc (HONS) COMPUTING SEMESTER ONE EXAMINATION 2018/2019 DATABASE THEORY AND PRACTICE
OCD046 UNIVERSITY OF BOLTON WESTERN INTERNATIONAL COLLEGE FZE BSc (HONS) COMPUTING SEMESTER ONE EXAMINATION 2018/2019 DATABASE THEORY AND PRACTICE MODULE NO: CPU5002 Date: Saturday 12th January 2019 Time:
More informationData, Databases, and DBMSs
Todd S. Bacastow January 2004 IST 210 Data, Databases, and DBMSs 1 Evolution Ways of storing data Files ancient times (1960) Databases Hierarchical (1970) Network (1970) Relational (1980) Object (1990)
More informationCMPE 131 Software Engineering. Database Introduction
Presented By Melvin Ch ng CMPE 131 Software Engineering September 14, 2017 Database Introduction Ruby on Rails ORM Agenda Database Management System (DBMS) SQL vs NoSQL Relational Database Introduction
More informationRelational Databases BORROWED WITH MINOR ADAPTATION FROM PROF. CHRISTOS FALOUTSOS, CMU /615
Relational Databases BORROWED WITH MINOR ADAPTATION FROM PROF. CHRISTOS FALOUTSOS, CMU 15-415/615 Roadmap 3 Introduction Integrity constraints (IC) Enforcing IC Querying Relational Data ER to tables Intro
More informationInformatics 1: Data & Analysis
Informatics 1: Data & Analysis Lecture 3: The Relational Model Ian Stark School of Informatics The University of Edinburgh Tuesday 24 January 2017 Semester 2 Week 2 https://blog.inf.ed.ac.uk/da17 Lecture
More informationIntroduction to Databases and SQL
Introduction to Databases and SQL Files vs Databases In the last chapter you learned how your PHP scripts can use external files to store and retrieve data. Although files do a great job in many circumstances,
More informationModeling access. Relational query languages. Queries. Selection σ P (R) Relational model: Relational algebra
COS 597A: Principles of Database and Information Systems Relational model: Relational algebra Modeling access Have looked at modeling information as data + structure Now: how model access to data in relational
More informationIntroduction to Data Management. Lecture #4 (E-R Relational Translation)
Introduction to Data Management Lecture #4 (E-R Relational Translation) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Announcements v Today
More informationB.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1
Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished
More informationConceptual Data Models for Database Design
Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database
More informationReferential integrity
Referential integrity Another function of the DBMS is to ensure referential integrity. This refers to the concept that a foreign key in a relation must have a corresponding entry in the table to which
More informationThe Relational Model. Why Study the Relational Model? Relational Database: Definitions
The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in
More informationThe Relational Model. Roadmap. Relational Database: Definitions. Why Study the Relational Model? Relational database: a set of relations
The Relational Model CMU SCS 15-415/615 C. Faloutsos A. Pavlo Lecture #3 R & G, Chap. 3 Roadmap Introduction Integrity constraints (IC) Enforcing IC Querying Relational Data ER to tables Intro to Views
More informationDatabase Systems. Answers
Database Systems Question @ Answers Question 1 What are the most important directories in the MySQL installation? Bin Executable Data Database data Docs Database documentation Question 2 What is the primary
More informationAnnouncements (January 20) Relational Database Design. Database (schema) design. Entity-relationship (E/R) model. ODL (Object Definition Language)
Announcements (January 20) 2 Relational Database Design Review for Codd paper due tonight via email Follow instructions on course Web site Reading assignment for next week (Ailamaki et al., VLDB 2001)
More information2 Databases & Data Modelling
2 Databases & Data Modelling Mandatory: Chapter 4 Sections 4.4 & 4.5 Reading Assignment 2 1 Mapping ERDs to Schema 3 At the end of this section, you will be able to: 1. Apply the mapping algorithm to translate
More informationEntity Relationship Data Model. Slides by: Shree Jaswal
Entity Relationship Data Model Slides by: Shree Jaswal Topics: Conceptual Modeling of a database, The Entity-Relationship (ER) Model, Entity Types, Entity Sets, Attributes, and Keys, Relationship Types,
More informationVendor: CIW. Exam Code: 1D Exam Name: CIW v5 Database Design Specialist. Version: Demo
Vendor: CIW Exam Code: 1D0-541 Exam Name: CIW v5 Database Design Specialist Version: Demo QUESTION: 1 With regard to databases, what is normalization? A. The process of reducing the cardinality of a relation
More information7) To be considered a composite key, a key must contain at least two attributes. Answer: TRUE
Database Concepts, 7e (Kroenke/Auer) Chapter 2 The Relational Model 1) While the relational model for databases appears to hold much promise, few commercial databases have implemented it. Diff: 1 Page
More informationRelational Databases
Relational Databases Lecture 2 Chapter 3 Robb T. Koether Hampden-Sydney College Fri, Jan 18, 2013 Robb T. Koether (Hampden-Sydney College) Relational Databases Fri, Jan 18, 2013 1 / 26 1 Types of Databases
More informationCIS 330: Applied Database Systems. ER to Relational Relational Algebra
CIS 330: Applied Database Systems ER to Relational Relational Algebra 1 Logical DB Design: ER to Relational Entity sets to tables: ssn name Employees lot CREATE TABLE Employees (ssn CHAR(11), name CHAR(20),
More informationCSC 453 Database Technologies. Tanu Malik DePaul University
CSC 453 Database Technologies Tanu Malik DePaul University A Data Model A notation for describing data or information. Consists of mostly 3 parts: Structure of the data Data structures and relationships
More informationThe Relational Model
The Relational Model UVic C SC 370, Fall 2002 Daniel M. German Department of Computer Science University of Victoria 3 1 The Relational Model CSC 370 dmgerman@uvic.ca Overview How is data represented in
More informationData Base Concepts. Course Guide 2
MS Access Chapter 1 Data Base Concepts Course Guide 2 Data Base Concepts Data The term data is often used to distinguish binary machine-readable information from textual human-readable information. For
More informationIntroduction to Data Management. Lecture #6 E-Rà Relational Mapping (Cont.)
Introduction to Data Management Lecture #6 E-Rà Relational Mapping (Cont.) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 It s time again for...
More informationOVERVIEW OF DATABASE DEVELOPMENT
DATABASE SYSTEMS I WEEK 2: THE ENTITY-RELATIONSHIP MODEL OVERVIEW OF DATABASE DEVELOPMENT Requirements Analysis / Ideas High-Level Database Design Conceptual Database Design / Relational Database Schema
More informationSQL DATA DEFINITION: KEY CONSTRAINTS. CS121: Relational Databases Fall 2017 Lecture 7
SQL DATA DEFINITION: KEY CONSTRAINTS CS121: Relational Databases Fall 2017 Lecture 7 Data Definition 2 Covered most of SQL data manipulation operations Continue exploration of SQL data definition features
More informationIn This Lecture. Normalisation to BCNF. Lossless decomposition. Normalisation so Far. Relational algebra reminder: product
In This Lecture Normalisation to BCNF Database Systems Lecture 12 Natasha Alechina More normalisation Brief review of relational algebra Lossless decomposition Boyce-Codd normal form (BCNF) Higher normal
More informationHands On Exploration of NETCONF and YANG
Hands On Exploration of NETCONF and YANG Bryan Byrne, CCIE 25607 (R/S) Technical Solutions Architect Enterprise Networks @bryan25607 Agenda Introduction Module 1 YANG Data Modeling Module 2 Introduction
More informationDatabases. What is a Database? Part 2. Part 1. Matthew Egbert CS111, Part 3. What is a database?
Databases Matthew Egbert CS, 206 Part Know what a database is. Understand why they are useful and when you might want to use one. Have a basic understanding of how the most common type of databases, Relational
More informationRelational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan
Relational Model DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Management Information Systems (MIS) Relational Model Relational Data
More informationChapter 3B Objectives. Relational Set Operators. Relational Set Operators. Relational Algebra Operations
Chapter 3B Objectives Relational Set Operators Learn About relational database operators SELECT & DIFFERENCE PROJECT & JOIN UNION PRODUCT INTERSECT DIVIDE The Database Meta Objects the data dictionary
More informationEECS 647: Introduction to Database Systems
EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2009 Stating Points A database A database management system A miniworld A data model Conceptual model Relational model 2/24/2009
More informationData Modeling Using the Entity-Relationship (ER) Model
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-1 Chapter Outline Overview of Database Design Process Example Database Application
More informationThe Relational Data Model. Data Models. Relational vs Semistructured. Structure Operations - Constraints
The Relational Data Model Data Models Structure Operations - Constraints Types: Relational data model Object data model Hierarchical data model (Trees) Network data model (Graphs) Semistructured Data Model
More informationIntroduction to Database Management Systems
Relational Data Model Relational Data Model 1 o Relations o Attributes o Tuples o Relations o Primary Keys o Objectives o Comparison to other models o Components o Relation Properties o Kinds of Relations
More information