Ask DBMS Expert


Home >> DBMS

Asaginment: Visio and Access are the required software for the Database course

A. Lab:

B. Lab: Skills Development in Visio; Creation of MS Access Database

C. Lab Overview-Scenario / Summary

TCOs:

1. Given a business situation in which managers require information from a database, determine, analyze, and classify that information so that reports can be designed to meet the requirements.

2. Given a situation containing entities, business rules, and data requirements, create the conceptual model of the database using a database modeling tool.

3. Given an existing relational database schema, evaluate and alter the database design for efficiency.

4. Given an existing database structure demonstrating efficiency and integrity, design the physical tables.

Scenario:

You have been asked to create a conceptual database model using MS Visio Database Model Diagram Template. The purpose of this lab is to have you gain experience with the various modeling tools needed to create a conceptual model (entity relationship diagram) of a database. You will then modify the model for implementation as a MS Access database. You will create and modify one conceptual model.

You will then create a MS Access database based on the model developed in Visio, creating the necessary tables and relationships.

Upon completing this lab, you will be able to

1. relying on detailed instructions, add two entities to the existing conceptual model (ERD), including attribute data types and required field lengths;

2. create a new MS Access database file;

3. using the model from Parts A of the lab, and relying on detailed instructions; create the first two tables in the database;

4. use the experience gained in creating the first two tables to add the remaining tables;

5. using the model from Part A of the lab, and relying on detailed instructions; create the relationship between the first two tables in the database; and

6. use the experience gained in creating the first relationship to create the remaining relationships between the tables.

D. Deliverables

Section Deliverable Points

Part A YourNameLab2.vsdx (Visio Diagram)

Part B YourNameLab2.accdb (Access Database)

E. Lab Steps

Preparation

1. Get the Visio diagram

a. Download Lab2_StarterFile.vsdx file from your course iLab page, and Save the file to your local drive.

2. Using Citrix for MS Visio and/or MS Access

a. If you are using the Citrix remote lab, follow the login instructions located in the iLab area in Course Home.

b. You will have to upload the Lab2.vsdx file to your Citrix drive, or allow Citrix access to your system. Follow the instructions for uploading files to Citrix, located in the iLab area in Course Home.

Lab:

Part A: Create a Visio ERD with an Associative Entity

Step 1: Open the Lab2.vsdx file

a. Open the Lab2.vsdx file using Microsoft Office or Visio.

b. If you are using Citrix, click on Microsoft Office Applications folder to start Visio. Then use the File menu, Open command to open the Lab2.vsdx file.

Step 2: Add two new entities and relationships to the Visio diagram.

a. The Lab2.vsdx file should open like the following screen. Using the Save As command in the Office Button list, save the file as YourNameLab2.vsdx.

Figure 2-a

b. The existing entities may be moved by clicking and dragging to create more room. You will be adding entities to the diagram, so drag a new entity shape to the page. You will need to click the More Shapes and go to Software? Database? Crow's Feet. The menu to insert a table will pop up. You will name the new entity OrderLine, and add the following attributes.

1. OrdLineUnitPrice (Required attribute)
2. OrdLineQuantity (Required attribute)
3. OrdLineDiscount (Not a required attribute)

NOTE: If you need assistance to do this, refer to the instructions for the Week 1 iLab.

Figure 2-b

c. Add a second new entity named Orders with the following attributes so that your diagram matches the diagram below.

1. OrderID (Primary Key)
2. OrderDate (Required)
3. OrderRequiredDate (Required)
4. OrderShippedDate (Not Required)
5. OrderShipVia (Not Required)
6. OrderShipName (Required)
7. OrderShipStreet (Required)
8. OrderShipCity (Required)
9. OrderShipState (Required)
10. OrderShipZip (Required)

Figure 2-c

d. At this point, the OrderLine table does not have a primary key. This is an associative entity and will borrow its primary key from the two parent tables. To add to the OrderLine entity, you must first add the Set Foreign key attribute of ProdID. Next, drag a relationship shape to the diagram. Connect the one end to the Products entity, and the other end to the OrderLine entity. Name the relationship Specified by. Right click the attribute ProdID in the Orderline table and select foreign key, ProdID now appears in the OrderLine table as a foreign key. If you have trouble reading the relationship, drag and move the OrderLine table as shown below.

Figure 2-d

e. Add OrderID to the OrderLine table as an attribute. Right click and designate the attribute as a foreign key by clickiset Foreign Key. Drag a second Relationship shape to the diagram. Connect the one end to the Orders entity, and the many end to the OrderLine entity. Name the relationship Included On. OrderID now appears in the OrderLine table as a foreign key. (NOTE: The page orientation in the diagram below has been changed to Landscape. You will find the orientation options on the Design ribbon.)

Figure 2-e

f. Save the file. If you are not going to continue to Part B of the iLab, you may close the file.

Part B. Creating the Access Database (Tables and Relationships) from the ERD

Preparation

Open the Visio file created in Part A of this iLab, you will reference this file in Part B.

Step 1: Locate MS Office Applications

a. If you are using Citrix, click on Microsoft Office Applications folder.
b. If you are using Access on a local computer, select Microsoft Office from your Program Menu.

Step 2: Start MS Access

a. Click on Microsoft Access and Microsoft Access should open like the following screen.

Figure 2-f

Step 3: Open a Blank Database

a. Click on the Blank desktop database Icon shown above in the top row. This will open a new database file. Please see the option to name your database and also select where it will be stored. It is important to both name your database and identify where it will be stored. In the File Name text box, enter YourNameLab2, then click the Create button to begin working with your database.

Figure 2-g

b. The new database opens to a blank table in Datasheet view as shown below. Click the View button on the left side of the ribbon to change to Design view.

Figure 2-h

c. Notice that the Save As dialog box appears and you are asked to name the table. As you will create the Suppliers table first, enter the table name Suppliers and click the OK button to close the dialog box.

Figure 2-i

Step 4: Create the Tables

a. The Design view opens with the Cursor in the Field Name Column. Notice the key symbol indicating that, unless you specify otherwise, this will be the primary key for the Suppliers table. Referring to the ERD, enter the name of the Suppliers table primary key, SupID. Use the dropdown arrow in the Data Type column to select the Short Text data type as specified in the ERD. In the Properties pane at the bottom of the window (There are two panes the table at the top and the properties at the bottom.) change the first property (Field size) in the General tab to 10 so that the field size meets the requirements of our ERD diagram.

Figure 2-j

b. Add the SupCompanyName field name below SupID field name and add the corresponding data type, Short Text. In the lower properties pane, set the field length to 25, and change the required property to Yes. Recall in the ERD that required fields are shown in bold font, so you can refer back to the bolded fields in your ERD.

Figure 2-k

c. Utilizing the Visio ERD, enter the remaining field/attribute names with corresponding data types and field properties. Once all fields are added, close the Suppliers table by clicking the Close button (x) on the right side of the design pane. You will be prompted to save changes, so be sure to save.

Figure 2-l

d. Please note that the data types are not on the Visio ERD. We have listed these here:

Suppliers Table

1. SupID-TEXT(10)
2. SupCompanyName-TEXT(25)
3. SupContactName-TEXT(25)
4. SupContactTitle-TEXT(25)
5. SupAddress-TEXT(20)
6. SupCity-TEXT(20)
7. SupRegion-TEXT(10)
8. SupPostalCode-TEXT(10)
9. SupCountry-TEXT(20)
10. SupPhone-TEXT(10)
11. SupFax-TEXT(10)
12. SupHomePage-Hyperlink

Products Table

1. ProdID-TEXT(10)
2. ProdName-TEXT(25)
3. ProdDescription-LONGTEXT
4. ProdUnitPrice-CURRENCY
5. ProdQtyPerUnit-NUMBER?Floating Pt. (2.75)
6. ProdUnitsInStock-NUMBER?Floating Pt. 2.75
7. ProdUnitsOnOrder-NUMBER?Whole Number (3)
8. ProdReorderLevel-NUMBER?Whole Number
9. ProdDiscontinued-NUMBER? General Units
10. SupID-TEXT(10)

OrderLine Table

1. OrderLineUnitPrice-CURRENCY
2. OrderLineQuantity-NUMBER?General Units
3. OrderLineDiscount-NUMERIC?General Units
4. ProdID-TEXT(10)
5. OrderID- TEXT(10)

Orders Table
1. OrderID TEXT(10)
2. OrderDate-DATETIME
3. OrderRequiredDate-DATETIME
4. OrderShippedDate-DATETIME
5. OrderShipVia-TEXT(10)
6. OrderShipName- TEXT(25)
7. OrderShipStreet-TEXT(25)
8. OrderShipCity-TEXT(20)
9. OrderShipState-TEXT(2)
10. OrderShipZip-TEXT(10)

e. Click on the Create ribbon tab, and then on the Table option on the left side of the ribbon. Access returns to the data view, and a new table is presented.

Figure 2-m

f. Access opens a new table in design view. When prompted for the table name, enter Products. Using the information from the ERD, create the Products table. Notice in the illustration below that the Long text data type for the ProdDescription field is comparable to the Access Memo data type. The Integer data type changes to NUMBER, and there is a YES/NO option that is considered Binary.

Figure 2-n

g. Repeat the process to create the remaining two tables from the ERD. When creating the OrderLine table, you will need to designate the composite primary key consisting of the ProdID and OrderID fields. To do so click and drag to select both rows in the design screen, and then click on the Primary Key button (Picture of a key). On the ribbon shown below. Notice that the primary key designator now shows to the left of both field names. Set the OrdLine Discount data type to Number, the field to Decimal, and the Precision to 2.

Figure 2-0

h. After creating and closing the final table, click on the database tools ribbon, and then the Relationships button. See below.

 

Figure 2-p

i. When the Show Table Dialog box appears, drag it to the position shown below so that you can see the relationships work space. Click and drag to select all four tables and then click the add button. You should see all four tables in the Relationship area. Close the Show Table Dialog box.

Figure 2-q

i. Click the table name and drag the tables to positions corresponding to those on the ERD. Then, click the bottom border of each table object and drag it so that all fields on the table are visible.

Figure 2-r

j. Create a relationship between the Suppliers and the Products table. To do this, left click and hold to drag and drop the primary field name of SupID in the Suppliers table to the SupID field in the Products table. This will open the edit Relationships dialog box. Make sure you show SupID in both tables as shown in the dialog box below. Click the checkbox for the Enforce Referential Integrity option. Click the Create button on the dialog box.

Figure 2-s

k. When the dialog box closes, you will see the relationship. Create the remaining relationships by dragging the primary key from the parent table to the corresponding fields in the associative table, OrderLine. Be sure to enforce referential integrity for all relationships, as this identifies the type of relationship for you. Your diagram should closely resemble the one below.

Figure 2-t

l. Save the database by clicking the Save icon or by using the File menu, Save command. Close the relationship diagram by clicking on the Close button. Close the database, and close Access. Congratulations on the successful creation of your database!

Attachment:- Attachments.rar

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92305925
  • Price:- $55

Priced at Now at $55, Verified Solution

Have any Question?


Related Questions in DBMS

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

You are in a real estate business renting apartments to

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL. The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, Propert ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Relational database exerciseyou have been assigned to a new

Relational Database Exercise: You have been assigned to a new development team. A client is requesting a relational database system to manage their present store with the anticipation of adding more stores in the future. ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As