NEED the SQL query that solves each problem
4) List the member numbers of all members who rented a movie. Do not list duplicates. (w3schools -> SQL Distinct)
5) List the member names [first and last] for members from Kentucky {KY}. (w3schools -> SQL Where)
6) List the names of all movies in alphabetical order (w3schools -> SQL ORDER BY)
7) List the movie title and cost in descending order by cost (w3schools -> SQL Order By)
8) List all information for movies that cost $50 or less
(w3schools -> SQL Where)
If you have any doubts, please give me comment...
-- 4
SELECT DISTINCT MEM_NUM
FROM RENTAL;
-- 5
SELECT MEM_FNAME, MEM_LNAME
FROM MEMBERSHIP
WHERE MEM_STATE = 'KY';
-- 6
SELECT MOVIE_TITLE
FROM MOVIE
ORDER BY MOVIE_TITLE;
-- 7
SELECT MOVIE_TITLE, MOVIE_COST
FROM MOVIE
ORDER BY MOVIE_COST DESC;
-- 8
SELECT *
FROM MOVIE
WHERE MOVIE_COST<=50;
NEED the SQL query that solves each problem 4) List the member numbers of all members...
Scenario: Elite Video is a startup company providing concierge DVD kiosk service in Kennesaw, GA. FIGURE P8.47 THE CH08 MOVIECO ERD DETAILRENTAL MEMBERSHIP RENTAL PK MEM NUM PK,FK1 RENT NUM PK,FK2 VID NUM PK RENT NUM RENT DATE FK1 MEM_NUM MEM_FNAME MEM_LNAME MEM_STREET MEM_CITY MEM_STATE MEM_ZIP MEM_BALANCE DETAIL_FEE DETAIL_DUEDATE DETAIL_RETURNDATE DETAIL_DAILYLATEFEE MOVIE VIDEO PK MOVIE NUM PK VID NUM PRICE -0% PK PRICE CODE VID_INDATE FK1 MOVIE_NUM PRICE DESCRIPTION PRICE_RENTFEE PRICE_DAILYLATEFEE MOVIE_TITLE 0---06 MOVIE YEAR MOVIE_COST MOVIE GENRE FK1 PRICE_CODE...
EliteVideo is a startup company providing concierge DVD kiosk service in upscale neighborhoods. Each store can own several copies (VIDEO) of each movie (MOVIE). For example, the store may have ten copies of the movie Titanic. In this case, Titanic would be an instance in the MOVIE table, while each rentable copy would be an instance in the VIDEO table. A rental transaction (RENTAL) involves one or more VIDEOs being rented to a member (MEMBERSHIP). A video can be rented...
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...
1,List the first and last name of the donators that donated in
December 2009.
2. List the ID's of the volunteers that have not worked.
3. List the ID, first name, and last name of any employees who
works in the Finance department.
4. List all the different prices suppliers have for 'Tasty Meat'
product.
5. Select the store ID and store phone number for all stores in
'St.Paul'.
6. List the member first and last name, address, city, zip...
Use SQL to slove the problem
1. (7) List all condos in building C, the date they were
cleaned, and the full name of the staff who cleaned them in
August.
2. (5) Display the activities reserved in June for more than 3
people. Include the activity description and label the output as
Activities Reserved in June.
3. (4) Listing for all guides and their certification renewal
dates for next year. Include full name and hire date.
4. (6) Management...
Overview This lab provides you the opportunity to insert and update data with the use of SQL commands. The lab will utilize the FLIX2YOU problem, the current schema. In order to start this lab, you must have successfully completed Lab # 6. In Lab # 6, you executed a script that was provided to you. This script created 7 of the FLIX2YOU tables as documented in the Entity Relationship Diagram in the FLIX2YOU problem document. The second part of lab...