Chapter 4-Systems Design
Chapter 4-Systems Design
Chapter 4-Systems Design
• Form
– A business document that contains some predefined
data and areas where additional data are to be filled in
– An instance of a form is typically based on one database
record
• Report
– A business document that contains only predefined data
– A passive document for reading or viewing data
– Typically contains data organized/summarized from
many database records or transactions
Designing Forms and Reports (Cont.)
• Highlighting
– Use sparingly to draw user to or away from certain
information
– Blinking and audible tones should only be used to
highlight critical information requiring user’s
immediate attention
– Highlighting Methods should be consistently
selected and used based upon level of importance
of emphasized information
Methods of Highlighting
• Displaying Text
– Display text in mixed upper and lower case and use
conventional punctuation
– Use double spacing if space permits. If not, place a blank
line between paragraphs
– Left-justify text and leave a ragged right margin
– Do not hyphenate words between lines
– Use abbreviations and acronyms only when they are
widely understood by users and are significantly shorter
than the full text
General Formatting Guidelines for Forms
and Reports
• Context-Sensitive Help
– Enables user to get field-specific help
• Users should always be returned to where they
were when requesting help
Designing Dialogues
• The process of designing the overall
sequences that users follow to interact with
an information system is called dialogue
design
• A dialogue is the sequence in which
information is displayed to and obtained from
a user
Dialogue Design Cont’d…
• The primary design guideline for designing
dialogues is consistency; dialogues need to be
consistent in sequence of actions, keystrokes,
and terminology
• In other words, use the same labels for the
same operations on all screens and the same
location for the same information on all
displays.
Designing the Dialogue Sequence
• Your first step in dialogue design is to define
the sequence.
• A method for designing and representing
dialogues is dialogue diagramming.
• Dialogue diagrams have only one symbol, a
box with three sections; each box represents
one display (which might be a full screen or a
specific form or window) within a dialogue
Dialogue Designs
• The three sections of the box are used as follows
1. Top: Contains a unique display reference number
that will be used by other displays for referencing it
2. Middle: Contains the name or description of the
display
3. Bottom: Contains display reference numbers that
can be accessed from the current display
• See the example in the next slide
Dialogue Design (Sample)
Deliverables and Outcomes
• Logical database is the representation of
data using a model like relational database
model, which represents data in simple
tables with common columns to link related
tables.
• Physical database is the representation of
relations into files
Process of Database Design
Logical Design
› Four key steps:
1. Develop a logical data model for each known user interface
for the application using normalization principles
2. Combine normalized data requirements from all user
interfaces into one consolidated logical database model
3. Translate the conceptual E-R data model for the application
into normalized data requirements
4. Compare the consolidated logical database design with the
translated E-R model and produce one final logical database
model for the application
Process of Database Design
Physical Design
› Based upon results of logical database design
› Key decisions:
1. Choosing storage format for each attribute from the logical
database model
2. Grouping attributes from the logical database model into
physical records
3. Arranging related records in secondary memory (hard disks
and magnetic tapes) so that records can be stored,
retrieved, and updated rapidly
4. Selecting media and structures for storing data to make
access more efficient
Relational Database Model
Data represented as a set of related tables or relations
Relation
› A named, two-dimensional table of data. Each
relation consists of a set of named columns and an
arbitrary number of unnamed rows
› Properties
Entries in cells are simple
Entries in columns are from the same set of values
Each row is unique
The sequence of columns can be interchanged without
changing the meaning or use of the relation
The rows may be interchanged or stored in any sequence
Relational Database Model
• Well-Structured Relation
– A relation that contains a minimum amount of
redundancy and allows users to insert, modify,
and delete the rows without errors or
inconsistencies
Normalization
• Functional Dependency
– A particular relationship between two attributes. For a
given relation, attribute B is functionally dependent on
attribute A if, for every valid value of A, that value of A
uniquely determines the value of B.
– Instances (or sample data) in a relation do not prove the
existence of a functional dependency
– Knowledge of problem domain is the most reliable method
for identifying functional dependency
Functional Dependencies and
Primary Keys
• Foreign Key
– An attribute that appears as a non-primary key attribute in
one relation and as a primary key attribute (or part of a
primary key) in another relation
• Referential Integrity
– An integrity constraint specifying that the value (or
existence) of an attribute in one relation depends on the
value (or existence) of the same attribute in another
relation
– Is implemented by using a foreign key
Transforming E-R Diagrams into Relations
1. Represent Entities
– Each regular entity is transformed into a relation
– The identifier of the entity type becomes the primary
key of the corresponding relation
– The primary key must satisfy the following two
conditions
a. The value of the key must uniquely identify every row in the
relation
b. The key should be non-redundant and Non-Nullable
Transforming E-R Diagrams into Relations
2. Represent Relationships
– Binary 1:N and 1:1 Relationships
• A binary one-to-many (1:N) relationship in an E-R diagram
is represented by adding the primary key attribute (or
attributes) of the entity on the one side of the relationship
as a foreign key in the relation that is on the many side of
the relationship.
• For a binary or unary one-to-one (1:1) relationship
between the two entities A and B (for a unary relationship,
A and B would be the same entity type), the relationship
can be represented by any of the following choices:
1. Adding the primary key of A as a foreign key of B
2. Adding the primary key of B as a foreign key of A
3. Both of the above
Transforming E-R Diagrams into Relations