ADB Chap04 Conceptual Design I2324
ADB Chap04 Conceptual Design I2324
ADVANCED DATABASE
Chapter 04
CONCEPTUAL DESIGN
fit@hcmus
fit@hcmus
Outline
2
fit@hcmus
Outline
3
fit@hcmus
Information System (IS)
Data à Information à Knowledge à Insights
Analysis
Design
Implementation
Testing
Operation
ER Model
ER Editors
à(E)ERD
Database Design
7
(E)ERD
10
fit@hcmus
Conceptual Design
£ Goal: Build a conceptual model (or an abstract
database schema) to represent objects of a given
problem domain (entities, attributes, relationships, and
constraints)
£ Definition: The process of constructing a data model
used in an enterprise, independent of all physical
considerations using the information documented in the
users’ requirements specification.
£ Output: A conceptual model, which is a source of
information for the logical database design.
£ Tools: Data models (ER), ER editors (Visio, …)
11
12
13
14
15
16
18
20
21
23
24
25
26
27
28
29
30
31
fit@hcmus
Conceptual Design
Step 2: ER modeling and normalization
£ Points to remember:
§ Avoid unnecessary ternary relationships.
§ Draw the corresponding ER diagram.
§ Normalize the entities.
§ Include all data element definitions in the data
dictionary.
§ Make decisions about standard naming conventions.
32
fit@hcmus
Conceptual Design
Step 2: ER modeling and normalization
£ Recall: Naming Conventions
§ Facilitates communication between parties
§ Promotes self-documentation
§ Entity name requirements
§ A singular noun or noun phrase
§ Specific to the organization (e.g., Customer or Client)
§ Clear and descriptive
§ Familiar to the users
§ Concise (as few words as possible)
§ Consistent
33
fit@hcmus
Conceptual Design
Step 2: ER modeling and normalization
£ Recall: Naming Conventions
§ Attribute name requirements
§ A singular noun or noun phrase
§ Unique for clarity purposes à Follow a standard format
[Entity type name { [ Qualifier ] } ] Class
§ Defined using the same qualifiers and classes with
other similar attributes of different entity types
34
fit@hcmus
Conceptual Design
Step 2: ER modeling and normalization
£ Recall: Naming Conventions
§ Relationship name requirements
§ Be a verb or verb phrase
§ Represent business rules in a meaningful manner
§ Indicate the action taken (or interaction) rather than the
action results or process
§ Avoid vague names (e.g., Has, Is related to, …)
35
fit@hcmus
Conceptual Design
Step 2: ER modeling and normalization
£ Recall: Key Selection
36
fit@hcmus
Conceptual Design
Step 3: Data model verification
£ Objective: Verify the conceptual model against the
proposed system processes to ensure they can be
supported by the data model by running series of tests:
§ End-user data views
§ Required transactions (select, insert, delete, update)
§ Access rights and security
§ Business requirements and constraints
£ Output: Verified data model
37
38
39
fit@hcmus
Conceptual Design
Step 3: Data model verification
£ A central entity: Most important entity involved in
the greatest numbers of relationships.
£ A central entity belongs to the module (determined
by its boundary and scope) that uses it most
frequently.
£ A process may be classified according to:
§ Frequently (Daily, …)
§ Operation types (CRUD)
40
fit@hcmus
Conceptual Design
Step 3: Data model verification
£ Ensure the module’s cohesivity
§ The entities must be strongly related, and the module
must be complete and self-sufficient
£ Analyze each module’s relationships with other
modules to address module coupling
§ Modules must display low coupling, indicating that they
are independent of other modules
q Verified each module with all identified processes
§ Each module will be verified with all identified processes
to ensure its capacity to support the processes
41
fit@hcmus
Conceptual Design
Step 3: Data model verification
42
fit@hcmus
Conceptual Design
Step 3: Data model verification
43
44
fit@hcmus
Conceptual Design
Step 4: Distributed database design
£ If the database data and processes will be
distributed across the system, portions of a
database (database fragments) may reside in
several physical locations.
£ A database fragment is a subset of a database
that is stored at a given location.
£ Define strategy to ensure database integrity,
security, and performance
45
fit@hcmus
Outline
46
fit@hcmus
Design Strategies
£ Top-down vs. Bottom-down Design
£ Centralized vs. Decentralized Design
£ Inside-Out Design
£ Design decision is normally based on:
§ Size and scope of the project (or the system)
§ Company’s structure
47
48
50
51
Application scope
Initial conceptual
model
Final conceptual
model
52
53
fit@hcmus
Design Case #1
Attributes OR Entities/Relationships?
54
55
56
57
58
59
60
61
(0,1)-(1,1)
(0,1)-(0,1)
(1,1)-(1,1)
62
(M:N)
(1:M)
63
64
65
66
67
fit@hcmus
THE END
68