Upload
chastity-boyd
View
224
Download
1
Tags:
Embed Size (px)
Citation preview
Getting Started withMicrosoft Visio 2010
Appendix G
DAVID M. KROENKE and DAVID J. AUER
DATABASE CONCEPTS, 6th Edition
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means,
electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States
of America.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-2
Appendix Objectives
• Learn how to create data models in Microsoft Visio 2010
• Learn how to create database designs in Microsoft Visio 2010
• Understand that Microsoft Visio 2010 has a template for creating process diagrams using Business Processing Modeling Notation (BPMN)
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-3
The Database Model Diagram
• Microsoft Visio 2010 uses the Database Model Diagram template as the basis for:– Data models (Chapter 4)– Database designs (Chapter 5)
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-4
The Microsoft Visio 2010 Backstage View New Tab
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-5
Figure G-1: The Microsoft Visio 2010 Backstage View – New Tab
The Software and Database Templates
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-6
Figure G-2: The Software and Database Templates
The Database Model Diagram Template
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-7
Figure G-3: The Database Model Diagram Template
The Microsoft Visio 2010 Database Model Diagram
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-8
Figure G-4: The Microsoft Visio 2010 Database Model Diagram
The Shapes Window
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-9
Figure G-5: The Shapes Window
The Entity Relationship (US units)Stencil Objects I
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-10
Figure G-6: The Entity Relationship (US units) Stencil Objects
The Entity Relationship (US units) Stencil Objects II
• The Entity object—Use this object to create entities (data model) and tables (database design) in the Microsoft Visio database model diagram.
• The Relationship object—Use this object to create relationships between tables in database designs.
• The Dynamic connector object—Use this object to create relationships between entities in data models.
• The View object—Use this object to create SQL views (discussed in Chapter 3A) to data models and database designs.
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-11
The Entity Relationship (US units) Stencil Objects III
• The Category object—Use this object to create supertype/subtype relationships in data models and database designs.
• The Parent to category connector object—Use this object to create supertype/subtype relationships in database designs.
• The Category to child connector object—Use this object to create supertype/subtype relationships in database designs.
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-12
The Microsoft Visio 2010Database Model Diagram
with Minimized Shapes Window
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-13
Figure G-7:The Microsoft Visio 2010 Database Model Diagram with Minimized Shapes Window
SQL CREATE TABLE DEPARTMENT Statement
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-14
Figure G-8: The WPC Database Table SQL Statements
The Table1 Table Object
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-15
Figure G-9: The Table1 Table Object
Database Properties – Definition Window
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-16
Figure G-10: The Database Properties—Definition Window
Adding the Primary Key Column
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-17
Figure G-11: Adding the Primary Key Column
The Data Type Drop-Down List
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-18
Figure G-12: The Data Type Drop-Down List
The Completed DepartmentName Primary Key Column
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-19
Figure G-13: The Completed DepartmentName Primary Key Column
The Completed DEPARTMENT Table
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-20
Figure G-14: The Completed DEPARTMENT Table
The Completed DEPARTMENT, EMPLOYEE and PROJECT Tables
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-21
Figure G-15:The Completed DEPARTMENT, EMPLOYEE and PROJECT Tables
Data Models versus Database Designs
• In Microsoft Visio 2010 we use different connector objects when building Data models (Chapter 4) and Database designs (Chapter 5).– The Dynamic connector—Used between two
entities, this is just a line, and has no primary key / foreign key data—used for data models.
– The Relationship connector—Used between two tables, and incorporates primary key / foreign key data—used for database designs.
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-22
Copying Database Model Diagram Files
• Make two copies of the existing Microsoft Visio 2010 drawing for use when building the data model and database design. There are now three versions of the file:– The original WPC-Database-Model-Tables.vsd file—
This file is our basic working file with only the tables in it.
– The WPC-Database-Design.vsd file—This file will be used for our WPC database design.
– The WPC-Data-Model.vsd file—This file will be used for our WPC data model.
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-23
The Dynamic ConnectorAttached to the EMPLOYEE Table
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-24
Figure G-16: The Dynamic Connector Attached to the EMPLOYEE Table
The Dynamic Connector Attachedto Both the EMPLOYEE and DEPARTMENT Tables
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-25
Figure G-17:The Dynamic Connector Attached to Both the EMPLOYEE and DEPARTMENT Tables
The Dynamic Connector Adjusts as the DEPARTMENT Table Is Moved
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-26
Figure G-18:The Dynamic Connector Adjusts as DEPARTMENT Table is Moved
The Dynamic Connector as a Line
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-27
Figure G-19: The Dynamic Connector as a Line
The Short-cut Menu
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-28
Figure G-20: The Short-Cut Menu
The Line Dialog Box
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-29
Figure G-21: The Line Dialog Box
Available Line Ends“Begin” End
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-30
Figure G-22: Available Line Ends – “Begin” End
The FormattedDynamic Connector Line
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-31
Figure G-23: The Formatted Dynamic Connector Line
The N:M Relationshipin the Data Model
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-32
Figure G-24: The N:M Relationship in the Data Model
The Relationship Connector in the Database Design
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-33
Figure G-25: The Relationship Connector in the Database Design
The Attached Relationship Connector in the Database Design
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-34
Figure G-26:The Attached Relationship Connector in the Database Design
The Relationship Connector Dynamically Adjusts When EMPLOYEE Table is Moved
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-35
Figure G-27:The Relationship Connector Dynamically Adjusts When EMPLOYEE Table is Moved
Editing the EMPLOYEE Table Columns
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-36
Figure G-28: Editing the EMPLOYEE Table Columns
The Edited the EMPLOYEE Table Columns
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-37
Figure G-29: The Edited EMPLOYEE Table Columns
The Categories Miscellaneous Page
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-38
Figure G-30: The Categories Miscellaneous Page
Microsoft Visio 2010 Cardinalities
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-39
The Categories Referential Action Page
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-40
Figure G-31: The Categories Referential Action Page
The Completed1:N Nonidentifying Relationships
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-41
Figure G-32: The Completed 1:N Nonidentifying Relationships
The E-R Database Design with an Intersection Table
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-42
Figure G-33: The E-R Database Design with an Intersection Table
The E-R Database Design with an Association Table
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-43
Figure G-34: The E-R Database Design with an Association Table
The Database Command Tab and Database Command Groups
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-44
Figure G-35: The Database Command Tab and Database Command Groups
The Database Document Options Dialog Box—General Tab
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-45
Figure G-36: The Database Document Options Dialog Box—General Tab
The Database Document Options Dialog Box—Relationship Tab
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-46
Figure G-37: The Database Document Options Dialog Box—Relationship Tab
The WPC Database Design with IE Crow’s Foot Notation
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
G-47
Figure G-38: The WPC Database Design with IE Crow’s Foot Notation
Business Processing Modeling Notation (BPMN) in Microsoft Visio 2010
KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall
• See the Microsoft Visio Insights blog at http://blogs.msdn.com/b/visio/archive/2009/12/03/bpmn-support-in-visio-2010.aspx for a good discussion of BPNM in Microsoft Visio 2010.
• Unfortunately, full BPMN support is only available in the Visio Premium edition (see http://office.microsoft.com/en-us/visio/visio-edition-comparison-FX101838162.aspx ).
• For more information on BPMN, see the Object Management Group’s Business Process Management Initiative Web page at http://www.bpmn.org/.
G-48
Getting Started withMicrosoft Visio 2010
End of Presentation on Appendix G
DAVID M. KROENKE and DAVID J. AUER
DATABASE CONCEPTS, 6th Edition