Essential Databases The simple truth!. What’s a database? A system which helps with –storage –retrieval in an efficient manner –assume large volumes of.

Slides:



Advertisements
Similar presentations
ER to Relational Mapping. Logical DB Design: ER to Relational Entity sets to tables. CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER,
Advertisements

Logical DB Design: ER to Relational Entity sets to tables. Employees ssn name lot CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER, PRIMARY.
CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Chapter 10: Designing Databases
The Entity-Relationship Model
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 28 Database Systems I The Relational Data Model.
By relieving the brain of all unnecessary work, a good notation sets it free to concentrate on more advanced problems, and, in effect, increases the mental.
Concepts of Database Management Sixth Edition
Data Modelling. EAR model This modelling language allows a very small vocabulary: Just as English has nouns, verbs, adjectives, pronouns.., EAR models.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 Relational Algebra Chapter 4, Part A.
1004INT Information Systems Week 10 Databases as Business Tools.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
By relieving the brain of all unnecessary work, a good notation sets it free to concentrate on more advanced problems, and, in effect, increases the mental.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
CPSC-608 Database Systems Fall 2011 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes 1.
MS Access 2007 IT User Services - University of Delaware.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Database Design April 3, Projects, More Details Goal: build a DB application. (almost) anything goes. Groups of 3-4. End of week 2: groups formed.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
Unit 18: Database Modelling
IS 325 Notes for Wednesday September 18, 2013.
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
Seminar #: 9 (Object Oriented Database Schema in ODL) Advanced Databases (CM036) 1 Seminar 9 : OODB Schema in ODL Purpose To understand how an OODB is.
CS411 Database Systems Kazuhiro Minami 02: The Entity-Relationship Model.
IE 423 – Design of Decision Support Systems Data modeling and database development.
Completing the Model Common Problems in Database Design.
FEN  Concepts and terminology  Operations (relational algebra)  Integrity constraints The relational model.
Database Management COP4540, SCS, FIU Relational Model Chapter 7.
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
Databases From A to Boyce Codd. What is a database? It depends on your point of view. For Manovich, a database is a means of structuring information in.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj RM/SQL Lecture 1 ©Akhilesh Bajaj, 2000, 2002, 2003, All.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Copyright © 2005 Ed Lance Fundamentals of Relational Database Design By Ed Lance.
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
Chapter 12: Designing Databases
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Database Beginnings. Scenario so far In our scenario we have people registering for training sessions. –The data about the training sessions was placed.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 Relational Algebra.
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Version: 2.0. Forenam e of parent Surname of parent Address 1 Address 2 Name of child Age of child School database example. Try adding a few rows for.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
Btec National - Advanced Databases 1 Advanced Databases Entity Relationship Diagrams.
In this session, you will learn to: Map an ER diagram to a table Objectives.
CPSC 603 Database Systems Lecturer: Laurie Webster II, M.S.S.E., M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 2 Introduction to a First Course in Database Systems.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Unit 5 Advanced Databases The Purpose and features of a relational database.
1 CS 430 Database Theory Winter 2005 Lecture 4: Relational Model.
Seminar 10: OODB Design (Self-Study)
Database Basics BCIS 3680 Enterprise Programming.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Relational Data Model DeSiaMore Powered by DeSiaMore.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
What is an Entity Relationship Diagram?. An Entity Relationship Diagram is a graphic that is speacialized to illustrate or give examples of the inter.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.
Conversion from ER diagram to relational model 1 ER is a visual model The relational model is a matemathical model.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
The Relational Model Textbook /7/2018.
Information system analysis and design
Presentation transcript:

Essential Databases The simple truth!

What’s a database? A system which helps with –storage –retrieval in an efficient manner –assume large volumes of data paradigm - relational –(will also cover OODB)

The Data Model model –an artificially constructed device which approximates to a part of tha real world good model –properties of the model correspond to properties of the real world for all models –not always the case

In a database… the model is used to give –understanding to users/programmers tools to populate the database –tools to check queries make sense soundness –optimisation for queries increasingly less important for many databases

Creating a database phase 1 –design the schema nothing else can happen until this is fixed it can never be subsequently changed!! phase 2 –define queries, views etc. phase 3 –hand over to users to populate and use database leave without forwarding address!

The entity/relationship approach decide which real-world entities to model –eg people, cars, buildings etc. decide what attributes each entity has –eg age, name, address etc. decide what relationships exist among entities –eg owns, lives_at, employee_of etc sounds easy?

Entity-relationship diagrams just pictures capturing the above in some kind of coded form –lots of different notations exist… usual communication medium amongst designers, between designers and programmers etc. some systems allow them as basic input –play with MS Access

The Relational Model everything is coded as a relation –entities and relationships think of them as tables… –with care: no duplicates, no update the model doesn’t quite match the real world –it’s easy and dangerous to forget that

Modeling entities... straightforward for regular data think of: –relation as a table –entities as rows remember no repeats! –attributes as columns with basic scalar types eg int, string, date etc.

… and relationships how to capture an arbitrary relationship in a relation? relationships are between entities (rows) in other tables first n columns can uniquely identify entity in one relation, next m columns can uniquely identify entity in another relation. –(notice underlying strong theories)

(Relational) Keys a key is a subset of a relation’s attributes, the values of which uniquely identify every attribute –they can change according to the values present a primary key is that chosen by a DB designer for this purpose a foreign key is one that coexists in another relation

Modeling relationships again… we now know we can model any relationship –a new relation containing foreign keys for the two original relations each row in such a relation gives a two-way link –between rows in the two original relations can model any kind of relationship –one-one, one-many, many-one, many-many