SSAD Chapter - 4 Note
SSAD Chapter - 4 Note
System Design involves tasks focusing on the specification of a detailed computer based
solution: also called physical design to differentiate from data modeling, which is
basically a logical design.
System analysis emphasized the business-problem while system design focuses on the
Solution (technical or implementation) concerns of the new system.
System requirement
Specification (SRS) input to interface design
The design phase can be broadly classified into logical and physical designs.
Logical design; a stage where the “look and feel” of all system inputs, outputs
and interfaces and dialogues are defined.
o Broadly speaking, it specifies means to capture inputs, give output and the
interaction between users and the system, and how data should be
organized and stored.
o Specifically,
• Designing forms and reports (the inputs & outputs)
• Designing interfaces and dialogues: the interaction
• Designing logical database (structure of the database) this is the
1
conceptual data modeling
Note: the above design list need not necessarily be sequentially performed.
Database Design
o Data base and file design occurs in two steps:
i. Developing logical database model: describe organization used by a DBMs
(database management System) – like Ms Access, Oracle, or SQL server,
the most common is a relational database model. Logical database design is
derived not only from E-R models, but also from forms and report layouts
of the system.
ii. Physical database design activities include transformation of the logical
database model into a format suitable for the selected DBMs and specify
computer programmers, database administrators, network managers, and
others on how to implement the new information system.
As mentioned above, database design is transforming an E-R model and the data
specifications design into a normalized relation(table).
A relation is a named, two-dimensional table of data, having set of named columns and
an arbitrary number of unnamed rows,
Each column in a relation corresponds to an attribute of that relation and each row of a
relation corresponds to a records that contains data values for an entity.
It is the process of converting complex data structures into simple, stable data structures
using a process called normalization.
Normalization: performed based on well-accepted principles and rules, There are three
steps of normalization.
Un normalized => (1st Normal Form) => (2nd Normal Form) => (3rd Normal Form)
2
The result of normalizations is that every no primary key attribute depends upon the
whole primary key and nothing but the primary
Consider the following relation (EMPLOYEE 2) that contains data about employees and
the courses they have completed.
EMPLOYEE 2
Emp-ID Name Dept Salary Course Date_ Completed
100 Margaret Simpson Marketing 42,000 CCNA 6/19/2002
100 Margaret Simpson Marketing 42,000 Core Java 10/7/2002
110 Chris Lucero Inf. Systems 41,500 CCNA 1/22/2002
110 Chris L. Finance 41,500 C++ 4/22/2002
190 Lorenzo Davis Finance 38,000 Core Java 5/7/2002
150 Susan M. Marketing 38,500 CCNA 6/19/2002
150 Susan M. Marketing 38,500 E-Business 8/12/2002
Notice the redundancy in EMPLOYEE 2, where Emp-ID, Name, Dept, and salary values
for employees 100,110 and 150 appear in we must record this fact in two rows.
The problem with this relation is that it contains data about two entities: EMPLOYEE
and COURSE
3
EMP_COURSE
TREATMENT relation is its 2NF because it has only one primary key attribute.
The following functional dependencies exist in the above relation
1. Patient_ID, Patient_Name, Physician, Ward (Patient_Id is the primary key)
4
2. Physician => Ward (each physician is assigned to a unique ward) this is
transitive dependency.
A relation like the above create data maintenance problems and need to be changed
into 3NF.
To change TREATMENT relation it into 3NF, decompose it into two relations, based
on Patient_ID and physician as:
Sometimes, you may not need to go through all the steps of normalization, i.e. a relation
may already be in the 3NF at the 1st step.
o Future information need of the system (the relations in the database) are derived
both from system input output interfaces and the E-R diagrams developed during
conceptual data modeling
o Transforming an E-R diagram into normalized relations and then merging all the
relations into one final, consolidated set of relations can be accomplished in four
steps.
1. Represent Entities: each entity type in the E-R diagram becomes a relation, the
identifier of the entity becomes primary key of the relation, and other attributes of
the entity become non primary key attributes of the relation.
2. Represent relationships; each relationship in an E-R diagram must be represented
in the relational database design, this may be by using foreign keys or by creating
a separate relation to represent a relationship.
3. Normalize the relations: remove unnecessary redundancy from relations created
in steps 1 and 2 using normalization
4. Merge the relations; all the relations created so far are gathered from sources like
E-R diagrams and user views, etc. so, there may be redundant relations (two or
more relations about the same entity type) that must be merged and renormalized
5
Physical Database Design
These are the means or methods by which users interact with the system.
o Points to be considered in designing interfaces;