Database Management Last Update 2014.03.19 2.0.1 Copyright 2013-2014 Kenneth M. Chipps Ph.D. www.chipps.com 1.

Slides:



Advertisements
Similar presentations
C6 Databases.
Advertisements

Lecture-7/ T. Nouf Almujally
By: Mr Hashem Alaidaros MIS 211 Lecture 4 Title: Data Base Management System.
The database approach to data management provides significant advantages over the traditional file-based approach Define general data management concepts.
Management Information Systems, Sixth Edition
5.1 © 2009 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Managing Data Resources
Managing Data Resources
Chapter 3 Database Management
7.1 © 2006 by Prentice Hall 7 Chapter Managing Data Resources.
ORGANIZING DATA IN A TRADITIONAL FILE ENVIRONMENT
Organizing Data & Information
Managing data Resources:
Managing Data Resources
Information Technology in Organizations
SESSION 7 MANAGING DATA DATARESOURCES. File Organization Terms and Concepts Field: Group of words or a complete number Record: Group of related fields.
Managing Data Resources. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits that represents a single.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Chapter 3 Foundations of Business Intelligence: Databases and Information Management.
5.1 © Copyright © 2011 Pearson Education, Inc. publishing as Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
6.1 © 2007 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
5.1 © Copyright © 2011 Pearson Education, Inc. publishing as Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Intro to MIS – MGS351 Databases and Data Warehouses Chapter 3.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
Essentials of Management Information Systems, 6e Chapter 7 Managing Data Resources 7.1 © 2005 by Prentice Hall Managing Data Resources Chapter 7.
Chapter 5 Global Edition
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
7.1 Managing Data Resources Chapter 7 Essentials of Management Information Systems, 6e Chapter 7 Managing Data Resources © 2005 by Prentice Hall.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Management Information Systems MANAGING THE DIGITAL FIRM, 12 TH EDITION FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Chapter.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
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.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Exercise 1: Management Information Systems Database Management Systems by Md. Mahbubul Alam, PhD.
Data resource management
Managing Data Resources. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits that represents a single.
Foundations of Business Intelligence: Databases and Information Management.
Chapter 6.  Problems of managing Data Resources in a Traditional File Environment  Effective IS provides user with Accurate, timely and relevant information.
3/6: Data Management, pt. 2 Refresh your memory Relational Data Model
6-1 Copyright © 2013 Pearson Canada Inc. Databases and Information Management CHAPTER SIX.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
Fundamentals of Information Systems, Sixth Edition Chapter 3 Database Systems, Data Centers, and Business Intelligence.
6.1 © 2010 by Prentice Hall 4 Chapter Databases and Information Management Databases and Information Management.
© 2010 by Prentice Hall Foundations of Business Intelligence: Databases and Information Management Foundations of Business Intelligence: Databases and.
Data Resource Management Lecture 8. Traditional File Processing Data are organized, stored, and processed in independent files of data records In traditional.
Foundations of Business Intelligence: Databases and Information Management Chapter 6 VIDEO CASES Case 1a: City of Dubuque Uses Cloud Computing and Sensors.
McGraw-Hill/Irwin ©2008,The McGraw-Hill Companies, All Rights Reserved Chapter 5 Data Resource Management.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Managing Data Resources File Organization and databases for business information systems.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Copyright © 2013 Dorling Kindersley (India) Pvt. Ltd. Management Information Systems: Managing the Digital Firm, 12eAuthors: Kenneth C. Laudon and Jane.
Chapter 5 Foundations of Business Intelligence: Databases and Information Management.
Intro to MIS – MGS351 Databases and Data Warehouses
Databases and Information Management
Databases and Data Warehouses Chapter 3
Databases and Information Management
MANAGING DATA RESOURCES
Managing data Resources:
File Organization Terms & Concepts
Databases and Information Management
Databases and Information Management
Presentation transcript:

Database Management Last Update Copyright Kenneth M. Chipps Ph.D. 1

Sources Most of the material below on databases in general is copied from –Management Information Systems –12th Edition –Ken Laudon and Jane Laudon Copyright Kenneth M. Chipps Ph.D. 2

What is a Database A database is created when a computer system organizes data in a hierarchy that starts with bits and bytes and progresses to fields, records, and files In this representation Copyright Kenneth M. Chipps Ph.D. 3

A Database –A bit represents the smallest unit of data a computer can handle –A group of bits, called a byte, represents a single character, which can be a letter, a number, or another symbol –A grouping of characters into a word, a group of words, or a complete number is a field –A group of related fields, such as student name and the course taken is a record –A group of records of the same type is a file Copyright Kenneth M. Chipps Ph.D. 4

A Database Copyright Kenneth M. Chipps Ph.D. 5

Data Redundancy In most organizations, systems tend to grow independently without a company- wide plan Accounting, finance, manufacturing, human resources, and sales and marketing all develop their own systems and data files Copyright Kenneth M. Chipps Ph.D. 6

Data Redundancy Copyright Kenneth M. Chipps Ph.D. 7

Data Redundancy Data redundancy is the presence of duplicate data in multiple data files so that the same data are stored in more than place or location Data redundancy occurs when different groups in an organization independently collect the same piece of data and store it independently of each other Copyright Kenneth M. Chipps Ph.D. 8

Data Inconsistency Data redundancy wastes storage resources and also leads to data inconsistency, where the same attribute may have different values Copyright Kenneth M. Chipps Ph.D. 9

DBMS A DBMS - Database Management System permits an organization to centralize data, manage it more efficiently, and provide access to the stored data by application programs The DBMS acts as an interface between application programs and the physical data files Copyright Kenneth M. Chipps Ph.D. 10

DBMS When the application program calls for a data item, such as gross pay, the DBMS finds this item in the database and presents it to the application program Using traditional data files, the programmer would have to specify the size and format of each data element used in the program and then tell the computer where they were located Copyright Kenneth M. Chipps Ph.D. 11

DBMS The DBMS relieves the programmer or end user from the task of understanding where and how the data are actually stored by separating the logical and physical views of the data Copyright Kenneth M. Chipps Ph.D. 12

DBMS The logical view presents data as they would be perceived by end users or business specialists, whereas the physical view shows how data are actually organized and structured on physical storage media The database management software makes the physical database available for different logical views required by users Copyright Kenneth M. Chipps Ph.D. 13

DBMS For example, for the human resources database a benefits specialist might require a view consisting of the employee’s name, social security number, and health insurance coverage A payroll department member might need data such as the employee’s name, social security number, gross pay, and net pay Copyright Kenneth M. Chipps Ph.D. 14

DBMS The data for all these views are stored in a single database, where they can be more easily managed by the organization A DBMS reduces data redundancy and inconsistency by minimizing isolated files in which the same data are repeated Copyright Kenneth M. Chipps Ph.D. 15

DBMS Copyright Kenneth M. Chipps Ph.D. 16

Relational Database The most popular type of DBMS today for PCs as well as for larger computers is the relational database Relational databases represent data as two-dimensional tables called relations Tables may be referred to as files Each table contains data on an entity and its attributes Copyright Kenneth M. Chipps Ph.D. 17

Relational Database Microsoft Access is a relational DBMS for desktop systems, whereas DB2, Oracle Database, and Microsoft SQL Server are relational DBMS for large mainframes and midrange computers MySQL is a popular open-source DBMS, and Oracle Database Lite is a DBMS for small handheld computing devices Copyright Kenneth M. Chipps Ph.D. 18

Relational Database Let’s look at how a relational database organizes data about suppliers and parts Copyright Kenneth M. Chipps Ph.D. 19

Relational Database Copyright Kenneth M. Chipps Ph.D. 20

Relational Database The database has a separate table for the entity SUPPLIER and a table for the entity PART Each table consists of a grid of columns and rows of data Each individual element of data for each entity is stored as a separate field, and each field represents an attribute for that entity Copyright Kenneth M. Chipps Ph.D. 21

Relational Database The actual information about a single supplier that resides in a table is called a row Rows are commonly referred to as records, or in very technical terms, as tuples Data for the entity PART have their own separate table Copyright Kenneth M. Chipps Ph.D. 22

Relational Database The field for Supplier_Number in the SUPPLIER table uniquely identifies each record so that the record can be retrieved, updated, or sorted It is called a key field Each table in a relational database has one field that is designated as its primary key Copyright Kenneth M. Chipps Ph.D. 23

Relational Database This key field is the unique identifier for all the information in any row of the table and this primary key cannot be duplicated Copyright Kenneth M. Chipps Ph.D. 24

Relational Database Relational database tables can be combined easily to deliver data required by users, provided that any two tables share a common data element Suppose we wanted to find in this database the names of suppliers who could provide us with part number 137 or part number 150 Copyright Kenneth M. Chipps Ph.D. 25

Relational Database We would need information from two tables: the SUPPLIER table and the PART table Note that these two files have a shared data element: Supplier_Number In a relational database, three basic operations, are used to develop useful sets of data: select, join, and project Copyright Kenneth M. Chipps Ph.D. 26

Relational Database The select operation creates a subset consisting of all records in the file that meet stated criteria Select creates, in other words, a subset of rows that meet certain criteria Copyright Kenneth M. Chipps Ph.D. 27

Relational Database In our example, we want to select records rows from the PART table where the Part_Number equals 137 or 150 The join operation combines relational tables to provide the user with more information than is available in individual tables Copyright Kenneth M. Chipps Ph.D. 28

Relational Database In our example, we want to join the now- shortened PART table - only parts 137 or 150 will be presented - and the SUPPLIER table into a single new table Copyright Kenneth M. Chipps Ph.D. 29

Relational Database The project operation creates a subset consisting of columns in a table, permitting the user to create new tables that contain only the information required In our example, we want to extract from the new table only the following columns: Part_Number, Part_Name, Supplier_Number, and Supplier_Name Copyright Kenneth M. Chipps Ph.D. 30

Object Oriented Database Many applications today and in the future require databases that can store and retrieve not only structured numbers and characters but also drawings, images, photographs, voice, and full-motion video DBMSs designed for organizing structured data into rows and columns are not well suited to handling graphics-based or multimedia applications Copyright Kenneth M. Chipps Ph.D. 31

Object Oriented Database Object-oriented databases are better suited for this purpose An object-oriented DBMS stores the data and procedures that act on those data as objects that can be automatically retrieved and shared Copyright Kenneth M. Chipps Ph.D. 32

Object Oriented Database Object-oriented database management systems (OODBMS) are becoming popular because they can be used to manage the various multimedia components or Java applets used in Web applications, which typically integrate pieces of information from a variety of sources Copyright Kenneth M. Chipps Ph.D. 33

Object Oriented Database Although object-oriented databases can store more complex types of information than a relational DBMS, they are relatively slow compared with relational DBMS for processing large numbers of transactions Hybrid object-relational DBMS systems are now available to provide capabilities of both object-oriented and relational DBMS Copyright Kenneth M. Chipps Ph.D. 34

DBMS Capabilities A DBMS includes capabilities and tools for organizing, managing, and accessing the data in the database The most important are its data definition language, data dictionary, and data manipulation language DBMS have a data definition capability to specify the structure of the content of the database Copyright Kenneth M. Chipps Ph.D. 35

DBMS Capabilities It would be used to create database tables and to define the characteristics of the fields in each table This information about the database would be documented in a data dictionary A data dictionary is an automated or manual file that stores definitions of data elements and their characteristics Copyright Kenneth M. Chipps Ph.D. 36

DBMS Capabilities A DBMS includes tools for accessing and manipulating information in databases Most DBMS have a specialized language called a data manipulation language that is used to add, change, delete, and retrieve the data in the database Copyright Kenneth M. Chipps Ph.D. 37

DBMS Capabilities This language contains commands that permit end users and programming specialists to extract data from the database to satisfy information requests and develop applications The most prominent data manipulation language today is Structured Query Language, or SQL Copyright Kenneth M. Chipps Ph.D. 38

Designing Databases To create a database, you must understand the relationships among the data, the type of data that will be maintained in the database, how the data will be used, and how the organization will need to change to manage data from a company-wide perspective The database requires both a conceptual design and a physical design Copyright Kenneth M. Chipps Ph.D. 39

Designing Databases The conceptual, or logical, design of a database is an abstract model of the database from a business perspective, whereas the physical design shows how the database is actually arranged on direct-access storage devices Copyright Kenneth M. Chipps Ph.D. 40

Designing Databases The design process identifies relationships among data elements and the most efficient way of grouping data elements together to meet business information requirements The process also identifies redundant data elements and the groupings of data elements required for specific application programs Copyright Kenneth M. Chipps Ph.D. 41

Designing Databases Groups of data are organized, refined, and streamlined until an overall logical view of the relationships among all the data in the database emerges Copyright Kenneth M. Chipps Ph.D. 42

Normalization To use a relational database model effectively, complex groupings of data must be streamlined to minimize redundant data elements and awkward many-to-many relationships The process of creating small, stable, yet flexible and adaptive data structures from complex groups of data is called normalization Copyright Kenneth M. Chipps Ph.D. 43

Before Normalization Copyright Kenneth M. Chipps Ph.D. 44

After Normalization Copyright Kenneth M. Chipps Ph.D. 45

Normalization Database designers document their data model with an entity-relationship diagram This diagram illustrates the relationship between the entities such as SUPPLIER, PART, LINE_ITEM, and ORDER The boxes represent entities The lines connecting the boxes represent relationships Copyright Kenneth M. Chipps Ph.D. 46

Normalization A line connecting two entities that ends in two short marks designates a one-to-one relationship A line connecting two entities that ends with a crow’s foot topped by a short mark indicates a one-to-many relationship The figures show that one ORDER can contain many LINE_ITEMs Copyright Kenneth M. Chipps Ph.D. 47

Normalization A PART can be ordered many times and appear many times as a line item in a single order Each PART can have only one SUPPLIER, but many PARTs can be provided by the same SUPPLIER Copyright Kenneth M. Chipps Ph.D. 48

Data Warehouse A data warehouse is a database that stores current and historical data of potential interest to decision makers throughout the company The data originate in many core operational transaction systems, such as systems for sales, customer accounts, and manufacturing, and may include data from Web site transactions Copyright Kenneth M. Chipps Ph.D. 49

Data Warehouse The data warehouse consolidates and standardizes information from different operational databases so that the information can be used across the enterprise for management analysis and decision making The data warehouse makes the data available for anyone to access as needed, but it cannot be altered Copyright Kenneth M. Chipps Ph.D. 50

Data Warehouse A data warehouse system also provides a range of ad hoc and standardized query tools, analytical tools, and graphical reporting facilities Many firms use intranet portals to make the data warehouse information widely available throughout the firm Copyright Kenneth M. Chipps Ph.D. 51

OLAP OLAP – Online Analytical Processing supports multidimensional data analysis, enabling users to view the same data in different ways using multiple dimensions Each aspect of information—product, pricing, cost, region, or time period— represents a different dimension Copyright Kenneth M. Chipps Ph.D. 52

OLAP So, a product manager could use a multidimensional data analysis tool to learn how many washers were sold in the East in June, how that compares with the previous month and the previous June, and how it compares with the sales forecast Copyright Kenneth M. Chipps Ph.D. 53

OLAP OLAP enables users to obtain online answers to ad hoc questions such as these in a fairly rapid amount of time, even when the data are stored in very large databases, such as sales figures for multiple years Copyright Kenneth M. Chipps Ph.D. 54

Data Mining Data mining is more discovery-driven Data mining provides insights into corporate data that cannot be obtained with OLAP by finding hidden patterns and relationships in large databases and inferring rules from them to predict future behavior Copyright Kenneth M. Chipps Ph.D. 55