CSC 422 L ECTURE N OTE DataBase Design by Aborisade D.O. Department of Computer Science, College of Natural Science, Federal University of Agriculture,

Slides:



Advertisements
Similar presentations
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Advertisements

Ch:8 Design Concepts S.W Design should have following quality attribute: Functionality Usability Reliability Performance Supportability (extensibility,
D ATA F LOW D IAGRAM. D ATA F LOW D IAGRAM : "a network representation of a system. The system may be automated, manual, or mixed. The DFD portrays the.
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Models
Information System Engineering
ETEC 100 Information Technology
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
PROCESS MODELING Transform Description. A model is a representation of reality. Just as a picture is worth a thousand words, most models are pictorial.
Modern Systems Analysis and Design
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Lecture 3 :Database Analysis and Design (II)
Case study Lisa’s Bookstore IST210.
Mrs. Maninder Kaur Mrs. Maninder Kaur 1 Architecture of DBMS
SQL, Data Storage Technologies, and Web-Data Integration Week 1.
Process Modeling SYSTEMS ANALYSIS AND DESIGN, 6 TH EDITION DENNIS, WIXOM, AND ROTH © 2015 JOHN WILEY & SONS. ALL RIGHTS RESERVED. 1 Roberta M. Roth.
Entity Relationship Diagram Farrokh Alemi Ph.D. Francesco Loaiza, Ph.D. J.D. Vikas Arya.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
1 The Entity-Relationship Model Chapter 2. 2 Overview of Database Design  Conceptual design : (ER Model is used at this stage.)  What are the entities.
XP Class Objectives – 9/10 and 9/12 Learn how to design a small database Understand the goals of a database Understand the terminology of database design.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
ITEC224 Database Programming
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Database Systems: Design, Implementation, and Management Ninth Edition
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
HNDComputing – DeMontfort University  DeMontfort University 2011 Database Fundamentals wk2 Database Design ConceptsDatabase Design Concepts Database Design.
Object-Oriented Analysis and Design An Introduction.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Rob and Coronel Adapted for INFS-3200.
Data Modelling. ICT5 Introduction Historical development with most organisations Small-scale origins Individual computers bought for particular applications.
T ROPICAL S ENSE By: Stephanie Peter & Ira Leigh IV.
Database Administration COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1.  An introduction to data modelling  The purpose of data modelling  Modelling data relationships 2.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
 Three-Schema Architecture Three-Schema Architecture  Internal Level Internal Level  Conceptual Level Conceptual Level  External Level External Level.
An Introduction to Data Modelling Entity Relationship Modelling Avin Mathew Nov 2010.
Methodology - Conceptual Database Design
1 ICOM 5016 – Introduction to Database System Project # 1 Dr. Manuel Rodriguez-Martinez Department of Electrical and Computer Engineering University of.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Exam 1 Review. Bureau of Labor Statistics, U.S. Department of Labor, Occupational Outlook Handbook, Edition, Computer and Information Systems.
CPSC 871 John D. McGregor Module 3 Session 1 Architecture.
BUSINESS SOFTWARE SOLUTION. INTRODUCTION Joseph Chidubem Orjinta. President and Founder of Blualpha Nigeria Limited  B.Eng Computer Science and Engineering,
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Data Modeling AND ER MODELS.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Business Process Modeling What is a process model? – A formal way of representing how a business system operates. – Illustrates the activities that are.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
COP Introduction to Database Structures
Database Development Lifecycle
Database Requirements and Design
DATA MODELS.
CS 174: Server-Side Web Programming February 12 Class Meeting
Information Systems in Organizations 2
Chapter 2 Database Environment.
Teaching slides Chapter 8.
System Design By Kustanto.
Entity-Relationship Diagram (ERD)
DATA MODELS.
Conceptual modeling of databases
CMPE/SE 131 Software Engineering March 7 Class Meeting
Presentation transcript:

CSC 422 L ECTURE N OTE DataBase Design by Aborisade D.O. Department of Computer Science, College of Natural Science, Federal University of Agriculture, Abeokuta (FUNAAB)

C OURSE C ONTENTS Meaning of Database Examples of Database Relational Database Design Conceptual Database Design Logical Database Design References

W HAT IS A D ATABASE ? A database is a collection of entities and its relation stored in a persistent and systematic way. Any database definition must include ENTITY, RELATION, PERSISTENT and SYSTEMATIC. Database is a collection of objects and relationships. A database is usually represented by drawing a cylindrical object because it (database) must reside in a device e.g an Utility and Hospital database are illustrated below:

D IAGRAM OF U TILITY D ATABASE Entities: Customer, bills, meters, payments, meter readings Relationships: bills sent to customers, Customers make payments, Customers use meters. Billing Meter reading Payment processin g Service start/stop

D IAGRAM OF H OSPITAL D ATABASE treatment symptons monitoring Diagnosis service start/stop Entities: patients, providers, treatments, diagnosis, symptons. Relationship: patients have symptons, provider prescibes treatments, provider make diagnosis

R ELATIONAL D ATABASE D ESIGN It is very likely that when Database application is developed and is being used, a user do more than just access the information. It is common to find out that an application developer is involved in the design of a database. Even if a developer is not responsible for constructing the database, knowing what makes a good database design can help come up with better strategies for accessing that data. So, an understanding of database design is important to a professional database designer and developer.

D ATABASE D ESIGN CONTD. A well design database structure for database makes a lot of difference between creating a successful database application and the one that is not successful. A poor design would cause problems of performance, integrity, and functionality limitations, which the best code can not do anything about. A database is said to be of good design when it is efficient, flexible, and fast enough to handle many users.

D ATABASE D ESIGN Database could be designed either by * Use of wizards tools or *Designing following the basic rules and guidelines. The starting points for an effective database are always the same: Understand what are the goals for the business in developing the application Determine what information and processes are needed to meet these goals. These lead to what we call The Conceptual Design.

C ONCEPTUAL AND L OGICAL D ESIGN There are two levels of database design namely: Conceptual design and Logical Database Design For example : Considering designing a database application for a Music Store. The owner of the store has several music stores and is planning to expand still further to a level where he/she wants to keep accurate records of all inventory in the various stores. In broad term, we could identity the following goals that our database design must enable and facilitate in this scenario:

E NTITIES, A TTRIBUTES, AND V ALUES Save information regarding all recordings stocked by his/her stores, with a mechanism fro flexibility searching this data, say by song, title, artist, or album name. Keep accurate track of inventories in any store. Store information about customer orders so that she can accurately track the progress of these orders. Store information about customers so that she/he can inform them when an order is available. The highlighted words above reflect most significant

E NTITIES, A TTRIBUTE, AND V ALUES pieces of information required for the business. And are referred to as the entities in the system. An entity represents some object in reality, such as a person, or thing. Entities, as objects represent a class of things. For example, in a customer entity, then Each instance of that object will represent a specific Customer. Each instance of the entity customer will have identical attributes that define the meaning of that entity e.g

E NTITIES, A TTRIBUTES, V ALUES Customer First Name Customer Last Name Postal Address Address Phone Number Each of these attributes will store values, and these values would be different from one customer instance to another.

C ONCEPTUAL D ESIGN The goal of the above exercise is to come up with a meaningful representation of the system, with various entities identified and an understanding of what services those portions will provide. It is worthy of note to observe that Conceptual design will not describe how things are done, but rather what needs to be done.

L OGICAL D ATABASE D ESIGN In Logical Database Design, we need not to concentrate on what needs to be done, but how things are done in a system. Logical design will be a very detailed specification of all entities. A logical design has to include more than just what was considered in the conceptual design. It has to include interaction between entities. Part of logical design efforts is to determine some of the entities that are required; how these entities would coexist and interact. This will lead us to drawing an ER diagram (Entity Relationship diagram).

R EFERENCES Kevin,M., Todd, Lauinger, John, C. etal.,: Beginning Java Databases.Wrox Press Limited Neil Mathew and Richard Stones: Beginning Databases with MySql. Wrox Press Limited. 2002