guidance on the SQL syntax to create a new db, including tables

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...
icon
Related questions
Question

Oracle SQL

 

Any guidance on the SQL syntax to create a new db, including tables:

 

CUSTOMERS

CustomerID

Lname

Fname

Email
 

PURCHASES

PurchaseOrder#

CustomerID

PurchaseDate

Quantity [purchased]

 

ORDERCOST

PurchaseOrder#

PurchaseDate

GoodsID

Quantity

CostPer
 

CUSTOMERTYPE

PurchaseOrder#

Retail

Commercial

Domestic

International

 

There are a total of five clients.

Client1

Client2

Client3

Client4

Client5

 

Client1: 

lname: Laoudy

fname: Penfield

email: s..7@gmail.com

CustomerID: 482431912

customertype: Commercial

purchases:

purchaseID: 131, purchased GoodsID: ABC quantity 1000 at $50.00 each

purchaseID: 132, purchased GoodsID: DEF, quantity 100 at $250.00 each

purchaseID: 133, purchased GoodsID: XYZ, quantity 50 at $750.00 each

 

Client2: 

lname: Brown

fname: Jimmy

email: k..3@yahoo.com, 

CustomerID: 121349313, 

customertype: Retail

purchases:

purchaseID: 134, purchased GoodsID: ABC quantity 100 at $50.00 each

purchaseID: 135, purchased GoodsID: DEF, quantity 10 at $250.00 each

purchaseID: 136, purchased GoodsID: XYZ, quantity 5 at $750.00 each

 

Client3: 

lname: Klide

fname: Bonnie

email: b..1@hotmail.com

CustomerID: 121349314,

customertype: Domestic

purchases:

purchaseID: 137, purchased GoodsID: ABC quantity 100 at $50.00 each

purchaseID: 138, purchased GoodsID: DEF, quantity 10 at $250.00 each

purchaseID: 139, purchased GoodsID: XYZ, quantity 5 at $750.00 each

 

Client4: 

lname: Choade

fname: Benjamin

email: b..1@hotmail.com

CustomerID: 121349315,

customertype: International

purchases:

purchaseID: 140, purchased GoodsID: ABC quantity 10 at $50.00 each

purchaseID: 141, purchased GoodsID: DEF, quantity 10 at $250.00 each

purchaseID: 142, purchased GoodsID: XYZ, quantity 1 at $750.00 each

 

Client5: 

lname: Lunberg

fname: Pandy

email: &..7@gmail.com

CustomerID: 121349316,

customertype: International

purchases:

purchaseID: 143, purchased GoodsID: ABC quantity 2 at $50.00 each

purchaseID: 144, purchased GoodsID: DEF, quantity 1 at $250.00 each

purchaseID: 145, purchased GoodsID: XYZ, quantity 1 at $750.00 each

 

Thank you

Expert 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