(Spring 2015) Instructor: Craig Duckett Lecture 10: Tuesday, May 12, 2015 Mere Mortals Chap. 7 Summary, Team Work Time 1.

Slides:



Advertisements
Similar presentations
Build a database I: Design tables for a new Access database
Advertisements

Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Copyright Irwin/McGraw-Hill Data Modeling Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Normalization of Database Tables
Client/Server Databases and the Oracle 10g Relational Database
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Views Chapter 12. What Are Views? A virtual table that comprises the fields of one or more tables in the database It is a virtual table since it does.
Recording / Financing Fixed Asset Acquisition Human Resources Purchasing Revenue Traditional files approach: separate systems (Legacy Systems) Expenditure.
The Relational Database Model. 2 Objectives How relational database model takes a logical view of data Understand how the relational model’s basic components.
Chapter 5 Normalization of Database Tables
Concepts of Database Management Seventh Edition
Keys Chapter 8 Database Design for Mere Mortals. Why Keys Are Important They ensure that each record in a table can be properly identified. They help.
Conceptual Overview 7 step design Chapter 4 Database Design for Mere Mortals.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Establishing Table Structures Chapter 7 Database Design for Mere Mortals.
Database Design Overview. 2 Database DBMS File Record Field Cardinality Keys Index Pointer Referential Integrity Normalization Data Definition Language.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
APPENDIX C DESIGNING DATABASES
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
3 The Relational Model MIS 304 Winter Class Objectives That the relational database model takes a logical view of data That the relational model’s.
The Relational Database Model
What is a database? An organized collection of data. This can be in an electronic, paper, or other format. Types of databases Operational -constantly changing.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
Concepts and Terminology Introduction to Database.
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables.
1 DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
The Relational Database Model
1 n 1 n 1 1 n n Schema for part of a business application relational database.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Preparing To Automate Data Management Chapter 1 “You.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
1 IRU – database design part one Geoff Leese September 2009.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Terms Hernandez, Chapter 3. Data/Information The values you store in the database are data. Pieces of Data in and of themselves is not particularly.
(Spring 2015) Instructor: Craig Duckett Lecture 08: Tuesday, May 5, 2015 Mere Mortals Chap. 6 Summary, Team Work Time 1.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
(Winter 2016) Instructor: Craig Duckett Lecture 15: Thursday, February 25 th Visual Studio Walk-Through 1.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
(Winter 2016) Instructor: Craig Duckett Lecture 13: Thursday, February 18 th Mere Mortals: Chap. 9 Summary, Team Work 1.
(Spring 2015) Instructor: Craig Duckett Lecture 07: Tuesday, April 28, 2015 PHASE 1: Discovery DUE TONIGHT 1.
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
Database Planning Database Design Normalization.
(Winter 2017) Instructor: Craig Duckett
(Winter 2017) Instructor: Craig Duckett
The Relational Database Model
(Winter 2017) Instructor: Craig Duckett
(Winter 2017) Instructor: Craig Duckett
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
(Winter 2017) Instructor: Craig Duckett
Instructor: Craig Duckett
Relational Database Model
(Winter 2017) Instructor: Craig Duckett
PREP Instructor: Craig Duckett Lecture 07: Tuesday, April 19th , 2016
The ultimate in data organization
Presentation transcript:

(Spring 2015) Instructor: Craig Duckett Lecture 10: Tuesday, May 12, 2015 Mere Mortals Chap. 7 Summary, Team Work Time 1

2 NEXT PHASE 2: DESIGN DUE NEXT Tuesday, May 19 th, uploaded to Team Web Site and ZIPPED and uploaded to StudentTracker by Phase 2 Project Manager Phase 3: Develop due Thursday, May 28 th

3 The Team Project Five Phase Due Dates Phase 1: Discovery (200 Points) DUE TUESDAY, APRIL 28 Phase 2: Design (200 Points) DUE TUESDAY, MAY 19 Phase 3: Develop (200 Points) DUE THURSDAY, MAY 28 Phase 4: Distribute (200 Points) DUE TUESDAY, JUNE 9 Phase 5: Documentation (200 Points) DUE THURSDAY, JUNE 18

4 Database Design for Mere Mortals: Chapter 7 Summary Microsoft SQL Server 2012 Team Work Time

5 Database Design for Mere Mortals: Chapter 7 Summary

Database Design for Mere Mortals: Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Defining the Preliminary Table List Defining the Final Table List Refining the Table Names Indicating the Tables Types Composing the Table Descriptions Associating Fields with Each Table Refining the Fields Guidelines for Creating Field Names Using the Ideal Field to Resolve Anomalies Resolving Multipart Fields Refining the Table Structures Redundant Data and Duplicate Fields

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES During this phase, a preliminary table list will be defined. Three procedures are used to develop this list. The first involves using the preliminary field list, the second involves using the list of subjects gathered during the interview process, and the third involves using the mission objectives that were defined at the beginning of the database design process. The process of defining the tables begins with a review of the preliminary field list to determine what subjects are implied by these items. If you can infer a subject from the listed fields, enter that subject on the new preliminary table list. Next, create a second version of the preliminary table list by merging the list you created during the interviews with users and management with the first version of the preliminary table list. Remove any duplicate items, resolving items that represent the same subject and combine the remaining items together into one master list. Finally, use the mission objectives to determine whether any subjects were overlooked during the previous procedures. This is a final opportunity to add tables to the preliminary table list.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Defining the Final Table List It’s time to transform the preliminary table list into the final table list. To do this, you’ll need to add two elements: table type and table description. There are four table types: Data: This type of table stores data used to supply information. Linking: This table is used to establish a link between two tables in a many-to-many relationship. Subset: This table contains supplemental fields that are related to a particular data table and further describe the subject of that table in a very specific manner. Validation: This type of table is used to implement data integrity. Table descriptions are used to provide a clear definition of the subject represented by the table. One final task in developing the final table list is to refine the table names.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Refining the Tables Names There are certain guidelines that should be used when creating a table name. These guidelines ensure that a name is clear and unambiguous, that it is descriptive and meaningful, and that each table is named in a consistent manner. Guidelines for creating a table name: Create a unique, descriptive name that is meaningful to the entire organization. Create a table name that accurately, clearly and unambiguously identifies the subject of the table. Use the minimum number of words necessary to convey the subject of the table. Do not use words that convey physical characteristics. Do not use acronyms and abbreviations. Do not use proper names and other words that will unduly restrict the data that can be entered into the table. Do not use names that implicitly or explicitly identify more than one subject. Use the plural form of the name (in contrast, field names are always singular).

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Indicating the Table Types You’ll indicate each table’s type on the final table list (i.e., data, linking, subset and validation). Each item on the list will be a data table because it represents a single subject that is important to the organization. Linking and validation tables will be missing because you have not yet defined any relationships or data integrity. These issues will be addressed later in the design process. Subset tables are missing as well because they are defined after fields have been assigned to data tables. Composing the Table Descriptions Table descriptions are important for understanding why each table exists and why the organization is concerned with collecting the data for each table. It must explicitly define the table and state its importance. If you are unable to explain the importance of a table, you’ll need to further investigate when and how the table was identified and whether it really is necessary.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Guidelines for Composing a Table Description Include a definition statement that accurately identifies the table. Include a statement that explains why this table is important to the organization. Compose a description that is clear and succinct. Do not include implementation-specific information in your table description. Do not make the table description for one table dependent on the table description of another table. Do not use examples in a table description.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Associating Fields with Each Table The next stage of the database design process is to assign fields to each table on the final table list. These fields are taken from the preliminary field list. To assign fields to a table, determine which fields best represent characteristics of the table’s subject and assign them to that table. Repeat this procedure for every table on the final table list. To begin this process, write the names of each table across the top of the paper. Repeat this procedure, using as many sheets as you need to account for every table on the list. Assign fields from the preliminary field list to each table. Start with the first table and determine which fields best describe its subject. List these fields under the table name. After assigning all fields you believe to be appropriate for the table, move on to the next table and repeat the process. Continue in this manner until you’ve assigned fields to all of the tables.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Refining the Fields The next stage of the database design process is to assign fields to each table on the final table list. These fields are taken from the preliminary field list. Guidelines for Creating Field Names Create a unique, descriptive name that is meaningful to the entire organization. Create a name that accurately, clearly and unambiguously identifies the characteristic represented by the field. Use the minimum number of words necessary to convey the meaning of the characteristic the field represents. Do not use acronyms, and be discriminating in the use of abbreviations. Do not use words that could confuse the meaning of the field name. Do not use names that implicitly or explicitly identify more than one characteristic. Use the singular form of the name.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Using the Ideal Field to Resolve Anomalies Unless you know what to look for, it’s hard to determine whether any of the fields in a table is going to cause problems. The best way to identify potentially problematic fields is to determine whether they are in accordance with the Elements of the Ideal Field: Guidelines for Creating Field Names It represents a characteristic of the subject of the table. It contains only a single value. It cannot be deconstructed into smaller components. It does not contain a calculated or concatenated value. It is unique within the entire database structure. It retains all of its characteristics if it appears in more than one table.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES You'll typically encounter three types of fields in an improperly or poorly designed database: A multipart field (also known as a composite field), which contains two or more distinct items within its value. A multivalued field, which contains multiple instances of the same type of value And a calculated field, which contains a concatenated text value or the result of a mathematical expression.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Resolving Multipart Fields Multipart Fields are difficult to work with because they contain more than one item of data. It’s hard to retrieve information from a multipart field and it’s hard to sort or group the records in the table by the field’s value. To resolve this, you need only identify the separate items making up the field and treat each one as an individual field. Resolving Multivalued Fields Multivalued fields bring about the same set of problems as do multipart fields. Unlike a multipart field, whose value represents two or more separate items, a multivalued field represents two or more occurrences of the same value. This poses a problem if you try to enter more occurrences of the value than the field will allow. To resolve a multivalued field, first remove the field from the table and use it as the basis for a new table. Next use a field (or set of fields) from the original table to link the original table with the new table. Assign an appropriate name, type and description to the new table and add the table to the final table list.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Refining the Table Structures The objective in this phase of the design process is to make sure that the appropriate fields have been assigned to each table and that each table’s structure is properly defined. Redundant Data and Duplicate Fields Redundant data is a value that is repeated in a field as a result of the fields’ use as a link between two tables, or is the result of some field or table anomaly. In the first instance, the redundant data is appropriate; by definition, fields used to link tables together contain redundant data. In the second instance, the redundant data is entirely unacceptable because it poses problems with data consistency and data integrity. Duplicate fields are fields that appear in two or more tables for any of the following reasons: they are used to link a set of tables together, they indicate multiple occurrences of a particular type of value, or they are there as a result of a perceived need for supplemental information. The only instance in which they are necessary is in the case of linking two tables together.

Database Design for Mere Mortals Chapter 7 Summary ESTABLISHING TABLE STRUCTURES Elements of the Ideal Table: It represents a single subject, which can be an object or event. It has a Primary key. It does not contain multipart fields. It does not contain multivalued fields. It does not contain calculated fields. It does not contain unnecessary duplicate fields. It contains only an absolute minimum amount of redundant data.

SQL Server 2012 Assorted Files 19 SQL Server 2012 (Zipped, 3.33 GB) Northwind Database (Zipped, 1 MB) How to Install Microsoft SQL Server (Doc) How to Install Northwind Database (Doc)

20 TEAM WORK TIME