Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in Rstudio 1. Choosing a suitable customer number, add a new customer Charles, whose address is ATLANTIC, to your database. 2. a) Create a new

image text in transcribedin Rstudio

1. Choosing a suitable customer number, add a new customer Charles, whose address is ATLANTIC, to your database. 2. a) Create a new relation in your database using the schema below. Make sure you implement the PRIMARY KEY. SHOES (SHOE ID, MODEL, COLOR) b) Write code to check that SHOES exists in your database. c) Add the following tuples to SHOES: , d) Try adding the tuple: Show that this results in an error and explain why the error occurred. 3. A new relation is to be added to the database using following the schema. (You are NOT asked to create this relation) SHOE_SALES_ASSISTANT (SHOE_SALES_ASSISTANT_ID, SHOE_ID, QUANTITY_SOLD) a) Choose a suitable primary key for this relation. b) Identify any foreign keys. c) What SQL statement would you need to run to enable foreign key support in your database

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Describe backward scheduling.

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago