Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Show transcribed image text Expert Answer Anonymous answered this Was this answer helpful? 0 0 10 answers Use the Create table command first to define

image text in transcribed

image text in transcribed

Show transcribed image text

Expert Answer

image text in transcribedAnonymous answered this

Was this answer helpful?

0

0

10 answers

Use the "Create table" command first to define the tables. And use "Insert into" to insert entries in the tables.

CREATE TABLE Suppliers ( SupplierNo CHAR(2) PRIMARY KEY, Name VARCHAR(255), Status INT, City VARCHAR(255) );

CREATE TABLE Parts ( PartNo CHAR(2) PRIMARY KEY, Name VARCHAR(255), Color VARCHAR(255), Weight INT, City VARCHAR(255) );

CREATE TABLE Projects ( ProjectNo INT PRIMARY KEY, Name VARCHAR(255), City VARCHAR(255) );

CREATE TABLE Shippments ( SupplierNo CHAR(2) PRIMARY KEY, PartNo CHAR(2) PRIMARY KEY, ProjectNo INT PRIMARY KEY, Quantity INT );

INSERT INTO Suppliers VALUES ('S1', 'SMITH', 20, 'LONDON');

Insert all the entries required using the "Insert into" command.

image text in transcribed

image text in transcribed

Create these four tables in Oracle: Suppliers (SupplierNo, Name, Status, city) Parts (PartNo, Name, Color, Weight, City) Projects (ProiectNo, Name, City) hipments (SupplierNo, PartNo, ProjectNo, Quantity) Status City SupplierNoName 20 LONDON SMITH ONES BLAKE CLARK ADAMS S1 S2 10 PARIS 30 PARIS S4 S5 20 LONDON ATHENS 30 PartNo Name Color Weight Pl NUT RED | 12 |LONDON | P2 BOLT GREEN 1. PARIS 17 SCREW |BLUE 17 |ROME PS CAMERA | BLUE | 32 | PARS ROME P3 P4 RED14 LONDON SCREWRED P6 WRENCH RED1 12 ProjeciNo Name City SC.RTER [PUNCH 13READER 4 CONSOLE ATHENS 15 |COLLATOR |LONDON 16 PARIS ROME ER ATHENS | TERMINAL OSLO 17 TAPE DRUM LONDON LONDON 18

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

2. How much time should be allocated to the focus group?

Answered: 1 week ago

Question

1. Where will you recommend that she hold the focus group?

Answered: 1 week ago