Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Log onto Oracle Live SQL . Create the following tables with script Lab 0 1 . sql I provided for you. Insert these 2 0

Log onto Oracle Live SQL.
Create the following tables with script Lab01.sql I provided for you.
Insert these 20 records (as shown in the following tables) into the corresponding tables. Each
record is created with one INSERT INTO statement.
All these statements should be tested individually and saved together in one file Lab03.sql.
Customers (CustomerID is PK)
Employees (EmployeeID is PK)
Categories (CategoryID is PK)
Products (ProductID is PK)
CustomerID int PRIMARY KEY,
Customername varchar2(255),
Address varchar2(255),
City varchar2(255),
Postalcode varchar2(255),
;
Country varchar2(255)
CREATE TABLE Employees
(
EmployeeID int PRIMARY KEY,
LastName varchar2(255),
FirstName varchar2(255),
;
BirthDate DATE
CREATE TABLE Categories
(
CategoryID int PRIMARY KEY,
CategoryName varchar2(255),
;
CREATE TABLE Products
OrderDetails (no PK is assigned)
ProductID int PRIMARY KEY,
ProductName varchar2(255),
CategoryID int,
Unit varchar2(255),
Price int
;
CREATE TABLE orders
(
OrderID int PRIMARY KEY,
CustomerID int,
EmployeeID int,
OrderDate Date
CREATE TABLE orderDetails
OrderID int,
ProductID int,
Quantity int
;
image text in transcribed

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

Identify three ways in which rationalism differs from empiricism.

Answered: 1 week ago