Database Design Concepts Info1408

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

Chapter 2.1 V3.1 Napier University Dr Gordon Russell
ICDL Software Applications - Database Concepts. Unit 6 Data and Data Representation Database Concepts –File Structure –Relationships Database Design –Data.
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Database Systems: Design, Implementation, and Management Tenth Edition
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Systems Development Life Cycle
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
Modeling the Data: Conceptual and Logical Data Modeling
System Analysis - Data Modeling
Agenda for Week 1/31 & 2/2 Learn about database design
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Entity/Relationship Modelling
APPENDIX C DESIGNING DATABASES
Data Modeling 1 Yong Choi School of Business CSUB.
Entity-Relationship Design
Yong Choi School of Business CSUB
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
ระบบฐานข้อมูลขั้นสูง (Advanced Database Systems) Lecturer AJ. Suwan Janin Phone:
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Database Systems: Design, Implementation, and Management Ninth Edition
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Concepts and Terminology Introduction to Database.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
HNDComputing – DeMontfort University  DeMontfort University 2011 Database Fundamentals wk2 Database Design ConceptsDatabase Design Concepts Database Design.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
Database Design Principles – Lecture 3
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Database Fundamentals Lecture 4 Useful website for MySQL download language.com/workshops/Default.asp ?workshop=21.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
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.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Database Design – Lecture 4 Conceptual Data Modeling.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
* 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.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
DBMS ER model-2 Week 6-7.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Copyright © it’sLearning 365. All rights reserved. DATABASE CONCEPTS Understanding Databases Start …
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
Databases Chapter 16.
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Database Design – Lecture 4
Database Design Chapters 17 and 18.
Review of Week 1 Database DBMS File systems vs. database systems
Database Design Hacettepe University
Entity-Relationship Design
Information system analysis and design
Presentation transcript:

Database Design Concepts Info1408 Week 5 Database Components

Objectives Two basic concepts to explore: Conceptual Design Components Logical/Physical Design Components

Technology independent- ie will work on any database software Conceptual Design Technology independent- ie will work on any database software An activity carried out by a

Logical Design Process of translating (mapping) the conceptual design to fit the chosen database model (relational, object oriented etc.) An activity carried out by a

Physical Design Mapping the logical design to one or more physical designs Tailored to the particular DBMS being used and the computer system on which the database will run. An activity usually performed by a

Entities Something of interest to the activity we are trying to model Could be a person, place, thing, concept about which data is collected Just about anything that can be named with a noun can be an entity …we should restrict ourselves to things of interest to the users of our database.

A very common entity that is found in many business oriented databases is the Conceptually this represents all the customers in the database ……… an individual customer is known as an of the entity CUSTOMER

Attributes ‘An attribute is a unit fact that characterises or describes an entity in some way’ In other words properties Attributes can not be broken down into smaller units in any meaningful way … they are the smallest unit of information that is stored within the database Examples could be name, address, telephone number of the customer

Unique identifiers An entity will be described using the attributes. For example a student could have name and results. The problem is we need to be identify one student from another. Most students can be identified form one another by their name however sometimes two students can have the same name. How do I make sure I don’t award marks to the wrong student?

I do this by adding an extra attribute known as the key field. This is a unique identifier Each student will have a different value for this attribute ie it is unique What is your unique identifier ? Remember these unique identifiers are often invented so are often not a property the subject would recognise.

Examples of unique identifiers National insurance number Passport number Membership number Order number Vehicle registration number Bank account number Remember that only one instance of the entity will have each individual value ie it is unique.

An entity is composed of an example: the customer entity can be represented as …. CUSTOMER_ID COMPANY_NAME ADDRESS CITY COUNTRY PHONE Unique identifier attributes

Relationships Relationships are the among entities Relationships are represented at the conceptual level by lines joining entities together. Each end of the relationship line shows the maximum cardinality of the relationship (maximum number of instances of one entity that can be associated with the entity at the other end of the relationship line)

Entity-Relationship modelling It is important to realise that there are a number of different ways of representing the details of relationships and cardinality For the purposes of this module we want to explore the underpinning concepts involved … we will use one notational style …. You will come across different styles as you refer to different text books. We will cover this later in the course

Business Rules Very important …… a policy, procedure or standard that an organisation has adopted. These business practices must be reflected in the construction and functioning of the database They may impose on the database design

Business Rules It is important to identify business rules during investigation of the data requirements. Business rules will vary from organisation to organisation. It is important to identify the business rules for each relationship.

Examples of Business Rules A student can be enrolled on one course only- may be appropriate at a university A student can be enrolled on more than one course – May be appropriate in a college. A customer can place many orders. An order is for one customer

Logical Physical (1) Tables Primary unit of storage in the relational model is the table A two dimensional structure composed of rows and columns Each row represents one occurrence (instance) of the entity ( or record) Each column represents one attribute for that entity.

For each attribute you must identify it’s properties. Type- this can be TEXT NUMBER DATE/TIME CURENCY Size- how big Is it mandatory or optional

Summary You should be able to define the following terms Entities Attributes Relationships Business rules Tables Columns Data types Constraints

References Database Demystified by Andy Oppel