Anonymous
timer Asked: May 6th, 2020

Question Description

-Write SQL statements that create the tables according to the given ER diagram. Your code should include constraints that enforce primary key, foreign key, and deletion rule constraints. Tables should be deleted if they already exist.
-Write SQL statements that populate the tables with the sample data provided.
-Feel free to assume other information that you feel is necessary for your solution as long as it is relevant to the problem.
Turn in: Save and turn in the .SQL file with all your code listed. Comment out code as needed.
SAMPLE DATA

Unformatted Attachment Preview

Assume you are in charge of implementing the database of an advertisements manager application. Your job is to create and populate the database. The details of this assignment are left to the students, but the database should be implemented based on the following ER diagram and sample data provided. -Write SQL statements that create the tables according to the given ER diagram. Your code should include constraints that enforce primary key, foreign key, and deletion rule constraints. Tables should be deleted if they already exist. -Write SQL statements that populate the tables with the sample data provided. -Feel free to assume other information that you feel is necessary for your solution as long as it is relevant to the problem. Turn in: Save and turn in the .SQL file with all your code listed. Comment out code as needed. SAMPLE DATA: moderators ER Diagram: ...
Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors