Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

DATA C170 Practice Test 2 with Answer Key

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
14-08-2023
Written in
2023/2024

DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key DATA C170 Practice Test 2 with Answer Key

Show more Read less
Institution
Course

Content preview

C170 Practice Test 2
Refer to this diagram for questions 1 though 3




1.

You are creating a database which will have the 2 tables shown above.

You need to ensure that if a category is removed from the Category table, all related product rows would
have their CategoryID set to a null value.

What should you use?

a. ON DELETE CASCADE
b. ON DELETE SET TO NULL
c. ON DELETE RESTRICT
d. ON UPDATE CASCADE

, 2.

Which rule would you use in your CREATE TABLE statement for your Category table if you would like to
have all products related to a specific category deleted if they are linked to a category that is deleted?

a. ON DELETE CASCADE
b. ON DELETE SET TO NULL
c. ON DELETE RESTRICT
d. ON UPDATE CASCADE

3.

Which rule would you use in your CREATE TABLE statement for your Category table if you needed to
prevent deletion of a category if there were associated products in the Product table?

a. ON DELETE CASCADE
b. ON DELETE SET TO NULL
c. ON DELETE RESTRICT
d. ON UPDATE CASCADE



4.




You are creating a relational database to store information about instructors and the courses that each
instructor teaches. Each course is taught by a single instructor.

You have created an Instructor table and a Course table as shown above. You need to create a
relationship between the Instructor table and the Course table. You need to keep duplicate data to a
minimum. What should you do?

a. Create a new column in the Instructor table.
b. Create new columns in the Instructors table for each course taught.
c. Create a new table that includes two columns.
d. Create a new column in the Course table.

Written for

Course

Document information

Uploaded on
August 14, 2023
Number of pages
11
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$19.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Timeless2024 Chamberlain College Nursing
Follow You need to be logged in order to follow users or courses
Sold
3667
Member since
6 year
Number of followers
3135
Documents
2173
Last sold
1 month ago
Email/DM Me for the LATEST REVISED Exams, Study Guides, Assignments, Quizzes etc. @

Number one Stop Shop for Study Guides, Exams, Assignments, Test Banks etc 2023/2024

3.9

683 reviews

5
342
4
127
3
105
2
41
1
68

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions