Database Design Principles of database design. Relational Models Relational databases are designed to provide efficient structures for transaction processing.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Relational Databases Chapter 4.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 5 Advanced Data Modeling.
Modeling the Data: Conceptual and Logical Data Modeling
Microsoft Access Removing Redundancy in a Database.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Chapter 14 Getting to First Base: Introduction to Database Concepts.
The Relational Database Model:
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Recording / Financing Fixed Asset Acquisition Human Resources Purchasing Revenue Traditional files approach: separate systems (Legacy Systems) Expenditure.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 3: Data Modeling
Database Design Concepts Info1408
July 14, 2015ICS 424: recap1 Relational Database Design: Recap of ICS 324.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
Business Process Modeling
SQL Normalization Database Design Lecture 5. Copyright 2006Page 2 SQL Normalization Database Design 1 st Normal Form 1 st Normal Form 2 nd Normal Form.
RAJIKA TANDON DATABASES CSE 781 – Database Management Systems Instructor: Dr. A. Goel.
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
Concepts and Terminology Introduction to Database.
Chapter 6.
Avoiding Database Anomalies
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
Chapter 7 1 Database Principles Data Normalization Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Database Design Principles – Lecture 3
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Implementing an REA Model in a Relational Database
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
System Design System Design - Mr. Ahmad Al-Ghoul System Analysis and Design.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
© 2005 by Prentice Hall 1 The Database Development Process Dr. Emad M. Alsukhni The Database Development Process Dr. Emad M. Alsukhni Modern Database Management.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Design – Lecture 4 Conceptual Data Modeling.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
MIS 301 Information Systems in Organizations Dave Salisbury ( )
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
RELATIONAL TABLE NORMALIZATION. Key Concepts Guidelines for Primary Keys Deletion anomaly Update anomaly Insertion anomaly Functional dependency Transitive.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Microsoft Access CS 110 Fall Entity Relationship Model Entities Entities Principal data object about which information is to be collectedPrincipal.
Database Concepts and Applications in HRIS
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.
Normalisation FORM RULES 1NF 2NF 3NF. What is normalisation of data? The process of Normalisation organises your database to: Reduce or minimise redundant.
Chapter 4 Relational Databases
Database Management  .
Databases and Information Management
logical design for relational database
Entity-Relationship Diagram (ERD)
G061 - Data Dictionary.
Database Design Chapter 7.
Presentation transcript:

Database Design Principles of database design

Relational Models Relational databases are designed to provide efficient structures for transaction processing zMinimize data redundancy zIdentify stable structures zProvide for flexible queries

Relational Databases Based on tables which represent things about which we store data yRows represent instances yColumns (attributes) are single valued properties Connections among tables are defined by common attributes

Data Modeling Describe the data structures and relationships that are required to support the users business model. The business model is the abstract description of the rules and processes by which the organization creates value.

Considerations in Relational Database Design z Understand the business environment and uses of data z Identify fields needed to produce required information y store data in smallest parts y avoid calculated fields z Group fields into tables z Determine each table’s primary key z Include a common field in related tables z Avoid redundancies

Conceptual Data Modeling zUnderstand the structure of data independent of process zDescribe the information objects of the organization and the relationships between objects zDevelop from knowledge of the organization and users

Entities Something of importance that can be identified in the business environment. Similar entities are grouped in entity classes. Example - individual employees can be grouped in an entity class called EMPLOYEE. Individual members of an entity class are called entity instances.

Entities zEntity rows cannot be duplicates zEntities must have more than one instance zEntities must have more than one attribute

Examples of Entities zPerson - customer, zObject - item, product zEvent - sale, purchase zConcept - course, flight

Identifying Entities nIn the business context, entities are usually described by nouns. nThe person, or organization using the system is usually not an entity. nReports, screens and processing steps are not entities. nEntities with only one attribute are usually modeled as attributes of another entity.

Attributes Entities have attributes or properties that describe the characteristics of the entity. z All entity instances in an entity class have the same attributes. Attribute values will vary. z Attributes can be composites of other attributes. z The type of data described by the attribute is the same for all entity instances. The value can change but must be the same type (numbers, date, etc).

Keys Single field or combination of several fields to identify records for retrieval and processing zPrimary key - unique identifier zSecondary key -identifier, but not necessarily unique zForeign key - primary key in another related table

Example of Relational Tables

Examples of Relational Tables

Identifiers Entity instances have some name or identification string to identify them within the context of the environment. This name or string is an identifier. Unique identifiers identify a single entity instance. Non-unique identifiers can identify sets of instances.

A relationship is a connection or association between entity instances in different entity classes. It specifies what row connects with what row in associated tables. Relationships

Normalization A process for identifying structural problems with relational databases to reduce processing anomalies. zTheoretically based zBottom-up (starts with attribute lists) zStep by step procedure

Steps in Normalization Every non-key attribute is fully functionally dependent on the primary key. No functional dependencies between non-key attributes.

Relation with Transitive Dependency

Transitive Dependency in SALES Relation

Removing a Transitive Dependency