FEN 2015-09-031 Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

FEN Introduction to the database field: Quality checking table design: Design Guidelines Normalisation Seminar: Introduction to relational.
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Review Indra Budi Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Main purpose of database Database Actors.
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
FEN Welcome Presentation Seminar overview Seminar: Introduction to relational databases.
Module 2 Designing a Logical Database Model. Module Overview Guidelines for Building a Logical Database Model Planning for OLTP Activity Evaluating Logical.
Relations The Relational Data Model John Sieg, UMass Lowell.
Design Guidelines Normalisation Table Design. Informal Design Guidelines Table Semantics A table should hold information about one and only one entity/concept.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Introduction to Relational Database ISYS 464. Introduction to Relational Model Data is logically structured within relations. Each relation is a table.
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
SQL DDL constraints Restrictions on the columns and tables 1SQL DDL Constraints.
Databases 6: Normalization
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Database Design & ER Diagrams
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Database Architecture The Relational Database Model.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Chapter 6: Integrity Objective Key Constraints (Chapter 2) Cardinality Constraints (Chapter 2) Domain Constraints Referential Integrity Assertions Triggers.
Chapters 17 & 18 Physical Database Design Methodology.
Web-Enabled Decision Support Systems
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Introduction to Accounting Information Systems
Concepts and Terminology Introduction to Database.
FEN  Concepts and terminology  Operations (relational algebra)  Integrity constraints The relational model.
CMPE 226 Database Systems September 16 Class Meeting Department of Computer Engineering San Jose State University Fall 2015 Instructor: Ron Mak
IT420: Database Management and Organization Normalization 31 January 2006 Adina Crăiniceanu
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Database Design (Normalizations) DCO11310 Database Systems and Design By Rose Chang.
FEN Quality checking table design: Design Guidelines Normalisation Table Design Is this OK?
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.
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
CSE314 Database Systems Basics of Functional Dependencies and Normalization for Relational Databases Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E.
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
In this session, you will learn to: Describe data redundancy Describe the first, second, and third normal forms Describe the Boyce-Codd Normal Form Appreciate.
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,
Functional dependencies and normalization 1 Normalization Functional dependencies NF + BCNF.
Transforming ER models to relational schemas
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
1 CS 430 Database Theory Winter 2005 Lecture 7: Designing a Database Logical Level.
The relational model1 The relational model Mathematical basis for relational databases.
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.
Lecture 4: Logical Database Design and the Relational Model 1.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Al-Imam University Girls Education Center Collage of Computer Science 1 st Semester, 1432/1433H Chapter 10_part 1 Functional Dependencies and Normalization.
Databases Introduction - concepts. Concepts of Relational Databases.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
1 CS122A: Introduction to Data Management Lecture #4 (E-R  Relational Translation) Instructor: Chen Li.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Introduction to the database systems (1)
Chapter 5: Logical Database Design and the Relational Model
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.
Translation of ER-diagram into Relational Schema
Relational Model and ER Model: in a Nutshell
Normalization Referential Integrity
Relational Database.
Chapter 3 The Relational Model.
The Relational Model Textbook /7/2018.
Relational Database Design
Database Dr. Roueida Mohammed.
Chapter 3 The Relational Model
Presentation transcript:

FEN Introduction to the database field: The development process Seminar: Introduction to relational databases Development process: Analyse the problem domain and build a conceptual model (ER model) Table design Domains Primary key, foreign keys, constraints Quality checking design (normalisation) Create tables Run queries

Development Process Analyse the problem domain: Identify: entities relations FEN

Development Process FEN Build the conceptual model: Attributes Primary keys Cardinality Participation

Development Process Transform the ER model into relational schemas (tables): 7 steps algorithm: Entity -> Table (composite, and multi value attributes) Weak entity -> Table (composite key, include owners key) 1-1 and 1-n relations (include primary key from one side as foreign key on the other side) n-m relations (new table with the primary keys from both sides as foreign keys, composite primary key) Multi value attributes - > new table (include the owners primary key as foreign key) Relations with degree > 2 -> new table (include all participants primary keys as foreign keys, composite primary key) FEN

Development Process Result: FEN

Development Process FEN Informal Design Guidelines: Table Semantics Avoid Redundant Information Minimise NULL-values Disallowing the generation of spurious tuples when joining tables. Normalisation: 1NF 2NF 3NF BCNF Look for functional dependencies / determinants that are not keys

Development Process FEN Guideline for Normalisation All attributes are to depend on the key, the whole key, and nothing but the key. So help me Codd. And remember: FDs are business rules Normalisation fights redundancy and other maladies in table design

Development Process Table definitions: Data types (domains) NULLs allowed? Primary key (ids?) Referential constraints (FK-PK references) FEN Constraint

Development Process Execute queries: SELECT, INSERT, UPDATE, DELETE FEN  SELECT:  Rows and columns  Joins  Set operations

Do it yourself If you want to try it your self, you may want to install the free Microsoft SQL Server Express: SQLServerInstall.pptx FEN

The End! Thank you very much – hope you liked it. FEN