Create three tables a. Customer b. Rent C. Film . Define appropriate data type and data...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create three tables a. Customer b. Rent C. Film . Define appropriate data type and data size Define column constraints Specify Integrity/Domain/Primary Key/Referential Integrity constraints a. Primary key b. Foreign key CONSTRAINT rent fk c FOREIGN KEY cid REFERENCES customer ON DELETE CASCADE; c. The price of a film ranges from 0.50 to 19.99 d. A film can only have the type of Action, Horror, Comedy, Drama, and Education CUSTOMER CID CNAME CITY Smith London Jones Paris Clark London Adams Athens 1 (1 2 C2 3 C4 4 C5 RENT CID FID RDATE 1 (5 2 (5 3 (5 4 (1 5 (1 6 (1 7 (2 8 (4 F2 F3 F5 F5 F2 F3 F2 F2 02-OCT-14 04-SEP-14 16-APR-17 16-APR-17 02-OCT-14 04-SEP-14 01-APR-14 01-JAN-14 FILM FID 1 F2 2 F3 3 F4 4 F5 5 F7 FNAME The Others Senseless Dragon Heart 007 Sweetheart PRICE TYPE 1.44 HORROR 5.99 COMEDY 6 DRAMA SACTION 5 COMEDY Create three tables a. Customer b. Rent C. Film . Define appropriate data type and data size Define column constraints Specify Integrity/Domain/Primary Key/Referential Integrity constraints a. Primary key b. Foreign key CONSTRAINT rent fk c FOREIGN KEY cid REFERENCES customer ON DELETE CASCADE; c. The price of a film ranges from 0.50 to 19.99 d. A film can only have the type of Action, Horror, Comedy, Drama, and Education CUSTOMER CID CNAME CITY Smith London Jones Paris Clark London Adams Athens 1 (1 2 C2 3 C4 4 C5 RENT CID FID RDATE 1 (5 2 (5 3 (5 4 (1 5 (1 6 (1 7 (2 8 (4 F2 F3 F5 F5 F2 F3 F2 F2 02-OCT-14 04-SEP-14 16-APR-17 16-APR-17 02-OCT-14 04-SEP-14 01-APR-14 01-JAN-14 FILM FID 1 F2 2 F3 3 F4 4 F5 5 F7 FNAME The Others Senseless Dragon Heart 007 Sweetheart PRICE TYPE 1.44 HORROR 5.99 COMEDY 6 DRAMA SACTION 5 COMEDY
Expert Answer:
Answer rating: 100% (QA)
It looks like the task here is to create three tables for a database specifically for a rental system with tables named Customer Rent and Film Also it ... View the full answer
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these databases questions
-
Identify 10 unique risks in a construction and expansion project of a house. Include sections like risk number, Risk Name, Description, Risk Category, Risk owner, Root cause and Mitigation Actions....
-
A boatman goes 2 km against the current of the stream in 1 hour and goes 1 km along the current in 10 minutes. How long will it take to go 5 km in stationary water? A)1.30hrs B)3.209hrs C)2.15hrs...
-
Consider that the EMPLOYEE tables constraint EMPSUPERFK as specified in Figure 6.2 is changed to read as follows: CONSTRAINT EMPSUPERFK FOREIGN KEY (Super_ssn) REFERENCES EMPLOYEE(Ssn) ON DELETE...
-
A load must be suspended 6 m below a high ceiling using cables attached to two supports that are 2 m apart (see figure). How far below the ceiling (x in the figure) should the cables be joined to...
-
A hot-air balloon achieves its buoyant life by heating the air inside the balloon, which makes it less dense than the air outside. Suppose the volume of a balloon is 1800m3 and the required lift is...
-
Budget Actual Inpatient Costs $12,568,500 $16,618,350 Members 42,000 42,000 Admission Rate 0.070 0.095 Case Mix Index 0.90 0.85 Cost per Case (CMI = 1.0) $4,750 $4,900 7. What dollar amount of the...
-
a. Begin with one population and assume that \(y_{1}, \ldots, y_{n}\) is an i.i.d. sample from a Bernoulli distribution with mean \(\pi\). Show that the maximum likelihood estimator of \(\pi\) is...
-
Royston Inc. is a large food processing company. It processes 120,000 kilograms of peanuts in the Peanuts Department at a cost of $160,000 to yield 10,000 kilograms of product A, 60,000 kilograms of...
-
What strategies does Lean Management employ to empower employees through skill development, cross-functional training, and collaborative problem-solving initiatives? Explain
-
Gibson Agency Case: 1. Calculate and present the budgeted profit for each of Gibson's clients for each of the years 2016 through 2019, using the current costing system (i.e., the one described in the...
-
Product One is sold at a retail store for $5 per unit. Product One has a weekly demand of 1,000 units with an average lead time of 4 weeks and a standard deviation of lead time of 2 weeks. Based on...
-
On a low-friction track, a \(0.36-\mathrm{kg}\) cart initially moving to the right at \(2.05 \mathrm{~m} / \mathrm{s}\) collides elastically with a \(0.12-\mathrm{kg}\) cart initially moving to the...
-
Let \(d X_{t}=h_{t} d t+\sigma_{t} d W_{t}+\varphi_{t} d M_{t}\) be a mixed process and \(S_{t}=e^{X_{t}}\). Prove that the dynamics of \(S\) are \[d S_{t}=S_{t^{-}}\left(\left(h_{t}+\frac{1}{2}...
-
A child on a swing set swings back and forth with a period of 3.3 s and an amplitude of 25. What is the maximum speed of the child as she swings?
-
For a certain interaction, the potential energy in joules is given by \(U(x)=a x+b x^{2}\), where \(a=+4.0 \mathrm{~J} / \mathrm{m}\) and \(b=-2.0 \mathrm{~J} / \mathrm{m}^{2}\). If, at some instant,...
-
Let \(A\) be an increasing process, with \(\mathbb{Q}\) and \(\mathbb{P}\) as above. Prove that the \(\mathbb{Q}\)-compensator of \(\int_{0}^{t} \frac{d A_{s}}{L_{s}}\) is \(\int_{0}^{t} \frac{d...
-
The company takes pride in its individually designed restaurants where customers are catered to by well-trained, friendly staff. The following additional information is available: 2022 Full year...
-
Borrowing costs should be recognised as an expense and charged to the profit and loss account of the period in which they are incurred : A. If the borrowing costs relate to qualifying asset B. If the...
-
What is denormalization?
-
How do you include a field in an Access query?
-
In Example 1, why is the data type for the Postal Code field CHAR and not SMALLINT or INTEGER? Is the length of the field long enough? Why or why not?
-
a. Suppose that General Hospital has a current ratio of 0.5. Which of the following actions would improve (increase) this ratio? Use cash to pay off current liabilities. Collect some of the current...
-
What is the role of internal control in an organization?
-
What are the elements and principles of the COSO framework?
Study smarter with the SolutionInn App