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 jatechexpert Your Own Question

jatechexpert
jatechexpert, Computer Software Engineer
Category: Programming
Satisfied Customers: 1422
Experience:  Master of Computer Application plus 5+ year experience in Software development
51205519
Type Your Programming Question Here...
jatechexpert is online now
A new question is answered every 9 seconds

question about a database project

Customer Question

question about a database project
Submitted: 2 years ago.
Category: Programming
Expert:  Bryan replied 2 years ago.

JBryan42 :

What is the question?

Customer :

I am building a movie rental database that I am struggling to come up with some of the queries

Customer :

SQL queries for 10 situations

Customer :

These are the situations:

Customer :

5) Add $25 to the account balance of a customer of your choice who has dropped
the program, but not yet returned a rented DVD. (This is a transaction. It is not
a late fee but a DVD replacement fee.) (a transaction)
6) Add a new customer to the database and sign them up for the $11.95 two-at-atime
program. (a transaction)
7) Switch a customer from the two-at-a-time program to the three-at-a-time
program. (a transaction)
8) Cancel a customer from the two-at-a-time program. (a transaction)
9) Add a movie to a customer's queue so that the newly added movie will be the
next movie the customer receives. (a transaction)
10) Identify all customers that rented the same movie more than once, including
past and present rentals. (a query)
B. Additional five required student-defined situations.

Customer :

1) A customer wants to see the titles of all of the movies that are directed by
"Spielberg", and the titles of all of the movies that are directed by “Night
Shyamalan.” (a query)
2) Customer X wants a list of the titles of all the DVD’s that he/she has never
rented. (a query)
3) List 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. (a query)
4) Find the titles of the movie(s) that have been rented by the most number of
different people. This query should not count multiple rentals from the same
person; we are only interested in movies that have been rented by the most
number of different people. (a query)

Customer :

My ERD is probably not right but here it is:

Customer :

well, I cant attach my ERD

JBryan42 :

Ok. Did you need SQL sueries written for all of these cases?

Customer :

YES

Customer :

how long will that take? I will be away for awhile

Customer :

Hi

Expert:  jatechexpert replied 2 years ago.

hi

 

thanks for using justAnswer.com

 

i will help you to do this

 

can you send all details

 

 

Customer: replied 2 years ago.



In order to rent a movie, a person must be enrolled at the online store. There are two different
membership programs. As quoted from NetFlix®:
“With NetFlix you can rent as many DVDs from the comfort of your home and have them
delivered to your door in about 1 business day. There are no late fees and no due dates,
and shipping is free both ways. Programs start at $11.99 plus any applicable tax. With our
most popular program, 3-at-a-time, you can rent as many DVDs as you want for just
$17.99 a month. You keep a revolving library of up to 3 DVDs at a time and can exchange
them for new available DVDs as often as you like. … Our 2-at-a-time program (limit 4
DVDs per month) is $11.99 plus any applicable tax per month.” (From
http://www.netflix.com)
Below is an example use case to aid in understanding the Netflix operation:
1. A customer signs up for the 3-at-a-time program.
2. The same customer adds 10 movies to their queue.
3. Netflix mails to the customer the first three movies in their queue.
4. The customer watches and returns the first movie to Netflix.
5. Netflix mails out the next movie in the queue to the customer, which is the fourth movie
added in Step #3.
6. The customer closes their account, but only returns two of the three movies the customer
has at home.
7. Netflix charges the customer $25 for the missing movie.
This use case is not exhaustive. There will be elements in your database mentioned in the
Netflix specification, but not mentioned in this use case.
The database will store membership information for each person, the movies she/he rented,
movies in the queue to be rented, when were these movies returned, and so on.
The rental history is used for two purposes:
 To give employees a basis to work from when they are asked what movie the customer
has rented out or if it was lost in mail
 To determine if the movie was never mailed back by the customer
The database that you design must support all the usual value chain operations occurring at a
video rental e-store. You will design the Entity-Relationship model (ERD) for this database, and
its corresponding relational model. It is not possible to attempt a full production-capable
database for a large enterprise such as NetFlix in the time period afforded by this course; such a
database would have a few hundred tables. A general guideline is that to effectively create this
design for this course, the logical ERD should have between 10 and 20 entities. This number is
not exact and will vary according to your specific implementation. Example entities include
Customer, Movie, Rental, and Queue.
Expert:  jatechexpert replied 2 years ago.

hi

 

do you have THE TABLE DESIGN or ERD

Customer: replied 2 years ago.
I have the ERD and the scripts for the table but not sure how to insert it here as I dont see anywhere to attach it
Expert:  jatechexpert replied 2 years ago.

hi

 

you can upload throug www.wikisend.com

and send me the uploaded link or id

Customer: replied 2 years ago.
The ERD
  • File ID: 331248
  • http://wikisend.com/download/331248/TermProject.vsd
The Table creation Scripts
  • File ID: 164338
  • http://wikisend.com/download/164338/TermProjectScripts.txt


Expert:  jatechexpert replied 2 years ago.

hi

 

ok let me check them

 

when you need this

Customer: replied 2 years ago.
before 6am CST
Customer: replied 2 years ago.
I should say tonight
Expert:  jatechexpert replied 2 years ago.

hi

i will do within 4 hours

Customer: replied 2 years ago.
Thanks much!!!...will be wating
Expert:  jatechexpert replied 2 years ago.

hi

ok then see you

Expert:  jatechexpert replied 2 years ago.

hi

 

can you send the TermProject.vsd as another format, in a Wrod Document

 

i don't have visio

Customer: replied 2 years ago.
  • File ID: 657814
http://wikisend.com/download/657814/Visio-TermProject.pdf
Expert:  jatechexpert replied 2 years ago.

ho

ok

 

Expert:  jatechexpert replied 2 years ago.

hi

 

here is the answer link below

 

http://wikisend.com/download/490438/Oracle 11g.doc]Oracle 11g.doc

 

hope this helps

 

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
< Last | Next >
  • http://ww2.justanswer.com/uploads/SP/spatlanta2010/2011-6-23_12450_photo.64x64.gif ATLPROG's Avatar

    ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Computer Software Engineer

    Satisfied Customers:

    5603
    Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
  • http://ww2.justanswer.com/uploads/unvadim/2010-11-15_210218_avatar.jpg unvadim's Avatar

    unvadim

    Computer Software Engineer

    Satisfied Customers:

    1158
    Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.
  • http://ww2.justanswer.com/uploads/lifesaver333/2010-10-17_191349_ls.jpeg lifesaver's Avatar

    lifesaver

    Computer Software Engineer

    Satisfied Customers:

    950
    Several years of intensive programming and application development experience in various platforms.
  • http://ww2.justanswer.com/uploads/EH/ehabtutor/2012-8-2_202016_1.64x64.jpg ehabtutor's Avatar

    ehabtutor

    Computer Software Engineer

    Satisfied Customers:

    864
    Bachelor of computer science, 5+ years experience in software development, software company owner
  • http://ww2.justanswer.com/uploads/RA/rajivsharma086/2012-6-6_17128_displaypic.64x64.jpg Raj's Avatar

    Raj

    Computer Engg.

    Satisfied Customers:

    860
    BE CS, 4+ Experience in Programming and Database (ERP)
  • http://ww2.justanswer.com/uploads/eljonis/2010-01-06_130406_eljon2.jpg Eljon's Avatar

    Eljon

    Consultant

    Satisfied Customers:

    590
    11 yrs of programming (PHP, WordPress, XSL, SQL, JavaScript)