Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2) What were the total rental fees for each member by member last name? (w3schools-> SQL Inner Join& SQL Functions Count, Avg, Sum & SOL

image text in transcribed
image text in transcribed
2) What were the total rental fees for each member by member last name? (w3schools-> SQL Inner Join& SQL Functions Count, Avg, Sum & SOL Group By)- this requires 2 joins 13) What were the total rental fees for members treport Mem num who total fees were greater than $5-change the output label to FeesMoreThan5S? (w3schools->SQL Inner Join & SQL Functions Count, Avg, Sum& SQL Group By & SQL Having) 14) What was the highest fee paid by each member [report last name and fee]. (w3schools-> SQL Inner Join& SQL Functions Min Max & SQL Group By) 15) What are the movie titles, due dates and return dates for movies that have not been returned? (w3schools-> SQL Inner Join & SQL Null Values) -this requires 2 joins You only need to turn in the SQL statements (not your results or any screen shots -See the next page for some short cut hints -Note on Table Aliases and Fully Qualified Attribute [column] Names For those of you who are constructing these queries in the Oracle command line interface, you are noticing this is a lot of typing. the way we used to have create SQL statements-when we didn't have GUI interfaces), several shortcuts have been developed: To reduce the typing (because, remember this is Shortcut ONE- not needing to type in the fully qualified attribute name Most of what we have seen in the lecture notes and demos are the short version of an attribute name. However, attributes are really known by their fullname: TABLE attributeName for those of you using Access, you have already seen this For example, in this table the real name for the KMEM NUM member's first name is: MEMBERSHIP. Mem Fname case does not matter here-I use the format of all caps for TABLE names and elBack for attribute names

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

1-4 How will MIS help my career?

Answered: 1 week ago