Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using mysql Without entering table IDs except to connect the tables, use subqueries to change Jedidiah Bugbee's quantity of Dress Shirts included on his March

using mysql Without entering table IDs except to connect the tables, use subqueries to change Jedidiah Bugbee's quantity of Dress Shirts included on his March 21, 2018 invoice from 6 to 3.

table info:

Table Details for Customer

TABLE STRUCTURE

TABLE DATA

CREATE SCRIPT

INSERT SCRIPT

Table rows are editable. All changes are immediate! Click to insert a record.

customer_id first_name last_name street city state zipcode phone email
12 Kylie Cleaton 0 Towne Court Des Moines IA 50393 515-156-1494 kcleatonb@somewhere.com

13

Table Details for Invoice

Field Type Null Key Default Extra
invoice_id int(11) NO PRI NULL auto_increment
date_in date NO NULL
date_out date YES NULL
customer_id int(11) NO MUL NULL
Constraint Name Constraint Column(s) Referenced Table Referenced Column(s) Update Rule Delete Rule
invoice_fk customer_id customer customer_id RESTRICT

RESTRICT

Jedidiah

Bugbee

Table Details for Invoice Item

Field Type Null Key Default Extra
invoice_id int(11) NO PRI NULL
item_id int(11) NO PRI NULL
quantity int(5) NO NULL
Constraint Name Constraint Column(s) Referenced Table Referenced Column(s) Update Rule Delete Rule
invoice_item_fk1 invoice_id invoice invoice_id CASCADE CASCADE
invoice_item_fk2 item_id item item_id CASCADE CASCADE

Table Details for Item

TABLE STRUCTURE

TABLE DATA

CREATE SCRIPT

INSERT SCRIPT

Field Type Null Key Default Extra
item_id int(11) NO PRI NULL auto_increment
description blob NO NULL
price double(8,2) NO NULL

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

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago