Top Banner
COMPUTING FOR BUSINESS AND ECONOMICS-III
33

COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Jan 11, 2016

Download

Documents

Jack Robinson
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: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

COMPUTING FOR BUSINESS AND ECONOMICS-III

Page 2: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Lecture no.6

COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010

Page 3: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Chapter no. 6

Foundations of Business Intelligence: Databases and Information Management

Page 4: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Learning Objectives

• Describe basic file organization concepts and the problems of managing data resources in a traditional file environment.

• Describe the principles of a database management system and the features of a relational database.

• Apply important database design principles.

Page 5: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Learning Objectives

• Evaluate tools and technologies for providing information from databases to improve business performance and decision making.

• Assess the role of information policy, data administration, and data quality assurance in the management of organizational data resources.

Page 6: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Organizing Data In a Traditional File Environment

• An effective Information System provides users with – Accurate – Timely – Relevant Information

This makes data management important.

Page 7: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

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

Page 8: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

The 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.

Page 9: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

File Organization Terms and Concepts

• The data hierarchy is– Bit – Byte – Field – Record – Entity – Attribute – File – Data base

Page 10: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Bit

• Bit represents the smallest unit of data a computer can handle.

• Computer input language or binary language.• 0, 1

Page 11: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Bit

Bit 0 or 1

Page 12: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Byte

• A group of bits called a byte.• 8 bits make one byte.• Ascii or binary code• It can be any number or symbol.

Page 13: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Byte

Byte 0100 1001 (letter 1 in ASCII)

Page 14: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Field

• A grouping of characters into a word, a group of words or a complete number (such as a person’s name or age) is called a field.

Page 15: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Field

Field IS 101 (Course Field)

Page 16: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Record

• A group of related fields, such as student’s name, the course taken, the date, the grade, comprises a Record.

Page 17: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Record Record Student_ID course date grade

39044 IS 101 F08 B+

Page 18: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

File

• A group of records of the same type is called a file.

• Multiple tables can make file• The records could constitute a student course

file.

Page 19: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

File Record Student_ID course date grade

39044 IS 101 F08 B+

59432 IS 101 F08 A+ 64029 IS 101 F08 C

Page 20: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Database

• A group of related files makes up a database. • The student’s course file could be grouped

with files on students’ personal histories and financial backgrounds to create a student database.

Page 21: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Database

Course file

Personal file

Financial file

Page 22: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Entity

• A record describes an entity.

• An entity is a person, place or thing or event on which we store and maintain information.

Page 23: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Attribute

• Each characteristic or quality describing a particular entity is called an Attribute.

• For example, student_id, course, date and grade are attributes of the entity course.

Page 24: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Problems With the Traditional File Environment (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:• When changes in program requires changes to data accessed

by program• Lack of flexibility• Poor security• Lack of data sharing and availability

Page 25: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Traditional File Processing

The use of a traditional approach to file processing encourages each functional area in a corporation to develop specialized applications and files. Each application requires a unique data file that is likely to be a subset of the master file. These subsets of the master file lead to data redundancy and inconsistency, processing inflexibility, and wasted storage resources.

Page 26: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

The Database Approach to Data Management

• 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

Page 27: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Human Resources Database with Multiple Views

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.

Page 28: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Types of 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

Page 29: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Relational Database Tables

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.

Page 30: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Relational Database Tables (cont.)

Page 31: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Operations of 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

Page 32: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Three basic operations of RDBMS

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

Page 33: COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.

Object oriented DBMS

• Stores data and procedures as objects

• Capable of managing graphics, multimedia, Java applets

• Relatively slow compared with relational DBMS for processing large numbers of transactions

• Hybrid object-relational DBMS: Provide capabilities of both OODBMS and relational DBMS