Top Banner
Databases and Databases and Information Information Management Management By: Harleen Mahajan
26
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Dbms

Databases and Databases and Information Information

ManagementManagement

Databases and Databases and Information Information

ManagementManagementBy: Harleen Mahajan

Page 2: Dbms

Organizing Data in a Traditional File Environment

• File organization concepts• Computer system uses hierarchies

• Field: Group of characters• Record: Group of related fields• File: Group of records of same type • Database: Group of related files

• Record: Describes an entity• Entity: Person, place, thing on which we store

information• Attribute: Each characteristic, or quality, describing entity

• E.g. Attributes Date or Grade belong to entity COURSE

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Page 3: Dbms

The Data HierarchyThe Data Hierarchy

A computer system organizes data in a hierarchy that starts with the bit, which represents either a 0 or a 1. Bits can be grouped to form a byte to represent one character, number, or symbol. Bytes can be grouped to form a field, and related fields can be grouped to form a record. Related records can be collected to form a file, and related files can be organized into a database.

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Organizing Data in a Traditional File Environment

Page 4: Dbms

Organizing Data in a Traditional File Environment

• Problems with the traditional file processing (files maintained separately by different departments)• Data redundancy and inconsistency

• Data redundancy: Presence of duplicate data in multiple files

• Data inconsistency: Same attribute has different values

• Program-data dependence:• Lack of flexibility• Poor security• Lack of data sharing and availability

Page 5: Dbms

• Database: • Collection of data organized to serve many applications by

centralizing data and controlling redundant data

• Database management system: • Interfaces between application programs and physical data files

• Separates logical and physical views of data

• Solves problems of traditional file environment• Controls redundancy

• Eliminated inconsistency

• Uncouples programs and data

• Enables central management and security

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Page 6: Dbms

6.6 © 2007 by Prentice Hall

Components of a DBS cont.6

DATABASE

DATA DICTIONARY/ DIRECTORY

Application Program

Application Program

Application Program

DBMS

ComputerTerminals

PRINTER

Analyst

User

Page 7: Dbms

6.7 © 2007 by Prentice Hall

Components of a Database System

Four components: People, H/W, S/W, DataPractitioners (analysts and database

designers) in consultation with users identify data needs and design database structures to accommodate these needs.

The database structures are specified to the DBMS through the data dictionary.

7

Page 8: Dbms

6.8 © 2007 by Prentice Hall

Components of a DBS cont.

Users enter data into the system by following specified procedures.

The entered data are maintained on hardware media such as disks and tapes.

Application programmes that access the database are written by practitioners and users to be run on computers.

8

Page 9: Dbms

6.9 © 2007 by Prentice Hall

Database System: SoftwareA database software includes two types of

software General-purpose database management software

like operating system. Application software that uses DBMS facilities to

manipulate the database to achieve a specific business function, such as providing reports or documents, which can be used by users.

9

Page 10: Dbms

6.10 © 2007 by Prentice Hall

Database System: Software cont.

Application software is generally written standard programming language such as C, or it may be written in a language (commonly called a fourth-generation language) supplied with the DBMS.

These programs utilise the command language of the DBMS and make use of the information contained in the data dictionary.

10

Page 11: Dbms

6.11 © 2007 by Prentice Hall

Database System: Software cont.

User Interface Language, menus and other facilities by which

users interact with various system components, such as application programs, the DBMS

Computer-aided software engineering (CASE) tools Automated tools used to design databases and

application programs.

11

Page 12: Dbms

6.12 © 2007 by Prentice Hall

Data Dictionary/Directory (Repository)A subsystem that keeps track of the

definitions of all data items in the database. relationships that exists between various data

structures. indexes that are used to access data quickly. screen and report format definitions that may be

used by various application programs.

12

Page 13: Dbms

6.13 © 2007 by Prentice Hall

Data DictionaryDefinitions of data items in the database

includes: Elementary-level data items (fields), group and record-level data structures, and files or relational tables.

13

Page 14: Dbms

14

• Data that describe the properties or characteristics of other data.

• Some of these properties include data definitions, data structures and rules or constraints. Item name, the data type, length, minimum and maximum allowable values (where appropriate) and a brief description of each data item.

• Metadata allow database designers and users to understand what data exist, what the data mean.

• Data without clear meaning can be confusing, misinterpreted or erroneous.

Metadata

Page 15: Dbms

15

E.g. Data Item ValueName Type Length Min Max DescriptionName Character 30 Employee

NameID Number 9 Employee No.Dept Character 10 Dept. No.Age Integer 2 18 60 Employee Age

Name Character 15 Dept. NameManager Number 9 Mgr. Emp. No.

Employee No. (ID) uniqueManager is an employee of the organisation

Metadata

Page 16: Dbms

6.16 © 2007 by Prentice Hall

Database System: People

Two different types of people (users and practitioners) are concerned with the database.

Users who need information from the database to

carry out their primary business responsibility

e.g. Executives, managers, staff, clerical personnel

16

Page 17: Dbms

6.17 © 2007 by Prentice Hall

Database System: People cont.

Practitioners

people responsible for the database system and its associated application software.

e.g. Database administrators, analysts, programmers, database and system designers, information systems managers.

17

Page 18: Dbms

6.18 © 2007 by Prentice Hall

Components of a Database System

Four components: People, H/W, S/W, DataPractitioners (analysts and database

designers) in consultation with users identify data needs and design database structures to accommodate these needs.

The database structures are specified to the DBMS through the data dictionary.

18

Page 19: Dbms

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Figure 6-3

A single human resources database provides many different views of data, depending on the information requirements of the user. Illustrated here are two possible views, one of interest to a benefits specialist and one of interest to a member of the company’s payroll department.

Human Resources Database with Multiple ViewsHuman Resources Database with Multiple Views

Page 20: Dbms

• Relational DBMS• Represent data as two-dimensional tables called relations or files

• Each table contains data on entity and attributes

• Table: Grid of columns and rows• Rows (tuples): Records for different entities

• Fields (columns): Represents attribute for entity

• Key field: Field used to uniquely identify each record

• Primary key: Field in table used for key fields

• Foreign key: Primary key used in second table as look-up field to identify records from original table

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Page 21: Dbms

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Figure 6-4A

A relational database organizes data in the form of two-dimensional tables. Illustrated here are tables for the entities SUPPLIER and PART showing how they represent each entity and its attributes. Supplier_Number is a primary key for the SUPPLIER table and a foreign key for the PART table.

Relational Database TablesRelational Database Tables

Page 22: Dbms

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Figure 6-4B

Relational Database Tables (cont.)Relational Database Tables (cont.)

Page 23: Dbms

• Is a language used to Operate on a Relational DBMS: Three basic operations used to develop useful sets of data

• SELECT: Creates subset of data of all records that meet stated criteria

• JOIN: Combines relational tables to provide user with more information than available in individual tables

• PROJECT: Creates subset of columns in table, creating tables with only the information specified

SQL

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Page 24: Dbms

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Figure 6-5

The select, project, and join operations enable data from two different tables to be combined and only selected attributes to be displayed.

The Three Basic Operations of a Relational DBMSThe Three Basic Operations of a Relational DBMS

Page 25: Dbms

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Figure 6-6

The sample data dictionary report for a human resources database provides helpful information, such as the size of the data element, which programs and reports use it, and which group in the organizationis the owner responsible for maintaining it.

Sample Data Dictionary ReportSample Data Dictionary Report

Page 26: Dbms

The Database Approach to Data Management

Management Information SystemsManagement Information SystemsChapter 6 Foundations of Business Intelligence: Databases Chapter 6 Foundations of Business Intelligence: Databases

and Information Managementand Information Management

Figure 6-7

Illustrated here are the SQL statements for a query to select suppliers for parts 137 or 150. They produce a list with the same results as Figure 6-5.

Example of an SQL QueryExample of an SQL Query