GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Chapter 10: Designing Databases
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
C6 Databases.
Physical DataBase Design
Management Information Systems, Sixth Edition
Relational Databases Chapter 4.
Copyright Irwin/McGraw-Hill Database Design Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
9/26/2000SIMS 257: Database Management Physical Database Design University of California, Berkeley School of Information Management and Systems SIMS 257:
14.1 Dr. Honghui Deng Assistant Professor MIS Department UNLV MIS 370 System Analysis Theory.
IS 4420 Database Fundamentals Chapter 6: Physical Database Design and Performance Leon Chen.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
CS 432 Object-Oriented Analysis and Design
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Database Design.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Modern Systems Analysis and Design Third Edition
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Conventional Files Versus the Database
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Copyright Irwin/McGraw-Hill Database Design Introduction  The chapter will address the following questions:  What are the similarities and differences.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Database Design.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Database Design. Database Concepts for the Systems Analyst  Fields  Fields are common to both files and databases.  A field is the implementation.
1 Systems Analysis & Design IS 431: Lecture 9 CSUN Information Systems Database Design.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
McGraw-Hill/Irwin© 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 13 Database Design.
Database Technical Session By: Prof. Adarsh Patel.
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
311: Management Information Systems Database Systems Chapter 3.
Lecture 12 Designing Databases 12.1 COSC4406: Software Engineering.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
SQL SQL Server : Overview SQL : Overview Types of SQL Database : Creation Tables : Creation & Manipulation Data : Creation & Manipulation Data : Retrieving.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
14-1 Goals of Database Design A database should provide for efficient storage, update, and retrieval of data. A database should be reliable—the stored.
Announcements. Data Management Chapter 12 Traditional File Approach  Structure Field  Record  File  Fixed All records have common fields, and a field.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
IS 325 Notes for Wednesday August 28, Data is the Core of the Enterprise.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Midterm Review Information System Design. Topics Covered Chpt 8: Process Modeling Chpt 9: Feasibility Analysis Chpt 10: Systems Design Chpt 12: Database.
Advanced Database CS-426 Week 1 - Introduction. Database Management System DBMS contains information about a particular enterprise Collection of interrelated.
Data resource management
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Chapter 2 Relational Database Design and Normalization August
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Database Design.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Database Design.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Database Design.
Copyright Irwin/McGraw-Hill Database Design Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Managing Data Resources File Organization and databases for business information systems.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Database Design.
Chapter 4 Relational Databases
Databases and Data Warehouses Chapter 3
What is Database Administration
Translation of ER-diagram into Relational Schema
Chapter 14 Database Design Chapter 14 – Database Design.
MANAGING DATA RESOURCES
Data Model.
Chapter 11 Managing Databases with SQL Server 2000
Presentation transcript:

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION EFFECTIVE DATABASE DESIGN for BEGINNERS

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Files versus Databases A file is a collection of records. A database is a collection of interrelated files (meaning that records in one file are physically related to records in another file).

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Files versus Database File Information System Database (consolidated & integrated data from files) Information System Information System Information System Information System

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Pros and Cons of Conventional Files Pros Easy to design because of their single-application focus Excellent performance due to optimized organization for a single application Cons Harder to adapt to sharing across applications Harder to adapt to new requirements Need to duplicate attributes in several files.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Pros and Cons of Databases Pros Ability to share data across applications Less, and controlled redundancy (total non- redundancy is not achievable) Data independence from applications increases adaptability Superior scalability Cons Harder to adapt to sharing across applications Harder to adapt to new requirements Need to duplicate attributes in several files Somewhat slower performance Higher development costs Greater data vulnerability

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION A field is the physical implementation of a data attribute or property. They are the smallest unit of meaningful data. Fields A primary key is a field whose values identify one and only one record in a table. A secondary key is an alternate identifier for a record. A foreign key is a pointer to a record in a different table. A descriptive field is any other (non-key) field that stores business data.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Records A record is a collection of fields or columns arranged in a predefined format. –Fixed-length record structures –Variable-length record structures A blocking factor is the number of logical records included in a single read or write operation (from the computer’s perspective).

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Files A file is the set of all occurrences of a given record structure. A table is the relational database equivalent of a file. –Types Master files Transaction files Document files Archival files Table lookup files Audit files –File organization –File access

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Data Architecture A business’s data architecture defines how that business will develop and use files and databases to store all of the organization’s data; the file and database technology to be used; and the administrative structure set up to manage the data resource. Data is stored in some combination of: –Conventional files –Operational databases (also called transactional databases) –Data warehouses To support data mining and analytics –Personal databases –Work group databases

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION A Modern Data Architecture

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Administrators A data or database administrator (DBA) is responsible for the data planning, definition, architecture, and management. One or more database administrators are responsible for the database selection, design, installation, creation, security, backup and recovery, and performance tuning.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Database Architecture Database architecture refers to the database technology including the database engine, database utilities, CASE tools, and database development tools. A database management system (DBMS) is a specialized software is used to create, access, control, and manage the database. The core of the DBMS is a database engine. –A data definition language (DDL) is that part of the engine used to physically define tables, fields, and structural relationships. –A data manipulation language (DML) is that part of the engine used to insert, update, read, and delete records in the database, and navigate between different files (tables) in the database.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Typical DBMS Architecture

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Relational Databases Relational databases implement stored data in a series of two-dimensional tables that are “related” to one another via foreign keys. –The physical data model is called a schema –The DDL and DML for a relational database is called SQL (Structured Query Language). –Triggers are programs embedded within a table that are automatically invoked by updates to another table. –Stored procedures are programs embedded within a table that can be called from an application program.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Logical Data Model

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Physical Data Model (Relational Schema)

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Data Normalization (also see Chapter 8) An logical entity (or physical table) is in first normal form if there are no attributes (fields) that can have more than one value for a single instance (record). An logical entity (or physical table) is in second normal form if it is already in first normal form and if the values of all non-primary key attributes are dependent on the full primary key. An logical entity (or physical table) is in third normal form if it is already in second normal form and if the values of all non-primary key attributes are not dependent on other non-primary key attributes.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Goals of Database Design A database should provide for efficient storage, update, and fast retrieval of data. A database should be reliable—the stored data should have high integrity and promote user trust in that data. A database should be adaptable and scalable to new and unforeseen requirements and applications.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Data and Database Models An entity relationship diagram is the logical model of the data requirements. A database schema is the physical model or blueprint of the planned implementation of the logical model. –Also called a physical data model

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Sample Physical Data Types Logical Data Type to be stored in field) Fixed length character data (use for fields with relatively fixed length character data) Variable length character data (use for fields that require character data but for which size varies greatly--such as ADDRESS) Very long character data (use for long descriptions and notes--usually no more than one such field per record) Integer number Decimal number Physical Data Type Microsoft Access TEXT MEMO NUMBER NUMER Physical Data Type Oracle CHAR (size) VARCHAR (max size) LONG VARCHAR or LONG VARCHAR2 INTEGER (size) or NUMBER (size) DECIMAL (size, decimal places) or NUMERIC (size, decimal places) or NUMBER Physical Data Type Microsoft SQL Server CHAR (size) or character (size) VARCHAR (max size) or character varying (max size) TEXT INT (size) or integer or smallinteger or tinuinteger DECIMAL (size, decimal places) or NUMERIC (size, decimal places)

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Sample Physical Data Types (concluded) Logical Data Type to be stored in field) Financial Number Date (with time) Current time (use to store the data and time from the computer’s system clock) Yes or No; or True or False Image Hyperlink Can designer define new data types? Physical Data Type Microsoft Access CURRENCY DATE/TIME not supported YES/NO OLE OBJECT HYPERLINK NO Physical Data Type Oracle see decimal number DATE not supported use CHAR(1) and set a yes or no domain LONGRAW RAW YES Physical Data Type Microsoft SQL Server MONEY DATETIME or SMALLDATETIME Depending on precision needed TIMESTAMP BIT IMAGE VARBINARY YES

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION A Method for Database Design 1.Review the logical data model. 2.Create a table for each entity. 3.Create fields for each attribute. 4.Create an index for each primary and secondary key. 5.Create an index for each sub-setting criterion. 6.Designate foreign keys for relationships. 7.Define data types, sizes, null settings, domains, and defaults for each attribute. 8.Create or combine tables to implement super type / subtype structures. 9.Evaluate and specify referential integrity constraints.

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Database Integrity Key integrity Domain integrity Referential integrity A referential integrity error exists when a foreign key value in one table has no matching primary key value in the related table. –No restriction –Delete: cascade –Delete: restrict –Delete: set null

GLOBEX INFOTEK Copyright © 2013 Dr. Emelda Ntinglet-DavisSYSTEMS ANALYSIS AND DESIGN METHODSINTRODUCTORY SESSION Database Distribution and Replication Data distribution analysis establishes which business locations need access to which logical data entities and attributes. –The analysis drives distribution decisions: Centralization Horizontal distribution (also called partitioning) Vertical distribution (also called partitioning) Replication