Rose Data Modeler (logical)

Similar documents
A Rational Software Whitepaper

DATABASE REVERSE ENGINEERING

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Database Design Methodology

Databases What the Specification Says

What is a database? COSC 304 Introduction to Database Systems. Database Introduction. Example Problem. Databases in the Real-World

CSC 443 Data Base Management Systems. Basic SQL

Relational Database Basics Review

Database Design Process. Databases - Entity-Relationship Modelling. Requirements Analysis. Database Design

Microsoft Office 2010

Tutorial 3. Maintaining and Querying a Database

Chapter 10. Practical Database Design Methodology. The Role of Information Systems in Organizations. Practical Database Design Methodology

AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL

Fundamentals of Database Design

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Chapter 10 Practical Database Design Methodology and Use of UML Diagrams

IT2305 Database Systems I (Compulsory)

Database Modelling in UML

Chapter 10 Practical Database Design Methodology and Use of UML Diagrams

Oracle Data Integrator for Big Data. Alex Kotopoulis Senior Principal Product Manager

DbSchema Tutorial with Introduction in SQL Databases

Course 4 27 October Adrian Iftene adiftene@info.uaic.ro

CSCE 156H/RAIK 184H Assignment 4 - Project Phase III Database Design

The Entity-Relationship Model

Answers included WORKSHEET: INTEGRITY CONTROL IN RELATIONAL DATABASES

IT2304: Database Systems 1 (DBS 1)

Preview DESIGNING DATABASES WITH VISIO PROFESSIONAL: A TUTORIAL

A Tool for Generating Relational Database Schema from EER Diagram

DATABASE MANAGEMENT SYSTEMS. Question Bank:

Concepts of Database Management Seventh Edition. Chapter 6 Database Design 2: Design Method

Data Modeling. Database Systems: The Complete Book Ch ,

Introduction to Databases

Umbrello UML Modeller Handbook

History of SQL. Relational Database Languages. Tuple relational calculus ALPHA (Codd, 1970s) QUEL (based on ALPHA) Datalog (rule-based, like PROLOG)

Using Rational Rose to Create Object-Oriented Diagrams

Select the Crow s Foot entity relationship diagram (ERD) option. Create the entities and define their components.

Databases in Engineering / Lab-1 (MS-Access/SQL)

Using UML Part One Structural Modeling Diagrams

COURSE NAME: Database Management. TOPIC: Database Design LECTURE 3. The Database System Life Cycle (DBLC) The database life cycle contains six phases;

Course: CSC 222 Database Design and Management I (3 credits Compulsory)

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3 SP02

Relational Databases. Christopher Simpkins

Database Query 1: SQL Basics

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Scheme G. Sample Test Paper-I

DbSchema Tutorial with Introduction in MongoDB

Activity 1 Workflow Model and API

Installing and configuring Microsoft Reporting Services

Concepts of Database Management Seventh Edition. Chapter 9 Database Management Approaches

DBMS / Business Intelligence, SQL Server

CS143 Notes: Views & Authorization

CHAPTER 4: BUSINESS ANALYTICS

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Database Programming with PL/SQL: Learning Objectives

The Relational Data Model and Relational Database Constraints

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Rose/Architect: a tool to visualize architecture

Chapter 8 The Enhanced Entity- Relationship (EER) Model

Using Multiple Operations. Implementing Table Operations Using Structured Query Language (SQL)

MySQL for Beginners Ed 3

Lecture 12: Entity Relationship Modelling

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

CSE 233. Database System Overview

March Module 3 Processing MOVES Output

Database Administrator [DBA]

Principles of integrated software development environments. Learning Objectives. Context: Software Process (e.g. USDP or RUP)

EXCEL IMPORT user guide

Object Oriented Programming. Risk Management

Setting up SQL Translation Framework OBE for Database 12cR1

Object Oriented Databases. OOAD Fall 2012 Arjun Gopalakrishna Bhavya Udayashankar

Modern Systems Analysis and Design

Developing Web Applications for Microsoft SQL Server Databases - What you need to know

HPE MyRoom Outlook Add-in Quick Reference Guide

CSCI110 Exercise 4: Database - MySQL

Customer Bank Account Management System Technical Specification Document

UML TUTORIALS THE USE CASE MODEL

SQL Server An Overview

CDC UNIFIED PROCESS PRACTICES GUIDE

Chapter 6. Using the SQL Server

Data Modeling Basics

We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded

SQL Simple Queries. Chapter 3.1 V3.0. Napier University Dr Gordon Russell

How to Move Mail From Your Old POP Account To Exchange Using Outlook 2010


GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: DATABASE MANAGEMENT (Code: ) Information Technology

Migrating Critical Business Applications to APEX Successfully

Application. 1.1 About This Tutorial Tutorial Requirements Provided Files

Development and Management

CPS352 Database Systems: Design Project

Oracle Database: SQL and PL/SQL Fundamentals

SQL Data Definition. Database Systems Lecture 5 Natasha Alechina

Oracle SQL. Course Summary. Duration. Objectives

Transcription:

Rose Data Modeler (logical) Rational Rose uses a data modeler to model the conceptual, logical, and physical database models, but also to generate DDLs commands, such as creating tables following UML methodology. Guidelines for using Rose Data Modeler 2) Logical data model: the next data model in Rose Data Modeler is the logical data model. It is a refinement of the conceptual model, but we can create another class diagram for it, that we call logical. We draw again the classes (we can just copy and paste them from the conceptual diagram. We need to work on this diagram so that we represent all its elements in a way that will permit Rational Rose to translate it well into a data model, which is a set of database tables. o Create a logical class diagram in the Logical View, or work on the Main one, which is what will be done in this tutorial. o Modify, or redraw, the association between Employee and Dependent. So that it is an aggregation. The result should look like on the following screen. Note the full diamond arrow representing a strong relationship, also called a composite aggregation, or an identifying relationship.

o Specify the keys by right-clicking on the attribute(s) in the Logical View, and selecting Data Modeler Part of Object Identity. o Also do not forget to make each class persistent, by selecting persistent on the Detail tab of the corresponding class specification. o Mapping the logical model into a data model. The data model is a new model provided by Rational Rose. First create a database in Component View Data modeler new Database. Give it the name you want for your target database, such as your UW NetID. Then create a new schema for your database in Logical View Data Modeler new Schema. Choose the database previously created, and the ANSI SQL 92 formalism. Map by choosing Company (package) Data Modeler Transform to data model. Choose the schema and database.

o Under the schema created, select Data modeler new data model diagram. Add the tables to this diagram. It should look like this:

Check that the PK and FK have been generated properly. Potential Problems: if your tables do not look right, such as there are additional keys created, then it means that you class diagram is nor right. Go back to your class diagram, and modify the primary keys selected, if needed. Another source of errors are the relations. There are sometimes some relations not visible on the class diagram that Rose has not removed when you graphically deleted them. You should check for each class that it has the right number of relations under the Relations tab of the class specification. For instance, in our example, Employee should have 2 relations listed, remove additional ones (probably earlier ones), Computer should have only 1, and Dependent should have also only 1. 3) Physical data model: The physical data model will refine the tables previously generated. You can add there different elements (see online help), such as domains, constraints, triggers, stored procedures, etc. One important feature will be to specify which attributes must be unique, by opening the corresponding table, and selecting the attribute as Unique. These are dependent upon the DBMS. Stored procedures and triggers are not included in ANSI SQL 92. 4) Implementing the physical data model: The generation of the DDL is done through the Forward Engineering Wizard. It will create the DDL file for each data element represented in the Schema. You just right-click on the schema created, then select Data Modeler Forward engineer, and choose which elements you want to generate, starting with tables (and views), then select the name of the file, such as company.ddl. Here is the content of my company.ddl:

I can use this file as a direct input to MySQL, on the command line: mysql v -p<password> <database> < company.ddl for example: mysql -v -pxxxxx ibichind < company.ddl I can also import this file into MySQL at the command line: mysql> source compant.ddl