• Tidak ada hasil yang ditemukan

Bahan Insisiasi 1minggu ke2 3 DBMS

N/A
N/A
Protected

Academic year: 2017

Membagikan "Bahan Insisiasi 1minggu ke2 3 DBMS"

Copied!
39
0
0

Teks penuh

(1)

Chapter 9

The Database and Database

The Database and Database

Management System

Management System

(2)

Data Organization

Data Organization

 Data FieldData Field

– Smallest unit of dataSmallest unit of data

 RecordRecord

Collection of related fieldsCollection of related fields

 FileFile

(3)

Data Organization (cont.)

Data Organization (cont.)

 FoldersFolders

– Collection of related filesCollection of related files

– Conceptually similar to a branch of the treeConceptually similar to a branch of the tree

 SubfolderSubfolder

A folder within a folderA folder within a folder

(4)

Organization of Data into

Organization of Data into

Folders

(5)

Common Models for

Common Models for

Organizing Data Files

Organizing Data Files

1. Function

2. Frequency of Use 3. Users

(6)

Fundamental Building

Fundamental Building

Blocks for Database

Blocks for Database

Structures

Structures

(7)

Spreadsheet as a Simple

Spreadsheet as a Simple

Database

Database

 Rows and columns of a spreadsheet can be Rows and columns of a spreadsheet can be

regarded as a simple database regarded as a simple database

 Flat filesFlat files

Does not have repeating columnsDoes not have repeating columns

Spreadsheet table is a file and column is a fieldSpreadsheet table is a file and column is a field

 Key fieldsKey fields

(8)

Data Structure vs.

Data Structure vs.

Spreadsheet Terminology

Spreadsheet Terminology

Spreadsheet Term Data Structure Term

Table File

Column Field

(9)

Database Structures

Database Structures

 DatabaseDatabase

– All data stored on computer-based resources of All data stored on computer-based resources of

the organization

the organization

 Database Management System (DBMS)Database Management System (DBMS)

Software application that stores the structure of Software application that stores the structure of

the database, the data itself, relationships

the database, the data itself, relationships

among the data in the database, as well as forms

among the data in the database, as well as forms

and reports pertaining to the database

(10)

Database Structures

Database Structures

(cont.)

(cont.)

 Hierarchical structure Hierarchical structure

– Uses the ‘parent / children’ conceptUses the ‘parent / children’ concept

– Limitation: Cannot handle ad hoc requestsLimitation: Cannot handle ad hoc requests – First DBMS was IDS by GE in 1964First DBMS was IDS by GE in 1964

CODASYLCODASYL

 Network structureNetwork structure

– Allow given record to point back to any other record in the Allow given record to point back to any other record in the

database

database

– Specification released by CODASYL in 1971Specification released by CODASYL in 1971

(11)

Database Structures

Database Structures

(cont.)

(cont.)

 Relational structureRelational structure

– Rows and columnsRows and columns

Frees designers from need to specify Frees designers from need to specify

relationships prior to building the database

relationships prior to building the database – Date and Codd described structureDate and Codd described structure

(12)

Relational Database

Relational Database

Vendors

Vendors

1. IBM

2. Informix Software, Inc. 3. Microsoft

(13)

The Database Concept

The Database Concept

 Database conceptDatabase concept

Logical integration of records in multiple files Logical integration of records in multiple files

 Data redundancyData redundancy

Duplication of dataDuplication of data

 Data inconsistencyData inconsistency

 Data independenceData independence

– Keep data specifications separate from programs, Keep data specifications separate from programs,

in tables and indexes

(14)

Tables

Tables

Book Name Author Required Banking Principles Knox 25

(15)

Description of Book Table

(16)

Description of Student

Description of Student

Table

(17)

Table Relationships

(18)

Salesperson

(19)

Evolution of Database

Evolution of Database

Software

Software

 GE’s IDS first exampleGE’s IDS first example

– Used with COBOLUsed with COBOL

 IBM’s IMSIBM’s IMS

Apollo projectApollo project

 Interface IssuesInterface Issues

(20)

Evolution of Database

Evolution of Database

Software (cont.)

Software (cont.)

 SEQEL from IBMSEQEL from IBM

Continuation of IMSContinuation of IMS

 Renamed SQLRenamed SQL

– Structured Query language Structured Query language

Embedded within traditional languageEmbedded within traditional language – StandaloneStandalone

(21)

Creating a Database

Creating a Database

 Two approaches:Two approaches:

1. Process oriented approach

1. Process oriented approach

(problem-solving)

solving)

2.

(22)

Define

Defined by

Defined by

(23)

Create

Data Needs Can Be Defined by

Creating an Enterprise

Model

(24)

Describing the Database

Describing the Database

Contents

Contents

Data dictionary

Enter

dictionary data

Data description language (DDL) Step 1

(25)

Schema

Schema

 Data field nameData field name

 Aliases (other names used for same data Aliases (other names used for same data field)

field)

 Type of data (numeric alphabetic)Type of data (numeric alphabetic)

 Number of positionsNumber of positions

 Number of decimal positionsNumber of decimal positions

(26)

Rule for Required Field

(27)

Enforcing Value of

Enforcing Value of

BookName

(28)

Creating a Database

Creating a Database

 1) Describe the data1) Describe the data

 2) Enter the data2) Enter the data

 3) Use the database3) Use the database

Query languageQuery languageQuery-by-exampleQuery-by-example

(29)

Query-by-Example

(30)

On-Line Analytical

On-Line Analytical

Processing (OLAP)

Processing (OLAP)

 Feature to enable data analysis similar to Feature to enable data analysis similar to statistical cross-tabulation

statistical cross-tabulation

 Information can be generated from within Information can be generated from within DBMS

DBMS

(31)

Example OLAP Output

Example OLAP Output

(32)

The Database

The Database

Administrator (DBA)

Administrator (DBA)

D B A Duties

D B A Duties

 Database planning; work with users and Database planning; work with users and others, define schema, etc.

others, define schema, etc.

 Database implementation; creating the Database implementation; creating the database and enforcing policies and

database and enforcing policies and procedures

(33)

Data

Information InformationInformation

Transaction

statisticsstatistics

A DBMS

A DBMS

Model

(34)

Knowledge Discovery in

Knowledge Discovery in

Databases (KDD)

Databases (KDD)

 Data warehousingData warehousing

refinement in the database concept to make itrefinement in the database concept to make it

» very largevery large » very purevery pure

» very retrievablevery retrievable

 Data martData mart

(35)

Knowledge Discovery in

Knowledge Discovery in

Databases (KDD) (cont.)

Databases (KDD) (cont.)

 Data miningData mining

– the process of finding relationships in data the process of finding relationships in data

that are unknown to the user

that are unknown to the user – may be formay be for

» verificationverification » discoverydiscovery

(36)

The Knowledge Discovery

The Knowledge Discovery

in Database (KDD) Process

in Database (KDD) Process

1. Define the data and the task

1. Define the data and the task

2. Acquire the data

2. Acquire the data

3. Clean the data

3. Clean the data

4. Develop the hypothesis and search model

4. Develop the hypothesis and search model

5. Mine the data

(37)

DBMS Advantages

DBMS Advantages

 Reduce data redundancyReduce data redundancy

 Achieve data independenceAchieve data independence

 Enable integration of data from multiple Enable integration of data from multiple files

files

 Retrieve data and information quicklyRetrieve data and information quickly

(38)

DBMS Disadvantages

DBMS Disadvantages

 Obtain expensive softwareObtain expensive software

 Obtain a large hardware configurationObtain a large hardware configuration

 Hire and maintain a DBA staffHire and maintain a DBA staff

(39)

Summary

Summary

 Organizations are storing vast amounts of dataOrganizations are storing vast amounts of data

 Organization and structures in databaseOrganization and structures in database

Dominated by relationalDominated by relational

 Staff positionsStaff positions

– DBADBA

 Knowledge discovery in databasesKnowledge discovery in databases

Gambar

Table RelationshipsTable Relationships

Referensi

Dokumen terkait

This system built using PHP Hypertext Preprocessor as the programming language and MySQL (Structured Query Language) to manage database.. As result, data

Query Executor Fetch, Flush Database System Query Executor Access Method (record-oriented files) Pin, Unpin, Deallocate ( ).. Page-oriented Files Recovery manager

Query adalah semacam kemampuan untuk menampilkan suatu data dari database dimana mengambil dari table-tabel yang ada di database, namun tabel tersebut tidak semua

MySQL menggunakan SQL (Structured Query Language) yang merupakan bahasa standard dalam melakukan query database server MySQL mengendalikan akses data untuk

Underlying Information Underlying Information • textual description of item for human interpretation • database query that matches the textual description • database query that

Pengeksekusian Query 2.2 Rancangan Pengujian Pengujian kinerja database MariaDB dan MySQL dengan melakukan query DML Insert, Update, Select Operator Penghubung AND dan OR Stored

Design of database at logical level is called logical schema, programmers and database administrators work at this level, at this level data can be described as certain types of data

SQL (Structured Query Language) adalah bahasa pemrograman yang digunakan untuk mengelola dan mengoperasikan data di