MIS chap # 6....

33
MANAGEMENT INFORMATION SYSTEM Chapter 6 Database Management Systems 1

Transcript of MIS chap # 6....

Page 1: MIS chap # 6....

MANAGEMENT INFORMATION SYSTEM

Chapter 6Database Management Systems

1

Page 2: MIS chap # 6....

OVERVIEW

Spreadsheet as a simple DatabaseTables Database StructureTypes of DatabasesRelational DatabasesIntroduction to Microsoft AccessCreating Table Using Microsoft

AccessMicrosoft Access ObjectsQuery, Form, Reports

2

Page 3: MIS chap # 6....

3

THE DATA HIERARCHY

Data field is the smallest unit of data.

Record is a collection of related data fields.

File is a collection of related records.

Database is a collection of related files. General definition Restrictive definition

Page 4: MIS chap # 6....

4

DATABASE Table of rows and columns can be

represented in a spreadsheet.Relational database structure

is conceptually similar to a collection of related tables.

Flat file is a table that does not have repeating

columns; 1st normal form.Normalization

is a formal process for eliminating redundant data fields while preserving the ability of the database to add, delete, and modify records without causing errors.

Page 5: MIS chap # 6....

5

SPREADSHEET EXAMPLE OF COURSE TABLE

Page 6: MIS chap # 6....

6

DATABASE (CONT’D)Key

in a table is a field (or combination of fields) that contain a value that uniquely identifies each record in the table.

Candidate key is a field that uniquely identifies each

table row but is not the chosen key. Relating tables is done through

sharing a common field and the value of the field determines which rows in the tables are logically joined.

Page 7: MIS chap # 6....

7

DATABASE STRUCTURES

Database management system (DBMS) is a software application that stores the

structure of the database, the data itself, relationships among data in the database, and forms and reports pertaining to the database.

Self-describing set of related data.

Page 8: MIS chap # 6....

8

HIERARCHICAL DATABASE STRUCTURES

Hierarchical is formed by data groups, subgroups, and further

subgroups; like branches on a tree. Worked well with TPSs Utilized computer resources efficiently

Network allows retrieval of specific records; allows a

given record to point to any other record in the database.

Page 9: MIS chap # 6....

9

DATABASE STRUCTURES (CONT’D)

Relational is when the relationship between tables are

implicit. Physical relationship

is when the database structure (hierarchical, network) rely on storage addresses.

Implicit relationship is when the database structure (relational) can

be implied from the data.

Page 10: MIS chap # 6....

10

A RELATIONAL DATABASE EXAMPLE

The database is implemented in Microsoft Access 2002 (also known as Access XP).

Databases break information into multiple tables because if information were stored in a single table, many data field values would be duplicated.

Page 11: MIS chap # 6....

11

THE SCHEDULE DATABASE The example is implemented on Microsoft Access

DBMS but would be similar on any relational DBMS product.

The COURSE table in Access (Figure 6.4) is a list of data field values. The table itself had to be defined in Access before values were entered into the data fields.

Figure 6.5 shows the definition of the Code field. Figure 6.6 illustrates that Abbreviation field

values will be looked up from a list of values in the DEPARTMENT table.

Table 6.7 shows a single table of course and department fields before they were separated into different tables.

Page 12: MIS chap # 6....

12

FIGURE 6.4 THE COURSE TABLE IN ACCESS

Page 13: MIS chap # 6....

13

FIGURE 6.5 DEFINING THE CODE FIELD

Page 14: MIS chap # 6....

14

FIGURE 6.6 LOOK-UP VALUES

Page 15: MIS chap # 6....

15

UN-SEPERATED TABLE OF COURSE AND DEPARTMENT DATA FIELDS

Page 16: MIS chap # 6....

16

FIGURE 6.7 ACCESS VIEW OF TABLES, FIELDS, AND THEIR RELATIONSHIPS

Page 17: MIS chap # 6....

17

THE DATABASE CONCEPT Database concept is the logical

integration of records across multiple physical locations.

Data independence is the ability to make changes in the data structure without making changes to the application programs that access the data.

Data dictionary includes the definition of the data stored within the database and controlled by the database management system.

Page 18: MIS chap # 6....

18

CREATING A DATABASE

Determine data that needs to be collected and stored is a key step.

Process-oriented approach Define the problem. Identify necessary decisions. Describe information needs. Determine the necessary processing. Specify data needs.

Page 19: MIS chap # 6....

19

DETERMINE DATA NEEDS

Enterprise modeling approach takes a broad view of the firm’s data resources; all areas are considered, and synergy of data resources between business areas can be leveraged. Result: Enterprise data model

Page 20: MIS chap # 6....

20

FIGURE 6.8 CREATING AN ENTERPRISE DATA MODEL

Page 21: MIS chap # 6....

21

DATA MODELING TECHNIQUES

Entity-relationship diagrams (ERDs) is a graphical representation of data in entities and the relationships between entities.

Entity is a conceptual collection of related data fields.

Relationship is defined between entities. One-to-one – 1:1 One-to-many – 1:M Many-to-many – M:N

Page 22: MIS chap # 6....

22

FIGURE 6.11 ENTITY-RELATIONSHIP DIAGRAM

Page 23: MIS chap # 6....

23

DIAGRAMMING TECHNIQUES

Class Diagram is a graphical representation of both the data used in an application and the actions associated with the data; object-oriented design model.

Objects are the data, actions taken on the data, and relationship between objects.

Class diagrams consist of the named class, fields in the class, and actions (methods) that act upon the class.

Page 24: MIS chap # 6....

24

FIGURE 6.13 CLASS DIAGRAM

Page 25: MIS chap # 6....

25

USING THE DATABASE

Forms show one record at a time and can be used to add, delete, or modify database records. Navigation Accuracy Consistency Filtering Subforms

Page 26: MIS chap # 6....

26

FIGURE 6.15 COMBINED DATA ENTRY FORM FOR THE COURSE AND PROJECT TABLES

Page 27: MIS chap # 6....

27

USING THE DATABASE (CONT’D)

Reports are aggregated data from the database that are formatted in a manner that aids decision making.

Queries is a request for the database to display selected records.

Query-by-example (QBE) presents a standardized form that the user completes so the system can generate a true query.

Page 28: MIS chap # 6....

28

FIGURE 6.16 REPORT OF DEPARTMENTS SHOWING COURSES OFFERED AND COURSE PROJECTS

Page 29: MIS chap # 6....

29

STRUCTURED QUERY LANGUAGE

Structured query language (SQL) is the code that RDBMSs use to perform their database tasks. Method of choice for interacting with Web-based

databases. Writing SQL statements are not difficult for most

manager’s data needs.

Page 30: MIS chap # 6....

30

FIGURE 6.20 STRUCTURED QUERY LANGUAGE CODE TO FIND PROJECTS FOR THE MIS105 COURSE

Page 31: MIS chap # 6....

31

DATABASE PERSONNEL

Database Administrator (DBA) is an expert in developing, providing, and securing databases; duties include: Database planning; Database implementation; Database operation; Database security.

Page 32: MIS chap # 6....

32

DATABASE PERSONNEL (CONT’D)

Database programmer writes code to strip and/or aggregate data from the database High level of specialization and selection

End user generates reports and forms, post queries to the database, and use results from their database inquiries to make decisions that affect the firm and its environmental constituents.

Page 33: MIS chap # 6....

33

DBMSS IN PERSPECTIVE

DBMS Advantages Reduce data redundancy. Achieve data independence. Retrieve data and information rapidly. Improve security.

DBMS Disadvantages Obtain expensive software. Obtain a large hardware configuration. Hire and maintain a DBA staff.