How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Scott Your Own Question
Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
3546829
Type Your Homework Question Here...
Scott is online now
A new question is answered every 9 seconds

I need the following 10 use cases and and ERD completed. For

Customer Question

I need the following 10 use cases and and ERD completed. For the use cases below- please provide the queries in a zipfile. The logical ERD will be mapped to a relational database schema through the use of SQL. The
schema should contain tables, primary and foreign keys, indexes, and optionally triggers and
stored procedures. The primary and foreign keys will help enforce the relationships indicated in
the logical ERD, and help enforce referential integrity. The tables need to be filled with some
fictional data. Make sure you integrate sample data from the situations above, for example,
‘Spielberg’ should exist in your database. Some tables may just need a few rows. Barring
extraordinary circumstances, each table should need no more than 15 rows to effectively
demonstrate the correctness of the queries, triggers, and stored procedures. You may need to
be creative when inserting the data so that the queries return reasonable results.1) A customer requests the titles of all movies that are directed by "George Lucas" or by
“Rich Christiano”. Write a single query that retrieves this information.
2) Management requests the names of all currently active customers, as well as the name
of the current plan in which each of these customers is enrolled. Write a single query that
retrieves this information.
3) A customer wants to add a movie to their queue so that the newly added movie will be
the next movie they receive. Develop a parameterized stored procedure that
accomplishes this, then invoke the stored procedure for a customer of your choosing.
4) A customer requests the titles of all the DVD’s that he or she has not rented. Write a
single query that retrieves this information for a customer of your choosing.
5) A customer cancels their membership and does not return a rented DVD, necessitating
that a $25 DVD replacement fee be charged to their account. Develop a parameterized
stored procedure that accomplishes this, then invoke the stored procedure for a customer
of your choosing.
6) A customer enrolled in the two-at-a-time plan cancels their membership. When a
customer cancels their membership, they become inactive, but their DVD queue and
rental history remains in the database, in the event they return as a customer. Develop a
parameterized stored procedure that accomplishes this, then invoke the stored procedure
for a customer of your choosing.
7) Management requests the names of all movies that are currently sold out. A movie is sold
out if all copies of the movie are currently rented and not yet returned. Write a single
query that retrieves this information for management.
8) Management requests identification of the plan with the most customer enrollees, and for
that plan, the name, number of DVDs allowed at one time, and the number of customer
enrollees. Write a single query that retrieves this information for management.
9) Management requests the names of all customers, and for each customer, the titles of
the movies that they rented multiple times. For each title, management would like to see
the number of times it was rented by the customer, only including titles that the customer
rented more than once. If a customer has no rentals, or did not rent any movies multiple
times, management does not want to see them in the list. Write a single query that
retrieves this information for management.
10) Management requests the titles of all movies, and for each movie, the number of different
customers that rented the movie. They would like the list to be ordered from the highest
number of different rentals to the lowest number. Multiple rentals of the same movie by
the same customer only count as one unique rental. Management is interested in the
number of different customers that rented the movie, but not whether the same customer
rented the same movie more than once. Write a single query that retrieves this
information for management.
Submitted: 5 months ago.
Category: Homework
Expert:  LogicPro replied 5 months ago.

Hi,

Welcome back.

Hope you are doing well.

What is the deadline for this?

Related Homework Questions