Docsity

Data Base Design-System Analysis and Design-Lecture Slides, Slides of System Analysis and Design

Partial preview of the text

Download Data Base Design-System Analysis and Design-Lecture Slides and more Slides System Analysis and Design in PDF only on Docsity!

C H A P T E R

DATABASE

DESIGN

Chapter 14 Database Design & Modeling

  • Compare and contrast conventional files and modern, relational databases.
  • Define and give examples of fields, records, files, and databases.
  • Describe a modern data architecture that includes files, operational databases, data warehouses, personal databases, and work group databases.
  • Compare the roles of systems analyst, database administrator, and data administrator as they relate to databases.
  • Describe the architecture of a database management system
  • Describe how a relational database implements entities, attributes, and relationships from a logical data model.
  • Transform a logical data model into a physical, relational database schema.
  • Generate SQL code to create the database structure in a schema.

Conventional Files versus the Database

File – a collection of similar records.

  • Files are unrelated to each other except in the code of an application program.
  • Data storage is built around the applications that use the files.

Database – a collection of interrelated files

  • Records in one file (or table) are physically related to records in another file (or table).
  • Applications are built around the integrated database

Files versus Database

Pros and Cons of Databases

Pros

  • Data independence from

applications increases

adaptability and flexibility

  • Superior scalability
  • Ability to share data across

applications

  • Less, and controlled

redundancy (total non-

redundancy is not

achievable)

Cons

  • More complex than file

technology

  • Somewhat slower

performance

  • Investment in DBMS and

database experts

  • Need to adhere to design

principles to realize benefits

  • Increased vulnerability due

to consolidating data in a

centralized database

Fields

Field – the smallest unit of meaningful data to be

stored in a database

  • the physical implementation of a data attribute

Primary key – a field that uniquely identifies a record.

Secondary key – a field that identifies a single record or a subset of related records.

Foreign key – a field that points to records in a different file.

Descriptive field – any nonkey field.

Files and Tables

File – the set of all occurrences of a given record structure.

Table – the relational database equivalent of a file.

  • Types of conventional files and tables
    • Master files – Records relatively permanent though values may change
    • Transaction files – Records describe business events
    • Document files – Historical data for review without overhead of regenerating document
    • Archival files – Master and transaction records that have been deleted
    • Table lookup files – Relatively static data that can be shared to maintain consistency
    • Audit files – Special records of updates to other files

Files and Tables

  • Previous file design methods required that the analyst

specify precisely how the records in a database should

be:

  • Sequenced (File organization)
  • Accessed (File access)
  • Database technology usually predetermines and/or

limits this

  • Trained database administrator may be given some control over organization, storage location, and access methods for performance tuning.

A Modern Data Architecture

Administrators

Data administrator – a database specialist responsible

for data planning, definition, architecture, and

management.

Database administrator – a specialist responsible for

database technology, database design,construction,

security, backup and recovery, and performance tuning.

  • A database administrator will administer one or more databases

Typical DBMS Architecture

Relational Databases

Relational database – a database that implements stored

data in a series of two-dimensional tables that are

―related‖ to one another via foreign keys.

  • The physical data model is called a schema.
  • The DDL and DML for a relational database is called SQL (Structured Query Language).
  • Triggers – programs embedded within a database that are automatically invoked by updates.
  • Stored procedures – programs embedded within a database that can be called from an application program.

… To Physical Data Model (Relational Schema)

User Interface for a Relational PC DBMS