Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Lab Instructions: Name: YourNameGoesHere Class: CST 2 3 5 Date: I have not received or given help on this assignment: YourName DROP DATABASE IF EXISTS

Lab Instructions: Name: YourNameGoesHere
Class: CST 235
Date:
I have not received or given help on this assignment: YourName
DROP DATABASE IF EXISTS Lab3YourLastName;
CREATE DATABASE Lab3YourLastName;
USE Lab3YourLastName;
??**********
Task 1: create tables
**************?
CREATE TABLE
....
??**********
Task 2: uncaptured constraints
put your response here
************?
??**********
Task 3: Add records
**************
INSERT INTO ..
You should work individually on this assignment. Create a new SQL script file( using Notepad or Notepad++) and save it as Lab3xxxx.sql (where is your last name). Write your full name on the first page of the script file. Where required, write your answers in this script file. You need to submit only this script file.
Your script file will be graded only if it executes as one MySQL script file without syntax errors or other similar problems. Make sure your script runs without errors. Otherwise, you will not receive any credit for this assignment.
Tasks: Considering the following E-R 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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