Complete the table below by matching each definition with the appropriate SQL constraint. Ensures that each...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Complete the table below by matching each definition with the appropriate SQL constraint. Ensures that each value inserted in a column (or columns) is A. FOREIGN KEY UNIQUE and NOT NULL B. DEFAULT Ensures that data in the column of a table matches the values in another column of the same, or another, table C. NOT NULL * Specifies a value given to an attribute when a tuple is inserted without specifying the value for the particular attribute D. UNIQUE E. CHECK A Ensures that each row (tuple) must have a unique value for a particular column (attribute) F. PRIMARY KEY Ensures that the value in a column meets a specific condition QUESTION 5 0.5 points Save Answer Below is a partially complete CREATE TABLE statement for the Customers table in the Clothing Store database. Fill in the two blanks below to make ID an auto incrementing attribute and ensure the lastName attribute of all tuples is not null. Your answer will be marked incorrect if there is a spelling mistake, missing spaces, or unnecessary spaces. CREATE TABLE Customers ( ID int lastName varchar(255) firstName varchar(255), streetAddress varchar(255), city varchar(255), DOB DATE, favoriteStore int(3), PRIMARY KEY (ID), FOREIGN KEY (favoriteStore) REFERENCES Stores (ID) ); QUESTION 6 0.5 points Save Answer Below is a partially complete CREATE TABLE statement for the Orders table in the Clothing Store database. Consider it in conjunction with the Customers table in the same database you constructed in the previous question. Fill in the blank line below to add a foreign key constraint on the customerID attribute which links it to the appropriate attribute in the Customers table. Do not include ON UPDATE and ON DELETE clauses. Your answer will be marked incorrect if there is a spelling mistake, missing spaces, or unnecessary spaces. CREATE TABLE Orders ( orderlD int, productID int, customerID int, storelD int, PRIMARY KEY (orderlD, productID), FOREIGN KEY (productID) REFERENCES Products (productID), FOREIGN KEY (storelD) REFERENCES Stores (ID), [x] ); Complete the table below by matching each definition with the appropriate SQL constraint. Ensures that each value inserted in a column (or columns) is A. FOREIGN KEY UNIQUE and NOT NULL B. DEFAULT Ensures that data in the column of a table matches the values in another column of the same, or another, table C. NOT NULL * Specifies a value given to an attribute when a tuple is inserted without specifying the value for the particular attribute D. UNIQUE E. CHECK A Ensures that each row (tuple) must have a unique value for a particular column (attribute) F. PRIMARY KEY Ensures that the value in a column meets a specific condition QUESTION 5 0.5 points Save Answer Below is a partially complete CREATE TABLE statement for the Customers table in the Clothing Store database. Fill in the two blanks below to make ID an auto incrementing attribute and ensure the lastName attribute of all tuples is not null. Your answer will be marked incorrect if there is a spelling mistake, missing spaces, or unnecessary spaces. CREATE TABLE Customers ( ID int lastName varchar(255) firstName varchar(255), streetAddress varchar(255), city varchar(255), DOB DATE, favoriteStore int(3), PRIMARY KEY (ID), FOREIGN KEY (favoriteStore) REFERENCES Stores (ID) ); QUESTION 6 0.5 points Save Answer Below is a partially complete CREATE TABLE statement for the Orders table in the Clothing Store database. Consider it in conjunction with the Customers table in the same database you constructed in the previous question. Fill in the blank line below to add a foreign key constraint on the customerID attribute which links it to the appropriate attribute in the Customers table. Do not include ON UPDATE and ON DELETE clauses. Your answer will be marked incorrect if there is a spelling mistake, missing spaces, or unnecessary spaces. CREATE TABLE Orders ( orderlD int, productID int, customerID int, storelD int, PRIMARY KEY (orderlD, productID), FOREIGN KEY (productID) REFERENCES Products (productID), FOREIGN KEY (storelD) REFERENCES Stores (ID), [x] );
Expert Answer:
Related Book For
Horngrens Financial and Managerial Accounting
ISBN: 978-0133866292
5th edition
Authors: Tracie L. Nobles, Brenda L. Mattison, Ella Mae Matsumura
Posted Date:
Students also viewed these accounting questions
-
Complete the table below for contribution margin per unit, total contribution margin, and contribution margin ratio: Number of units Sales price per unit Variable costs per unit Calculate:...
-
Complete the table below for contribution margin per unit, total contribution margin , and contribution margin ratio: A Number of units 1,720 units 14,920 units 4,620 units Sales price per unit $...
-
Complete the table below by indicating whether the transactions or economic events would increase, decrease, or have no effect on the financial ratios in the period they occur. Assume the entity uses...
-
The following appliances are connected to a single 120 V, 15 A circuit in a kitchen: a 330 W blender, a 1000 W coffeepot, a 150 W coffee grinder, and a 750 W microwave oven. If these are all turned...
-
Paulette, Camille, and Hortense each own wineries in France. They produce inexpensive, mass-market wines. Over the last few years, such wines sold for 7 euros per bottle; but with a global recession,...
-
Which is an example of high uncertainty avoidance behavior? Select one: A. Being flexible. B. Planning ahead, being punctual. C. Being curious, experimenting. D. None of the above. 5. During...
-
What is a membrane potential?
-
Analyze the information presented in the following general ledger account of Mantle Manufacturing Co., which has three departments: Shaping, Forming, and Finishing: Additional facts: a. 2,000 units...
-
Generally, deductions for additions to reserves for estimated future costs (for example, an allowance for estimated warranty costs) in financial statement reporting are not allowed for Federal income...
-
Horace Society is planning its annual Western Fair Raceway Gala. The Gala committee has assembled the following expected costs for the event: Dinner (per person) . . . . . . . . . . . . . . . . . . ....
-
2)A point is moving along the graph of the given function at the rate dx/dt. Find dy/dt for the given values of x. y=cos x; dx/dt =4 centimeters per second (a) x=/6 and (b) X= /4
-
Add. -7 + 6y 61,3 3 812 Simplify your answer as much as possible.
-
Solve the inequality and write your answer as an inequality with reduced fractions. 15x 1239 + 2x
-
Write code to create an ndarray to product the following results. steps: 1) create an ndarray and initialize to ones using reshape to size as 10 X 10 2) using the correct slice produce the following...
-
For what value of k, determinant of JA-181 matrix. k-1 0 JA 8 k+1 = |B| S 9
-
Design a direct-mapped cache with 128 KB that uses 32-bits and 16 bytes per block. Calculate: -How many bits are used for the byte offset? -How many bits are used for the index field? -How many bits...
-
Review Chapter 14 & 15 and reference chapter concepts when answering the following questions: Chapter 14:...
-
Is that Yelp review real or fake? The article A Framework for Fake Review Detection in Online Consumer Electronics Retailers (Information Processing and Management 2019: 12341244) tested five...
-
The comparative balance sheet of Morris Educational Supply at December 31, 2016, reported the following: Morriss transactions during 2016 included the following: Requirements 1. Prepare the statement...
-
Refer to the data and your answers from Exercise E18-21. Gallons Beginning Work-in-Process Inventory 0 gallons Started in production 7,900 gallons Completed and transferred out to Packaging in May...
-
Middle Telecom provides communication services in Iowa, Nebraska, the Dakotas, and Montana. Middle purchased goodwill as part of the acquisition of Shipley Wireless Enterprises, which had the...
-
What is the advantage of being able to produce spores, as many bacteria do?
-
What is a chemoautotroph? What does a chemoautotroph have in common with a plant? How does a chemoautotroph differ from a plant in how it obtains food?
-
What is the difference between a heterotroph and an autotroph? Name a clade of living things that consists exclusively of heterotrophs and one that consists exclusively of autotrophs. Name a clade...
Study smarter with the SolutionInn App