1 / 74

Chapter 8

Chapter 8. Database Design Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel. In this chapter, you will learn:. That successful database design must reflect the information system of which the database is a part

idecker
Download Presentation

Chapter 8

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 8 Database Design Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel

  2. In this chapter, you will learn: • That successful database design must reflect the information system of which the database is a part • That successful information systems are developed within a framework known as the Systems Development Life Cycle (SDLC) • That, within the information system, the most successful databases are subject to frequent evaluation and revision within a framework known as the Database Life Cycle (DBLC)

  3. In this chapter, you will learn (continued): • How to conduct evaluation and revision within the SDLC and DBLC frameworks • What database design strategies exist: top-down vs. bottom-up design, and centralized vs. decentralized design

  4. 8.1 Changing Data into Information • Information • Data processed and presented in a meaningful form • Can be as simple as tabulating the data, thereby making certain data patterns more obvious • Transformation • Any process that changes data into information

  5. A Simple Cross-Classification Table: Transforming Data into Information

  6. 8.2 The Information System • Provides for data collection, storage, and retrieval • Composed of people, hardware, software, database(s), application programs, and procedures • Systems analysis • Process that establishes need for and extent of an information system • Systems development • Process of creating an information system

  7. Applications • Transform data into information that forms the basis for decision making • Usually produce • Formal report • Tabulations • Graphic displays • Composed of two parts • Data • Code by which the data are transformed into information

  8. Generating Information for Decision Making

  9. Information System • Performance depends on triad of factors: • Database design and implementation • Application design and implementation • Administrative procedures • Database development • Process of database design and implementation • Primary objective in DB design is to create complete, normalized, non-redundant (to the extent possible), and fully integrated conceptual, logical, and physical database models • The implementation phase includes creating the DB storage structures, loading data into the DB, and providing for DB management

  10. 8.3 The Systems Development Life Cycle (SDLC) • Traces history (life cycle) of an information system • Provides “big picture” within which database design and application development can be mapped out and evaluated

  11. The Systems Development Life Cycle (SDLC) (continued) • Divided into five phases • Planning • Analysis • Detailed systems design • Implementation • Maintenance • Iterative rather than sequential process

  12. The Systems Development Life Cycle (SDLC)

  13. 8.3.1 Planning • Yields general overview of the company and its objectives • Initial assessment made of information-flow-and-extent requirements • Should the existing system be continued, modified, or replaced? • If a new system is necessary, the feasibility study must address the following • Technical aspects of hardware and software requirements • System cost

  14. 8.3.2 Analysis • Problems defined during the planning phase are examined in greater detail during analysis • What are the precise requirements of the current system’s end user? • Do those requirement fit into the overall information requirements? • A thorough audit of user requirements • Existing hardware and software systems are studied • Goal is better understanding of system’s functional areas, actual and potential problems, and opportunities • End users and system designers must work together

  15. Logical Systems Design • Must specify appropriate conceptual data model, inputs, processes, and expected output requirements • Might use tools such as data flow diagrams (DFD), hierarchical input process output (HIPO) diagrams, or entity relationship (ER) diagrams • Yields functional descriptions of system’s components (modules) for each process within the database environment. • All data transformations (processes) are described and documented. The conceptual model is validated against these processes.

  16. 8.3.3 Detailed Systems Design • Designer completes design of system’s processes • Includes all necessary technical specifications for screens, menu, reports, and other devices • Steps are laid out for conversion from old to new system • Training principles and methodologies are also planned

  17. 8.3.4 Implementation • Hardware, DBMS software, and application programs are installed, and database design is implemented • Cycle of coding, testing, and debugging continues until database is ready to be delivered • Database is created and system is customized by creation of tables and views, and user authorizations • The database contents may be loaded interactively or in batch mode. • The system is subject to exhaustive testing until it is ready for use. • Final documentation is reviewed and printed, and end users are trained.

  18. 8.3.5 Maintenance • Three types: • Corrective maintenancein response to systems errors • Adaptive maintenancedue to changes in the business environment • Perfective maintenanceto enhance the system • Reasons for reducing the operational life of certain systems: • rapid technology change, cost of maintaining, etc. • Computer-assisted systems engineering (CASE) • Make it possible to produce better systems within reasonable amount of time and at a reasonable cost • Prolong the operational life of systems

  19. 8.4 The Database Life Cycle (DBLC)

  20. 8.4.1 The Database Initial Study • Overall purpose: • Analyze the company situation • Define problems and constraints • Define objectives • Define scope and boundaries • Interactive and iterative processes required to complete the first phase of the DBLC successfully

  21. Summary of Activities in the Database Initial Study

  22. Analyze the Company Situation • Analysis • “To break up any whole into its parts so as to find out their nature, function, and so on” • Company situation • General conditions in which a company operates, its organizational structure, and its mission • Analyze the company situation • Discover what the company’s operational components are, how they function, and how they interact • These issues must be resolved • What is the organization’s general operating environment, and what is its mission within that environment • What is the organization’s structure

  23. Define Problems and Constraints • Managerial view of company’s operation is often different from that of end users • Designer must continue to carefully probe to generate additional information that will help define problems within larger framework of company operations • Finding precise answers is important, especially about the relationship between business units • Defining problems does not always lead to the perfect solution. The real world usually intrudes to limit the elegant DB design by imposing constraints.

  24. Define Objectives • Designer must ensure that database system objectives correspond to those envisioned by end user(s) • Designer must begin to address the following questions: • What is the proposed system’s initial objective? • Will the system interface with other existing or future systems in the company? • Will the system share data with other systems or users?

  25. Define Scope and Boundaries • Scope • Defines extent of design according to operational requirements • Helps define required data structures, type and number of entities, and physical size of the database • Boundaries • Limits external to the system • Often imposed by existing hardware and software

  26. 8.4.2 Database Design • Necessary to concentrate on the data characteristics required to build database model • Two views of data within system: • Business view of data as information source • Designer’s view of data structure, its access, and the activities required to transform the data into information

  27. Two Views of Data: Business Manager and Designer

  28. Database Design (continued) • Loosely related to analysis and design of larger system • Systems analysts or systems programmers are in charge of designing other system components • Their activities create procedures that will help transform data within the database into useful information • Does not constitute a sequential process • Iterative process that provides continuous feedback designed to trace previous steps

  29. Procedure Flow in the Database Design

  30. Conceptual Design • Data modeling used to create an abstract database structure that represents real-world objects in the most realistic way possible • Must embody a clear understanding of the business and its functional areas • Minimum data rule: Ensure that all data needed are in the model, and that all data in the model are needed • Requires four steps: check Figure 8.6

  31. Data Analysis and Requirements • First step is to discover data element characteristics. The designer’s efforts are focused on: information needs, information users, information sources, information constitution • Obtains characteristics from different sources • End-user data views, direct observation of the current system, interfacing with the systems design group • Must take into account business rules, which describethe main and distinguishing characteristics of the data as viewed by the company • Business rules define entities, attributes, relationships, connectivities, cardinalities, and constraints

  32. Data Analysis and Requirements • Business rules are derived from description of operations • Document that provides precise, detailed, up-to-date, and thoroughly reviewed description of activities that define an organization’s operating environment • Main sources of business rules • Company managers, policy makers, department managers, and written documentation such as company procedures, standards, or operations manuals • The designer must identify the company’s business rules and analyze their impact on the nature, role, and scope of data

  33. Entity Relationship (ER) Modeling and Normalization • Designer must communicate and enforce appropriate standards to be used in the documentation of design • Use of diagrams and symbols • Documentation writing style • Layout • Other conventions to be followed during documentation

  34. The Process of Defining Business Rules and Developing the Conceptual Model Using ER Diagrams

  35. A Composite Entity more attributes are needed

  36. Data Redundancies in the VIDEO Table More revisions are needed

  37. ER Modeling Is an Iterative Process Based on Many Activities

  38. Conceptual Design Tools and Information Sources

  39. Data Dictionary • Defines all objects (entities, attributes, relations, views, and so on) • Used in tandem with the normalization process to help eliminate data anomalies and redundancy problems

  40. ER Modeling • Things to be done in ER Modeling • Define entities, attributes, primary keys, foreign keys • Add new primary keys to satisfy end-user and processing requirement • Handle multivalued attributes • Add derived attributes to satisfy processing requirement • Place foreign keys in 1:1 relationship • Avoid unnecessary ternary relationships • Draw ER Diagram • Normalize • Include all the data element definitions in the data dictionary • Make decisions about standard naming conventions

  41. Naming conventions • Use descriptive entity and attribute names whenever possible • Composite entities are assigned a name that describe the relationship they represent • An attribute name should contain a prefix that helps identify the table in which it is found • Use a combination of characters as the prefix to weak tables. (example of ORDER_ITEM in p. 414)

  42. Data Model Verification • Model must be verified against proposed system processes to corroborate that intended processes can be supported by the database model • Tests against • End-user data views and their required transactions • Access paths, security, and concurrency control • Business-imposed data requirements and constraints

  43. Data Model Verification • Revision of original design starts with a careful reevaluation of entities, followed by a detailed examination of attributes that describe these entities (see p. 415 for the purposes of this step) • Define design’s major components as modules: • An information system component that handles a specific function • Advantages of modules: • The modules can be delegated to the design groups within teams • The modules simplify the design work • The modules can be prototyped quickly • The implementation of one or more modules will demonstrate that progress is being made

  44. Module Verification Against The Complete ER Model Process

  45. Iterative ER Model Verification Process

  46. Verification Process • Select the central (most important) entity • Defined in terms of its participation in most of the model’s relationships • Identify the module or subsystem to which the central entity belongs and define boundaries and scope • Place central entity within the module’s framework • Ensure the module’s cohesivity • Analyze each module’s relationship with other modules to address module coupling. Modules must display low coupling.

  47. DBMS Software Selection • Critical to the information system’s smooth operation • Advantages and disadvantages should be carefully studied • Common factors • Cost • DBMS features and tools • Underlying model • Portability • DBMS hardware requirements

  48. Logical Design • Used to translate conceptual design into internal model for a selected database management system • Logical design is software-dependent • Requires that all objects in the model be mapped to specific constructs used by selected database software • For Relational DBMS, the logical design includes the specifications for the tables, indexes, views, transactions, access authorizations, and so on.

  49. A Simple Conceptual Model

  50. Sample Layout for the COURSE Table

More Related