Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Make sure your SQL script file can be run successfully in MySQL before submitting it . If it can't be run, your grade for this
Make sure your SQL script file can be run successfully in MySQL before submitting it If
it can't be run, your grade for this assignment will be a ZERO. If your file can be run
without error messages, the maximum possible points for each portion are listed below:
Create Tables points
Constraints points
Insert Tuples points DROP DATABASE IF EXISTS LabYourLastName;
CREATE DATABASE Lab YourLastName;
USE LabYourLastName;
Task : create tables
CREATE TABLE
Task : uncaptured constraints
put your response here
Task : Add records
INSERT INTO Tasks: Considering the following ER diagram, you need to translate it into a relational
database and add some data to the tables.
a Write SQL statements to create the corresponding relations and capture as many
of the participation and cardinality constraints as possible. Make sure that the data
type and size for each attribute are appropriate.
b If some constraints in the diagram cannot be captured, explain why.
c Write SQL statements to insert at least two tuples for each table
Make sure your SQL script file can be run successfully in MySQL before submitting it If
it can't be run, your grade for this assignment will be a ZERO. If your file can be run
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started