Chat with us, powered by LiveChat RELATIONAL Database | WriteDemy

Question Description

Detailed instructions are attached.

Question 1:(25 Points)

The diagram below (also attached in DBST651_final_part2_ERD.png ) is an ERD for a public library database.

NOTE: There are two types of catalog items – Book and DVD. A customer can check out one item at a time.

Study the ERD and answer the following questions:

  1. Identify all relationships and specify cardinality and business rules. For example: 1:M between Library and Branch: a library has many branches; a branch belongs to one and only one library.
  2. For each entity, identify primary key and foreign key, if any. For foreign key, also specify parent entity and matching attribute in parent entity.
  3. Write SQL DDL statements to create tables in Oracle and also implement primary key, foreign key, and NOT NULL constraint. Include all columns listed with the correct data type. This step is important, as in Question 2 you will run INSERT statements to populate the tables you created and then write SELECT statement to query those tables.

  1. Write SQL statement for the following scenario:
    1. Add a new customer Eric Short with Customer_ID 10 and Customer_Zip 23456.
    2. Save changes permanently.
    3. Change customer Eric Short zip from 23456 to 20231.
    4. Cancel the change made in step c, restore data to its original status prior to step c.
    5. Delete customer Eric Short.
    6. Save changes permanently.

For SQL code, submit both source statements and results of running your statements.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order