19
PEMROGRAMAN BERSTRUKTUR: DATABASE MANAGEMENT SYSTEM Oleh Munawar Asikin

Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2 Database management system (DBMS): group of programs that manipulate database

Embed Size (px)

Citation preview

Page 1: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

PEMROGRAMAN BERSTRUKTUR:

DATABASE MANAGEMENT

SYSTEM

Oleh

Munawar Asikin

Page 2: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

Principles of Information Systems, Seventh Edition 2

INTRODUCTION Database management system

(DBMS): group of programs that manipulate database and provide interface between database and users

Database administrator (DBA): a skilled information systems professional who directs all activities related to organization’s database

Page 3: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

Principles of Information Systems, Seventh Edition 3

DATA MANAGEMENT: THE HIERARCHY OF DATA

A bit (a binary digit) represents a circuit that is either on or off

A byte is typically 8 bits

Character: each byte represents a character, the basic building block of information

Field: typically a name, number, or combination of characters that describes an aspect of a business object or activity

Page 4: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

Principles of Information Systems, Seventh Edition 4

THE HIERARCHY OF DATA (CONTINUED) Record: a collection of related data

fields

File: a collection of related records

Database: a collection of integrated and related files

Hierarchy of data: formed by bits, characters, fields, records, files, and databases

Page 5: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

5

FIGURE 5.1: THE HIERARCHY OF DATA

Page 6: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

6

DATA ENTITIES, ATTRIBUTES, AND KEYS Entity: a generalized class of people,

places, or things (objects) for which data is collected, stored, and maintained

Attribute: a characteristic of an entity

Data item: the specific value of an attribute

Key: a field or set of fields in a record that is used to identify the record

Primary key: a field or set of fields that uniquely identifies the record

Page 7: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

7

FIGURE 5.2: KEYS AND ATTRIBUTES

Page 8: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

8

THE TRADITIONAL APPROACH VERSUS THE DATABASE APPROACH

Traditional approach: separate data files are created and stored for each application program Results in data redundancy: duplication of data in

separate files Data redundancy conflicts with data integrity (the

degree to which the data in any one file is accurate)

Database approach: approach whereby a pool of related data is shared by multiple application programs; offers significant advantages over traditional file-based approach

Page 9: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

9

FIGURE 5.3: THE TRADITIONAL APPROACH TO DATA MANAGEMENT

Page 10: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

10

FIGURE 5.4: THE DATABASE APPROACH TO DATA MANAGEMENT

Page 11: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

11

CREATING AND MODIFYING THE DATABASE Data definition language (DDL)

A collection of instructions and commands used to define and describe data and data relationships in a specific database

Allows the database’s creator to describe the data and the data relationships that are to be contained in the schema and subschemas

Data dictionary: a detailed description of all the data used in the database

Page 12: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

12

FIGURE 5.11: USING A DATA DEFINITION LANGUAGE TO DEFINE A SCHEMA

Page 13: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

13

FIGURE 5.12: A TYPICAL DATA DICTIONARY ENTRY

Page 14: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

14

STORING AND RETRIEVING DATA When an application program request

data from DBMS, the application program follows a logical access path

When the DBMS goes to a storage device to retrieve the requested data, it follows a path to the physical location (physical access path) where the data is stored

Page 15: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

15

MANIPULATING DATA AND GENERATING REPORTS Data manipulation language (DML):

the commands that are used to manipulate the data in a database

Structured Query Language (SQL): adopted by the American National Standards Institute (ANSI) as the standard query language for relational databases

Once a database has been set up and loaded with data, it can produce reports, documents, and other outputs

Page 16: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

16

TABLE 5.6: EXAMPLES OF SQL COMMANDS

Page 17: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

17

POPULAR DATABASE MANAGEMENT SYSTEMS Popular DBMSs for end users include

Microsoft’s Access and Corel’s Paradox

The complete database management software market includes databases by IBM, Oracle, and Microsoft

Examples of open-source database systems: PostgreSQL and MySQL

Many traditional database programs are now available on open-source operating systems

Page 18: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

18

SELECTING A DATABASE MANAGEMENT SYSTEM Important characteristics of databases to consider:

Size of the database

Number of concurrent users

Performance

The ability of the DBMS to be integrated with other systems

Features of the DBMS

Vendor considerations

Cost of the system

Page 19: Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database

TERIMA KASIH [email protected]