Create an entity diagram showing all your attributes

Assignment Help Database Management System
Reference no: EM131143624

Project 1

In this project you will be provided with a description of an application (below) to create an entity-relationship diagram (ERD) and design accompanying table layout using sound relational modeling concepts and practices. The relationships between the entities and the attributes for the entities will be identified and described. This database will provide the foundation for the follow-on project. The following paragraphs provide the background and summary of the business requirements.

You are a database consultant with Ace Software, Inc. and have been assigned to develop a database for the Mom and Pop Johnson video store in town. Mom and Pop have been keeping their records of videos and DVDs purchased from distributors and rented to customers in stacks of invoices and piles of rental forms for years. They have finally decided to automate their record keeping with a relational database.

You sit down with Mom and Pop to discuss their business, and watch their operation for about a week. You discover quickly that a video and a DVD are both copies of a movie kept in a separate plastic case that is rented out. They have several copies of each movie they rent; therefore there are several videos and DVDs for each movie title. You learn that in their inventory they have several thousand videos and DVDs, which they get wholesale from about a half dozen distributors. The video and DVD prices to them are based on the quantity of their shipment and the past business they have done with each company.

The price of a DVD for a movie might be different than the price of a video for the same movie, even from the same distributor. Each distributor provides different types of movies (e.g., suspense, horror, mystery, comedy, etc.). A single distributor may provide several different types of movies in both video and DVD format. It is possible to obtain the same movie from multiple distributors, and at different wholesale prices.

Each video and DVD has a unique identification number that Mom and Pop assign in their inventory, in addition to the distributor's serial number for the item. Each movie also has a unique identification number Mom and Pop assign in addition to the title, and any movie IDs the distributors use in their electronic catalogs. Distributors provide electronic catalogs to Mom and Pop and the information from these catalogs must be included in the database.

Mom and Pop need to record when a video or DVD is rented, when a video or DVD is returned, and all customer charges such as late and damaged fees, failure to rewind fees, and taxes. They need a report of which videos are returned late because there are standard and late charges. On occasion there are discount prices for certain movies or types of movies. Customers want to rent movies based on actors or actresses, running length, type of movie, rating, year released, the director, and the academy awards won (by the movie, the actors, the actresses and/or the directors). Customers also want to know how many videos they have rented in the last month, year, and so forth. Mom and Pop need to keep only basic information on customers in their database, such as name, address, telephone numbers, etc.

There must be no limit to the number of video and/or DVD copies of a movie that Mom and Pop can have in their inventory. Video/DVD ID numbers, movie ID numbers, and distributor ID numbers for videos, DVDs, and movies are all different. Also, each movie must be able to have an unlimited number of actors, actresses, directors, and academy awards (i.e., Oscars). Other types of awards (e.g., Golden Globe, People's Choice, etc.) are not of interest for this application. The rental of equipment, sale of videos, DVDs, popcorn, etc., is not to be kept in the database.

Using this information, you should:

Step 1) Determine and list your entities. Then create relationship sentence pairs between those entities that are related. You should not have any many-to-many relationships.

Entities:
Distributor
Shipment
Shipment_Line
DVD_video
Movie
Actor
Cast_member
Movie_Catalog_Entry
Movie_Director
Movie_Award
Rental_line
Rental
Customer
Award
Movie_Catalog
Actor_Award
Director
Director_Award

Relationships between entities:

DISTRIBUTOR Sends SHIPMENT to video store
SHIPMENT is sent via SHIPMENT_LINE.
An MOVIE_CATALOG_ENTRY of SHIPMENT_LINE is made in MOVIE_CATALOG
SHIPMENT_LINE has information of movies
DVD_VIDEO has MOVIE
MOVIE has ACTOR and information is stored in CAST_MEMBER
MOVIE is directed by DIRECTOR and information is stored in MOVIE_DIRECTOR
DVD_VIDEO is rented and information is stored in RENTAL and RENTAL_LINE
DVD_VIDEO is rented to CUSTOMER
MOVIE can get AWARD and information is stored in MOVIE_AWARD
ACTOR can get AWARD and information is stored in ACTOR_AWARD
DIRECTOR can get AWARD and information is stored in DIRECTOR_AWARD

Step 2) Create an entity/relationship diagram (ERD) showing all your entities, attributes, and relationships. Sketch your ERD by hand or use a drawing program. Your diagram must beon a single page. All entities should be relatated to at least one other entity. Your ERD should have all one-to-many relationships and not have any many-to-many relationships.

Project 2

In this project you will perform the physical design and implementation using SQL Data Definition Language (DDL) and proceed with populating the Mom and Pop Johnson Video Store database via Data Manipulation Language (DML) SQL commands.

Each of the steps below requires a SPOOL file to be submitted. Be sure your SPOOL file contains your SQL statements along with the Oracle responses and/or displayed results. Do NOT submit your SQL script files. Only submit your output SPOOL files. If you are using iSQL*Plus you must screen snapshots as necessary of your SQL and the results.

Project 2 Details:

1. Create Oracle database tables using SQL Data Definition Language (DDL) for each table listed in Project 1. Make sure that entity and referential integrity are enforced by declaring a primary key for each table (these may be composite keys) and declaring all appropriate foreign keys. Your CREATE TABLE statements must show integrity constraints, as appropriate, for NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, REFERENCES, and CHECK constraints. Be sure to save your script used to create these tables as yournameproject2step1.sql. You should test your script to make sure it runs without error. Submit your SPOOL file showing that all SQL in your SQL script file worked properly.

2. Provide two examples of SQL DML (i.e., "INSERT") commands that fail different table integrity constraints you set up in one of your table. Explain why the statements fail. Be sure to save your script used to as yournameproject2step2.sql. You can include comments in the SQL script describing why the insert statements failed. Submit your SPOOL file showing that all SQL in your SQL script file worked properly.

3. Populate each of your tables with at least five valid rows of data each and show the SQL you used. Populate other tables in your database, as necessary, to satisfy referential integrity. Be sure to save your script used to create these records as yournameproject2step3.sql. You should test your script to make sure it runs without error. Submit your SPOOL file showing that all SQL in your SQL script file worked properly.

4. Write SQL to perform the following queries and updates. Be sure to save your script used to create these records as yournameproject2step4.sql. You should test your script to make sure it runs without error:

o Retrieve all of your customers' names, account numbers, and addresses (street and zip code only), sorted by account number.
o Retrieve all of the videos rented in the last 30 days and sort in chronological rental date order.
o Produce a list of your distributors and all their information sorted in order by company name.
o Update a customer name to change their maiden names to married names. You can choose which row to update. Make sure that you use the primary key column in your WHERE clause to affect only a specific row.
o Delete customers from the database. You can choose which row to delete. Make sure that you use the primary key column in your WHERE clause to affect only a specific row.

Submit your SPOOL file(s) showing that all SQL in your SQL script file worked properly. Show the actual SQL statements executed and the results the SQL produced below the code. Do NOT submit your SQL script files. Also, submit all of your .sql files.

Before attempting this project, be sure you have completed all of the reading assignments, hands-on labs, discussions, and assignments to date.

Design a class named Clock. You should use your IDE for this exercise. The class contains private data fields for startTime and stopTime, a no argument constructor that initializes the startTime to the current time, a method named start() that resets the startTime to the given time, a stop() method that sets the endTime to the given time and a getElapsedTime() method that returns the elapsed time in seconds. Create a TestClock class to construct a Clock instance and return the elapsed time. Command line arguments should be used to send the start and end times. You should use the java.time classes.

Reference no: EM131143624

Questions Cloud

During 2011 the following selected cash transactions : Journalize the above transactions. The company uses straight-line depreciation for buildings and equipment. The buildings are estimated to have a 50-year life and no salvage value.
What is the equivalent grid azimuth for the line : If the geodetic azimuth of a line is 18°47'20.1", the convergence angle is -1°08'06.8" and the arc-to-chord correction is -1.5", what is the equivalent grid azimuth for the line?
Create a master page with a theme of your own : Explain the use of Master pages and themes, create a master page with a theme of your own, the master will contain a simple welcome page and the calculator page you created from the prior week.
What is the equivalent grid azimuth for the line : If the geodetic azimuth of a line is 205°06'36.2", the convergence angle is -0°42'26.1" and the arc-to-chord correction is +0.8", what is the equivalent grid azimuth for the line?
Create an entity diagram showing all your attributes : Create an entity/relationship diagram (ERD) showing all your entities, attributes, and relationships. Sketch your ERD by hand or use a drawing program. Your diagram must beon a single page.
Calculate grid lengths for the traverse lines : The horizontal ground lengths of a three-sided closed-polygon traverse were measured in feet as follows: AB = 501.92, BC = 336.03, and CA = 317.88 ft. If the average orthometric height of the area is 4156.08 ft and the average geoid separation is ..
What is the standard deviation of the returns on this stock : The returns on the common stock of Maynard Cosmetic Specialties are quite cyclical. In a boom economy, the stock is expected to return 22 percent in comparison to 9 percent in a normal economy and a negative 14 percent in a recessionary period. The p..
Lehman company acquired equipment costing : At the beginning of 2008, Lehman Company acquired equipment costing $90,000. It was estimated that this equipment would have a useful life of 6 years and a residual value of $9,000 at that time.
Determine spcs83 coordinates of stations b and c : Using grid lengths of Problem 20.28 and grid azimuths from Problem 20.29, calculate departures and latitudes, linear misclosure, and relative precision for the traverse.

Reviews

Write a Review

Database Management System Questions & Answers

  What is the highest normal form of the universal schema

Calculate the average number of block accesses for a random retrieval - what is the key for the universal schema R and what is the highest normal form of the universal schema R? Please explain.

  Describe the data structure that will store all data element

Provide an Entity Relationship Model (ERM) that will describe the data structure that will store all data elements. Note: The graphically depicted solution is not included in the required page length.

  Logical database design - conceptual database design

Draw the corresponding GRD, exhibiting all the primary keys and foreign keys. For simplicity, no other attributes nor multiplicity constraints are required.

  Create table command, and modify it to create a new table

Start with this CREATE TABLE command, and modify it to create a new range_partitioned table named CH07EMPLOYEE_RANGE that contains the same column as the employee table.

  Create a complete e-r diagram in crows foot notation

Design a database using the following information. Using Microsoft Visio 2013, create a complete E-R Diagram in Crow's Foot notation (including entity names, attributes, primary keys and foreign keys) that can be implemented, and then implement it..

  Determine the functional dependencies

After determining the functional dependencies, convert this table to an equivalent collection of tables that are in third normal form.

  Delete an existing product from the database

Utilise an include statement to refer to connection.php instead of the long version of the database connection code so that you can keep the database more secure. See Notes for more details.

  Decompose the table into a set of 3nf tables.

Draw a dependence diagram. There are examples in the reading assignments of dependence diagrams.

  Find all non-trivial dependencies

Compute the closure sets of R, find all non-trivial dependencies and what are the candidate keys of R?

  Data mining

DATA MINING-Business and Management Scenario assignment-Data Warehouse Reports. This is Part Three of the three-part assignment. For this week, you will complete the following: Resource: Business and Management Scenario assignment, Document data ware..

  Produce an entity-relationship model for the scenario

Produce an Entity-Relationship Model for the scenario, Query your database, Optimize your Database,Secure your Database, and built Building a Web Interface

  Develop the ipo chart, flowchart, and pseudocode for an app

You will need to develop the IPO Chart, flowchart, and pseudocode for an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd