Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) Create the table Rental with the above specication. Set Rental _pk and Rental_fkl as constraint names of the primary key and foreign key respectively.

image text in transcribed
(a) Create the table Rental with the above specication. Set Rental _pk and Rental_fkl as constraint names of the primary key and foreign key respectively. [10 marks] (b) In the table Rental, add a foreign key constraint named Rental_l'l{2 for the column LicenseNo which refers to Vehicle table. [4 marks] (c) In the table Rental, set a constraint named Rental_cc for the column NumDay to ensure the number of days rented must be in the range from 1 to 30 days, inclusive. [4 marks] (d) Create an index named Customerjdx on the column Mobile of the table Customer. [3 marks] (e) Add a new record into the Rental table as shown below. [3 marks] VD872 12 November 2020 (f) Write [W0 SQL statements in correct order to complete the following tasks: The customer with customer ID evalee has been blacklisted. Remove the customer together with all her rentals from the database. [6 marks]

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

Mathematics Concepts With Applications

Authors: Charles P McKeague

1st Edition

1630983136, 9781630983130

More Books

Students also viewed these Mathematics questions

Question

Define the goals of persuasive speaking

Answered: 1 week ago