49
Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Embed Size (px)

Citation preview

Page 1: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Getting Started withMicrosoft Visio 2010

Appendix G

DAVID M. KROENKE and DAVID J. AUER

DATABASE CONCEPTS, 6th Edition

Page 2: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th 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

Page 3: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 4: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 5: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 6: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 7: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 8: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 9: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 10: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 11: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 12: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 13: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 14: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 15: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 16: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 17: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 18: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 19: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 20: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 21: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 22: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 23: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 24: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 25: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 26: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 27: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 28: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 29: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 30: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 31: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 32: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 33: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 34: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 35: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 36: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 37: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 38: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 39: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Microsoft Visio 2010 Cardinalities

KROENKE and AUER - DATABASE CONCEPTS (6th Edition) Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall

G-39

Page 40: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 41: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 42: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 43: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 44: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 45: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 46: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 47: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 48: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

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

Page 49: Getting Started with Microsoft Visio 2010 Appendix G DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition

Getting Started withMicrosoft Visio 2010

End of Presentation on Appendix G

DAVID M. KROENKE and DAVID J. AUER

DATABASE CONCEPTS, 6th Edition