1. Write the MySQL statements. For the given MovieCo ERD below, write MySQL statements: MEMBERSHIP PK...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write the MySQL statements. For the given MovieCo ERD below, write MySQL statements: MEMBERSHIP PK MEM_NUM MEM_FNAME MEM_LNAME MEM_STREET MEM_CITY MEM_STATE MEM_ZIP MEM_BALANCE PRICE PK PRICE CODE -H--O PRICE_DESCRIPTION PRICE_RENTFEE PRICE_DAILYLATEFEE PK Your answer: RENTAL RENT NUM RENT_DATE FK1 MEM_NUM a) List all details about all members. Your answer: HO----X #H MOVIE PK MOVIE NUM MOVIE_TITLE MOVIE YEAR MOVIE_COST MOVIE_GENRE FK1 PRICE_CODE DETAILRENTAL PK,FK1 RENT NUM PK,FK2 VID NUM H-O DETAIL_FEE DETAIL_DUEDATE DETAIL_RETURNDATE DETAIL_DAILYLATEFEE PK VIDEO VID NUM VID_INDATE FK1 MOVIE_NUM b) List all details about price ordered by rent fee in ascending order. Hints: • Use the ORDER BY clause with PRICE_RENTFEE. 1. Write the MySQL statements. For the given MovieCo ERD below, write MySQL statements: MEMBERSHIP PK MEM_NUM MEM_FNAME MEM_LNAME MEM_STREET MEM_CITY MEM_STATE MEM_ZIP MEM_BALANCE PRICE PK PRICE CODE -H--O PRICE_DESCRIPTION PRICE_RENTFEE PRICE_DAILYLATEFEE PK Your answer: RENTAL RENT NUM RENT_DATE FK1 MEM_NUM a) List all details about all members. Your answer: HO----X #H MOVIE PK MOVIE NUM MOVIE_TITLE MOVIE YEAR MOVIE_COST MOVIE_GENRE FK1 PRICE_CODE DETAILRENTAL PK,FK1 RENT NUM PK,FK2 VID NUM H-O DETAIL_FEE DETAIL_DUEDATE DETAIL_RETURNDATE DETAIL_DAILYLATEFEE PK VIDEO VID NUM VID_INDATE FK1 MOVIE_NUM b) List all details about price ordered by rent fee in ascending order. Hints: • Use the ORDER BY clause with PRICE_RENTFEE.
Expert Answer:
Answer rating: 100% (QA)
Based on the provided ERD Ill write the MySQL statement... View the full answer
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these databases questions
-
Write the SQL code to create the table structures for the entities shown in Figure P7.65. The structures should contain the attributes specified in the ERD. Use data types that would be appropriate...
-
The following tables provide a very small portion of the data that will be kept in the database. This data needs to be inserted into the database for testing purposes. Write the INSERT commands...
-
Why is emotional intelligence important for team performance and how can you use emotional intelligence to increase team performance?
-
Tort cases are so common that it is likely you or someone you know has been involved in a tort case. If so, share what the case was about, what the outcome was, and how you felt about the case and...
-
Reconsider the Profit & Gambit Co. advertising-mix problem presented in Section 2.7. Recall that a major advertising campaign is being planned that will focus on three key products: a stain remover,...
-
In the laboratory, the Escherichia coli bacteria grows such that the rate of change of the population is proportional to the population present. Assume that 500 bacteria are initially present, and...
-
47 Identify each number as a natural number, an integer, a rational number, or a real number.
-
Mark Price Company uses the gross profit method to estimate inventory for monthly reporting purposes. Presented below is information for the month of May. Inventory, May 1...
-
there is one more question...F--- If Harriet uses 30 years instead of 25 for both 11.5% and 15%, what is the difference in interest? (use 360 days a year. Round intermediate calculations to 2 decimal...
-
For the base case in this section, as a percentage of sales, COGS = 70 percent, SGA = 14 percent, R&D = 2.8 percent. Depreciation, Interest expense are fixed as stated. Tax Rate is 21 percent. 1.a...
-
In relation to Management Control System in Finance Management, answer the below questions 1. What are the Role and Benefits of Management Control Systems in Finance Management. 2. What are the C...
-
Johnson, Inc., a closely held company, wishes to engage Norr, CPA, to examine its annual financial statements. Johnson was generally pleased with the services provided by its prior CPA, Diggs, but...
-
The first standard of field work includes adequate planning of the work. Required: a. What is the objective of audit pianning? b. What information about the client is essential in planning? c....
-
Different views, opinions, approaches and methods have existed in economics for almost as long as the profession has existed. Despite this, some approaches and methods tend to rise and dominate...
-
The audit process may be divided into three categories: planning the audit, executing the audit program, and reporting the findings. Within these categories, the following specific steps must be...
-
The AICPA Division for CPA Firms provides for an SEC Practice Section and a Private Companies Practice Section. Required: a. Identify the similarities and differences in objectives between the two...
-
Which of these statements regarding the use of employer-owned life insurance to informally fund a nonqualified deferred compensation plan is CORRECT? A) The employee can access the cash value within...
-
The diameter of a sphere is 18 in. Find the largest volume of regular pyramid of altitude 15 in. that can be cut from the sphere if the pyramid is (a) square, (b) pentagonal, (c) hexagonal, and (d)...
-
Create the table that would result from applying the SELECT and PROJECT relational operators to the CHARTER table to return only the CHAR_TRIP, CHAR_PILOT, and CHAR_COPILOT attributes for charters...
-
ROBCOR, Inc., whose sample data are contained in the database named Ch13_P4.mdb, provides "on demand" aviation charters using a mix of different aircraft and aircraft types. Because ROBCOR has grown...
-
Write the SQL code to delete the row for the person named William Smithfield, who was hired on June 22, 2004, and whose job code classification is 500.
-
Baltimore Inc. reported pretax GAAP income of \(\$ 45,000\) in 2020 . In analyzing differences between GAAP income and taxable income, the company determined that it had deducted \(\$ 5,000\) in...
-
Refer to information in Brief Exercise 18-33. Prepare a reconciliation between Baltimore Inc.'s effective and statutory tax rates. Exercise 18-33 Baltimore Inc. reported pretax GAAP income of \(\$...
-
Starbucks Corporation recognized the following amounts in a recent annual report on Form 10-K. a. Calculate the deferred tax asset valuation allowance as a percentage of deferred tax assets for...
Study smarter with the SolutionInn App