16
Database Database Development Development Indra Budi Indra Budi [email protected] [email protected]

Database Development Indra Budi

Embed Size (px)

DESCRIPTION

Conceptual Schema Describes the Meaning of Data in the Universe of Discourse Describes the Meaning of Data in the Universe of Discourse –Emphasizes on General, Conceptually Relevant, and Often Time Invariant Structural Aspects of the Universe of Discourse Excludes the Physical Organization and Access Aspects of the Data Excludes the Physical Organization and Access Aspects of the Data

Citation preview

Page 1: Database Development Indra Budi

Database Database DevelopmentDevelopment

Indra BudiIndra [email protected]@cs.ui.ac.id

Page 2: Database Development Indra Budi

What is differences ?What is differences ?

Logical Data Independence Vs Logical Data Independence Vs Physical data independence ?Physical data independence ?

Page 3: Database Development Indra Budi

Conceptual SchemaConceptual Schema Describes the Meaning of Data in the Universe of Describes the Meaning of Data in the Universe of

Discourse Discourse – Emphasizes on General, Conceptually Relevant, and Often Emphasizes on General, Conceptually Relevant, and Often

Time Invariant Structural Aspects of the Universe of DiscourseTime Invariant Structural Aspects of the Universe of Discourse Excludes the Physical Organization and Access Aspects Excludes the Physical Organization and Access Aspects

of the Dataof the Data

Page 4: Database Development Indra Budi

Conceptual SchemaConceptual Schema

Another ExampleAnother Example

Page 5: Database Development Indra Budi

External SchemaExternal Schema Describes Parts of the Information in the Conceptual Schema Describes Parts of the Information in the Conceptual Schema

in a form Convenient to a Particular User Group’s Viewin a form Convenient to a Particular User Group’s View Derived from the Conceptual SchemaDerived from the Conceptual Schema

Page 6: Database Development Indra Budi

External SchemaExternal Schema

Another ExampleAnother Example

Page 7: Database Development Indra Budi

Internal SchemaInternal Schema Describes How the Information Described in the Conceptual Describes How the Information Described in the Conceptual

Schema is Physically Represented in a Database to Provide the Schema is Physically Represented in a Database to Provide the Overall Best PerformanceOverall Best Performance

Page 8: Database Development Indra Budi

Internal SchemaInternal Schema

Another ExampleAnother Example

Page 9: Database Development Indra Budi

Unified Example of Three SchemasUnified Example of Three Schemas

Page 10: Database Development Indra Budi

Building a Database SystemBuilding a Database System

Essentially the same as the process for building Essentially the same as the process for building any other information system, consists of three any other information system, consists of three basic phases:basic phases:

Requirements phaseRequirements phase: a data model is developed: a data model is developed Design phaseDesign phase: the data model is transformed into : the data model is transformed into

tables and relationshipstables and relationships Implementation phaseImplementation phase: create tables into the : create tables into the

DBMSDBMS

Page 11: Database Development Indra Budi

Requirement PhaseRequirement Phase

Data model is developedData model is developed A data model is a logical representation of the A data model is a logical representation of the

structure of the database structure of the database Its very important because design & Its very important because design &

implementation depend on this phaseimplementation depend on this phase– If the data model inaccurate, then the result will be If the data model inaccurate, then the result will be

waste, aggravation, delays and uselesswaste, aggravation, delays and useless

Page 12: Database Development Indra Budi

Example: Data ModelExample: Data Model

•Rectangular are entity & diamonds are relationships

•We will discuss this model in detail later…

Page 13: Database Development Indra Budi

The Design PhaseThe Design Phase

The data model transform into tables & The data model transform into tables & relationshipsrelationships

Data properties established Data properties established type, length, type, length, null/not null. null/not null.

Need for index determinedNeed for index determined Constraint, trigger, stored procedure are Constraint, trigger, stored procedure are

defineddefined Figure 1-19 KroenkeFigure 1-19 Kroenke

Page 14: Database Development Indra Budi

The Implementation PhaseThe Implementation Phase

Tables & relationships createdTables & relationships created– Via SQLVia SQL– Via Graphical design toolVia Graphical design tool

Stored procedure & trigger are written & Stored procedure & trigger are written & testedtested

Figure 1-20 KroenkeFigure 1-20 Kroenke

Page 15: Database Development Indra Budi

Application DevelopmentApplication Development Application development proceeds in Application development proceeds in

parallel with database developmentparallel with database development

Page 16: Database Development Indra Budi

Suggested structure of Report 1Suggested structure of Report 1 IntroductionIntroduction

– Brief overview of DBMS (name, vendor, Brief overview of DBMS (name, vendor, version, price (if any), primary user, history of version, price (if any), primary user, history of the DBMS, etc)the DBMS, etc)

– Description of DBMS features you want to Description of DBMS features you want to compare and why they are important.compare and why they are important.

Table comparationTable comparation AnalysisAnalysis ConclusionConclusion