ISYS1055/1057 Tutorial/Lab Sheet. The Entity-Relationship Model 1

Similar documents
Call Recorder Quick CD Access System

XRD CONVERSION USER S MANUAL

How to Attach Files in Blackboard Learn , Messages, Discussions, and Assignments

LABSHEET 1: creating a table, primary keys and data types

Chapter 6. Using the SQL Server

Using SSH Secure Shell Client for FTP

File Manager Pro User Guide. Version 3.0

Knowledgebase Article

Installing LearningBay Enterprise Part 2

USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)

TIM 50 - Business Information Systems

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

Spring 2014 Urban Affairs network computers and computer labs Mapping your H:\ drive using Microsoft Windows 7

Working with SQL Server Integration Services

How To Apply For A Phd Online

Creating Personal Web Sites Using SharePoint Designer 2007

ParishSOFT Remote Installation

From Data Modeling to Data Dictionary Written Date : January 20, 2014

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

2. Conceptual Modeling using the Entity-Relationship Model

SQL Server 2005: Report Builder

Release 2.0. Cox Business Online Backup Quick Start Guide

Merging Labels, Letters, and Envelopes Word 2013

Contents. Accessing Compensation Reports Generating Compensation Reports. Saving PDF Reports after Viewing Printing PDF Reports

AUSTRALIAN CUSTOMS AND BORDER PROTECTION SERVICE TYPE 3 CERTIFICATE 2014 INSTALLATION GUIDE

How to Connect to Berkeley College Virtual Lab Using Windows

Absolute Software Topup Tax (Year 2 onwards)

Step by Step. Use the Cloud Login Website

FAQs. OneDrive for Business?

Overview... 2 How to Add New Documents... 3 Adding a Note / SMS or Phone Message... 3 Adding a New Letter How to Create Letter Templates...

Introduction. There are several bits of information that must be moved:

State of Michigan Data Exchange Gateway. Web-Interface Users Guide

User Instructions. System Requirements:

Open a PDF document using Adobe Reader, then click on the Tools menu on the upper left hand corner.

MAPPING THE WEBDRIVE REFERENCE GUIDE

Online Application Instruction Document

HART Demo Installation Guide

WSDOT ProjectWise V8i Training 101

Introduction to using Skype. Install Skype on your Computer. Getting Started

Manual - Schlatter E-Shop

Manufacturing Representative SSL VDM Login User s Guide

Diver-Office Backup and Restore the Database

How To Install The Snow Active Directory Discovery Service On Windows (Windows) (Windows 7) (Powerbook) (For Windows) (Amd64) (Apple) (Macintosh) (Netbook) And (Windows

QUICK DRIVING INSTRUCTIONS GUIDE

MT4 Electronic Trading Station Menu. MT4 Operation Manual. SB MT4 Electronic Trading Station 2012/1/1. Menu SB MT4 Electronic Trading

RP Pocket PC Scanner Reference Manual For PPT8800

FAQs. OneDrive for Business?

National Fire Incident Reporting System (NFIRS 5.0) Configuration Tool User's Guide

How To Configure CU*BASE Encryption

BSDI Advanced Fitness & Wellness Software

Introduction to Microsoft Word 2003

The Entity-Relationship Model


Snow Active Directory Discovery

MiraCosta College now offers two ways to access your student virtual desktop.

Converting a QuickBooks Desktop file to QuickBooks Online

Migrating documents from Business Objects Reporter to Web Intelligence XI R2

TestManager Administration Guide

BLACKBOARD CONTENT COLLECTION FACULTY TRAINING GUIDE

Introduction to Microsoft Access 2003

Databases What the Specification Says

Ofgem Carbon Savings Community Obligation (CSCO) Eligibility System

You will see the terms of service screen which you must read and accept to continue.

Creating Reports with Microsoft Dynamics AX SQL Reporting Services

MICROSOFT ACCESS 2003 TUTORIAL

1. What are popups? What if I have a problem with viewing popups? 1

To add Citrix XenApp Client Setup for home PC/Office using the 32bit Windows client.

Windows VPN and Epic Installation Instructions

Macs are not directly compatible with Noetix.

Using a Remote SQL Server Best Practices

Deploying Physical Solutions to InfoSphere Master Data Management Server Advanced Edition v11

Excel 2003 A Beginners Guide

INFORMATION SYSTEMS SERVICE NETWORKS AND TELECOMMUNICATIONS SECTOR. User Guide for the RightFax Fax Service. Web Utility

Crystal Print Control Installation Instructions for PCs running Microsoft Windows XP and using the Internet Explorer browser

This guide provides step by step instructions for using the IMF elibrary Data - My Data area. In this guide, you ll learn how to:

ACCESSING CELCAT ATTENDANCE TRACKING REGISTERS. A walk thru guide

If you are planning to work from home or your laptop, there are several things you need to have access to:

POINT OF SALES SYSTEM (POSS) USER MANUAL

Working with your NTU off campus

This exhibit describes how to upload project information from Estimator (PC) to Trns.port PES (server). Figure 1 summarizes this process.

Check current version of Remote Desktop Connection for Mac.. Page 2. Remove Old Version Remote Desktop Connection..Page 8

VERIPATROL Client User Guide

IBM DB2 XML support. How to Configure the IBM DB2 Support in oxygen

MICROSOFT OFFICE LIVE MEETING GUIDE TO GENERATING REPORTS

Telecom Systems Billing Application User Guide

ProjectWise Explorer V8i User Manual for Subconsultants & Team Members

Table of Contents SQL Server Option

Higher Degrees by Research Online Application Process

Managing Expense Reports Program Administrators and Approvers

How To Load Data Into An Org Database Cloud Service - Multitenant Edition

Step By Step Process For Archiving

Great! You sold some Lexmark devices. Now you need to file for the associated rebates.

Internet Explorer Settings for use with Privia

Transcription:

School of Computer Science and IT, RMIT ISYS1055/1057 Tutorial/Lab Sheet The Entity-Relationship Model 1 1. For each of the following description, complete tasks: a. Draw an ER diagram showing entities, attributes, and relationships and their multiplicity. Where necessary state any assumptions. b. Map the ER diagram into a relational database schema. Explicitly denote primary keys (underline) and foreign keys (asterisks *) for relations in the resultant schema. 1) Customers identified by a name and with an address purchase items. Items are identified by a number and have a colour. The quantity bought of each item is recorded. 2) An order with a unique number and date can be made for any quantity of parts, each with an item identifier and colour. Each order is made by one supplier with a name and address. 2. Given the following description, draw an ER diagram and map it into a relational database schema. Explicitly denote primary keys and foreign keys of relations in the resultant schema. Produce a pdf file containing your answers. The ER diagram must use symbols in the lecture notes, and can be drawn with the Word drawing tool or any other software. Departments are identified by an ID and have budget. For each department there are several projects, which have a name and start date. 3. Given below is an ER diagram for a Movies database. (a) Explain the assumptions made about the Borrow and Direct relationships in the ER diagram. (b) In the DB Designer 4 system, implement the ER diagram and map it into SQL DDL statements. Instructions on using the DB Designer 4 system will be given separately. Director name address address phoneno email name Member borrow_date Borrow Direct Movie due_date title type year_made rating

Database Design using DBDesigner 4 Database design tools have been developed to automate the database design process, from a conceptual model to a relational database schema. DBDesigner 4 is a visual database design tool that integrates database design, modelling and creation. Specifically you can draw ER diagrams and automatically map them relational database schema definition SQL DDL statements. DBDesigner 4 can be freely downloaded from http://www.fabforce.net/dbdesigner4/. In the DBDesigner 4 terminology, the core components in a database conceptual model (similar to an ER diagram) are tables (similar to entity sets) and relations (similar to relationships). A sample Movies database model built in DBDesigner 4 is shown below. Tables consists of table name, columns, indices and various table options. Relations connect different tables with each other to form one-one or onemany relations. Note that there are some restrictions in DBDesigner 4 modelling, For example, only binary relations are allowed. The DBDesigner 4 manual is on the Blackboard for downloading. 1. In the School of Computer Science and IT, DBDesigner 4 is installed on the blowfly Windows Server and is also installed on PCs in the Window labs. To start DBDesigner 4: On a terminal, select and low into blowfly: Start --> Programs --> FabForce --> DBDesigner 4 On a windows machine: Start --> Programs --> (SCSIT) --> FabForce --> DBDesigner 4

2. On the left edge of the DB Designer window, there are icons for entities, relationships etc. Click the icon to create a new entity (in DB designer it is called a table). And, then click on the main window where you want to place the new entity. 3. then, double click on the top edge of the new entity to open a new window to enter details of this new entity. The new window should look like below.

4. Enter the name of the new entity (in this example "Movie"), and the key attribute of the Movie entity (in this example "mv_title") in appropriate boxes. See below. 5. Enter the remaining attributes of the Movie entity, as follows. 6. When you are done with the list of attributes, click on the Tick button at the bottom right-hand corner of the window. Then, the attributes of the new entity will be updated on the main window. See below.

7. Repeat the above steps to define Member, and its attributes. 8. Save the definition of the Member entity, main screeen looks like: 9. "Borrow" is a many-to-many relationship between these two entities. Click on the "many-to-many" icon from the tool bar (Left edge of the window). 10. Note that the relationship name generated by the system is not right. Double click on the Relationship icon to obtain a description window and enter the correct relationship name and the attributes borrow_date and due_date.

11. After saving attributes of the new relationship, main window looks like below. 12. Add entity "Director" and its attribues, and establish a one-to-many relationship from Director to Movie. First click on the corresponding icon on the tool box, then

click on the "one" side. The resultant ER diagram looks like below. 13. To the diagram, click "File --> Save As..." from the menu, and when the Save As window appears, save it on a suitable directory. 14. The last step to complete the design process is to transform your ER model into a relational database schema, which is a set of SQL CREATE TABLE statements. (We are not going to create the database yet, but will be doing so in a future lab session). Click on "File --> Export --> Create SQL script" on the menu.

15. When the "File Save" dialog box appears, assign a suitable filename.