Question: From the attached ER diagram, is the solution below. Kindly explain to me the meaning of this PART>>>>>> Value sfor SALE_ITEM Sale_Item(1,1); Sale_Item(2,3); Sale_Item(3,2); Sale_Item(4,5); Sale_Item(5,4); Sale_Item(6,5);      CREATE TABLE SALE( SaleID INTEGER NOT NULL PRIMARY KEY, SaleDate DATE NOT NULL, Tax DECIMAL(4,2), Total DECIMAL(10,2) ); TABLE SALE Create table Sale ( SaleID INTEGER NOT NULL PRIMARY KEY, SaleDate DATE NOT NULL, Tax DECIMAL(4,2), Total DECIMAL(10,2) ); For Sale (1,'2001-04-04',121,1230); For Sale(2,'2002-04-04',122,1270); For Sale(3,'2003-04-04',123,1260); For Sale(4,'2004-04-04',124,1250); For Sale(5,'2005-04-04',125,1240); For Sale(6,'2006-04-04',126,1240); CREATE TABLE ITEM( ItemID INTEGER NOT NULL PRIMARY KEY, Name VARCHAR(30) NOT NULL Cost DECIMAAL(10,2) NOT NULL Price DECIMAL(10,2) NOT NULL ); Values of Items  Item(1,'Item1',11,120); Item(2,'Item2',12,121); Item(3,'Item3',13,122); Item(4,'Item4',14,123); Item(5,'Item5',15,124); Item(6 'Item6',17,125); CREATE TABLE SALE_ITEM( SaleID INTEGER references SALE(ID), SaleItemID INTEGER references ITEM(ItemID) ); Value sfor SALE_ITEM Sale_Item(1,1); Sale_Item(2,3); Sale_Item(3,2); Sale_Item(4,5); Sale_Item(5,4); Sale_Item(6,5); Update for “Price” value: UPDATE Item SET Price='500' WHEN ItemID = 1;

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Question

Question: From the attached ER diagram, is the solution below. Kindly explain to me the meaning of this PART>>>>>>

Value sfor SALE_ITEM

Sale_Item(1,1);
Sale_Item(2,3);
Sale_Item(3,2);
Sale_Item(4,5);
Sale_Item(5,4);
Sale_Item(6,5); 

 

 

CREATE TABLE SALE(
SaleID INTEGER NOT NULL PRIMARY KEY,
SaleDate DATE NOT NULL,
Tax DECIMAL(4,2),
Total DECIMAL(10,2)
);

TABLE SALE
Create table Sale (
SaleID INTEGER NOT NULL PRIMARY KEY,
SaleDate DATE NOT NULL,
Tax DECIMAL(4,2),
Total DECIMAL(10,2)
);

For Sale (1,'2001-04-04',121,1230);
For Sale(2,'2002-04-04',122,1270);
For Sale(3,'2003-04-04',123,1260);
For Sale(4,'2004-04-04',124,1250);
For Sale(5,'2005-04-04',125,1240);
For Sale(6,'2006-04-04',126,1240);

CREATE TABLE ITEM(
ItemID INTEGER NOT NULL PRIMARY KEY,
Name VARCHAR(30) NOT NULL
Cost DECIMAAL(10,2) NOT NULL
Price DECIMAL(10,2) NOT NULL
);

Values of Items 

Item(1,'Item1',11,120);
Item(2,'Item2',12,121);
Item(3,'Item3',13,122);
Item(4,'Item4',14,123);
Item(5,'Item5',15,124);
Item(6 'Item6',17,125);

CREATE TABLE SALE_ITEM(
SaleID INTEGER references SALE(ID),
SaleItemID INTEGER references ITEM(ItemID)
);

Value sfor SALE_ITEM

Sale_Item(1,1);
Sale_Item(2,3);
Sale_Item(3,2);
Sale_Item(4,5);
Sale_Item(5,4);
Sale_Item(6,5);

Update for “Price” value:

UPDATE Item
SET Price='500'
WHEN ItemID = 1;

 

SALE
•SaleID
•SaleDate
•Tax
•Total
ITEM
ItemID
•Name
•Cost
•Price
SALE_ITEM
•SaleID
|>
•SaleItemID
Transcribed Image Text:SALE •SaleID •SaleDate •Tax •Total ITEM ItemID •Name •Cost •Price SALE_ITEM •SaleID |> •SaleItemID
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY