Ask DBMS Expert


Home >> DBMS

Exercise 1:

Create a crow's foot ERD for each of the following descriptions. (Note: The word "many" merely means "more than one" in the database modeling environment.)

a. Each of the MegaCo Corporation's divisions is composed of many departments. Each of those departments has many employees assigned to it, but each employee works for only one department. Each department is managed by one employee, and each of those managers can manage only one department at a time.

b. During some period of time, a customer can rent many videotapes from the BigVid store. Each of the BigVid's videotapes can be rented to many customers during that period of time.

c. An airliner can be assigned to fly many flights, but each flight is flown by only one airliner.

d. The KwikTite Corporation operates many factories. Each factory is located in a region. Each region can be "home" to many of KwikTite's factories. Each factory employs many employees, but each of those employees is employed by only one factory.

Exercise 2:

Suppose that you are using the following a database composed of the two tables shown in

Table name: DIRECTOR Database name: EXERCISE2_QUESTION

DIR_NUM DIR_LNAME DIR_DOB
100 Broadway 12-Jan-65
101 Hollywoody 18-Nov-53
102 Goffy 21-Jun-62

Table name: PLAY

PLAY_CODE PLAY_NAME DIR_NUM
1001 Cat on a cold, bare roof 102
1002 hold the mayo, pass the bread 101
1003 I never promissied your coffee  102
1004 silly putty goes to washington 100
1005 see no sound, hear no sight 101
1006 starstruck in biloxi 102
1007 stranger in parrot Ice  101

a. Identify the primary keys.

b. Identify the foreign key.

c. Draw the Entity Relationship model.

d. Draw the relational schema to show the relationship between DIRECTOR and PLAY.

e. Suppose you wanted quick lookup capability to get a listing of all the plays directed by a given director. What table would be the basis for the index table, and what would be the index key?

e. What would be the conceptual view of the index table described in part e? Depict the contents of the (conceptual) index table.

Exercise 3

Create an ERD based on the Crow's Foot model ( Database Schema), using the following requirements.

- An INVOICE is written by a SALESREP. Each sales representative can write many invoices, but each invoice is written by a single sales representative.

- The INVOICE is written for a single CUSTOMER. However, each customer may have many invoices.

- An INVOICE may include many detail lines (LINE), which describe the products bought by the customer.

- The product information is stored in a PRODUCT entity.

- The product's vendor information is found in a VENDOR entity.

Exercise 4: NORMALISATION

The dependency diagram in Figure Q7.2 indicates that authors are paid royalties for each book that they write for a publisher. The amount of the royalty can vary by author, by book, and by edition of the book.

1320_figure.jpg

Figure - Book royalty dependency diagram

a. Based on the dependency diagram, create a database whose tables are at least in 2NF, showing the dependency diagram for each table.

b. Create a database whose tables are at least in 3NF, showing the dependency diagram for each table.

- Re-name the RicardoCars database as follows.

o RicardoCars -StudID-Lastname , where StudID is your student number.

Write both your Stud_ID and Lastname as it is a group of 2 students assignment.

RicardoCars is a company that builds model cars of popular classic and new cars such as Chevrolet, Ford, Porsche, Ferrari, Dodge, Jaguar, Mercedes, Plymouth, Ferrari and Lamborghini. There are four mechanics who work in this company.

This company has developed a database to keep a track of the details of the cars and mechanics who worked there.

This database has two tables.

- Mechanic - this table has some details about the mechanic
- Catalog - this table has the details of the cars

1. Start Access application and open the RicardoCars.mdb database (this is the database which you have already renamed).

2. Study the two tables in the database. Double click on each table and use "design view" to study the table design. Double click on each table and use "data sheet view" to study the details of the records.

3. Mechanics are paid depending on the Type of the car they make (Type is a field in the Catalog table) and how many cars they make. For example, for Ferrari and Jaguar, rate per car is $3.50 and $3.00 respectively.

The following are the Rate (per car) for different car types.

Type of car

Rate per car in $

Dodge

2.00

Ferrari

3.50

Jaguar

3.00

Mercedes

3.75

Porsche

3.25

4. Go to the "design view" of Catalog table. Insert a new row just below "Type" field. Make sure that the field data type and size are correct . Name this new field as "Rate". (2 marks)

5. Go to data sheet view of Catalog table. You will now see an empty column with the field name "Rate". Fill up the "Rate" column with relevant values. (relevant values of Type and Rate are given in the table at (c) ) (2 marks)

NOTE: Close ALL the tables when you are creating queries. Use SQL in your queries

6. Create a query (using SQL in Access) that will select all the car types of which the price is less than $40. The query should display all of the fields of the catalog table. Sort the results. Run the query. Save the query as Less than 40. (5 marks)

7. Create a query (using SQL in Access) that lists all the cars that the mechanic M102 had worked on. The query should display the type of the car, model, price, mechanic ID and mechanic name. Save the query as MechanicM102. (5 marks)

8. Mechanics are paid using the following formula.

Pay = Rate * QuantityMade

Create a calculated field called Pay in a new query. Include all the fields from the Catalog table in the query. Sort the results. Run the query. Save this query as CarPayment (6 marks).

9. Create a columnar form that can be used to enter and update all the details of the Catalog table. Use any style that you wish for the form. A maximum mark is allocated to the best designed form. Save the form as CatalogUpdate. (2 marks)

10. Create a report containing the CarID, the Type, the Model, the QuantityMade and the MechanicalName. Save the report as MechanicReport. (2 marks) Use any style that you wish.

11. Save your solution in your USBs and save one copy in your drive (backup copy) when completed.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91784013
  • Price:- $70

Guranteed 36 Hours Delivery, In Price:- $70

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