create table CUSTOMERS
(customer_id varchar2(5) primary key,
company_name varchar2(20),
contact_name varchar2(20),
contact_title varchar2(20),
address varchar2(50),
city varchar2(20),
region varchar2(15),
postal_code number(10),
country varchar2(15),
phone number(15),
fax number(20));
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, region, postal_code, country, phone, fax)
values ('C001', 'Iota GmbH', 'Sarah Lee', 'CEO', '505 Willow St', 'North
Haverbrook', 'SL', 88001, 'US', 12345678901, 12345678901234567890);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, region, postal_code, country, phone, fax)
VALUES ('C002', 'Whirlwind Co', 'Jane Smith', 'CFO', '456 Elm St', 'Anytown', 'CA',
90210, 'USA', 9876543210, NULL);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, region, postal_code, country, phone, fax)
VALUES ('C003', 'XYZ Corporation', 'Alice Johnson', 'Manager', '789 Oak St',
'Metropolis', 'NY', 10001, 'USA', 5554443333, NULL);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, region, postal_code, country, phone, fax)
VALUES ('C004', 'Global Co.', 'Hans Müller', 'Director', 'Hauptstraße 1', 'Berlin',
NULL, '10115', 'Germany', '12345678', '12345679');
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
country, phone)
VALUES ('C005', 'Tech Solutions Ltd', 'Emily Johnson', 'CTO', 'Canada',
1122334455);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, postal_code, country, phone)
VALUES ('C006', 'Innovative Tech', 'Michael Brown', 'Lead Developer', '10 Maple
Ave', 'Toronto',34567, 'Canada', 77888900);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, region, postal_code, country, phone, fax)
VALUES ('C007', 'Super Corporation', 'Samantha Lee', 'Manager', '99 Pine St',
'Dallas', 'TX', 75201, 'USA', 2145556789, NULL);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, region, postal_code, country, phone, fax)
VALUES ('C008', 'New Ventures Inc', 'Tom Wilson', 'Consultant', '45 Cedar St',
'Seattle', NULL, 98101, 'USA', 2067778888, NULL);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
city, region, postal_code, country, phone)
VALUES ('C009', 'Future Tech', 'Jessica Smith', 'Project Manager', 'Boston', 'MA',
02101, 'USA', 6179998888);
INSERT INTO CUSTOMERS (customer_id, company_name, contact_name, contact_title,
address, city, region, postal_code, country, phone, fax)
VALUES ('C010', 'ABC Enterprises', 'David Johnson', 'Sales Manager', '1234 Oak St',
'San Francisco', 'CA', 94101, 'USA', NULL, 4152223333);
create table CUSTOMER_DEMOGRAPHIC
(customer_type_id varchar2(5) primary key,
customer_desc varchar2(30));
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT01', 'Regular Customer');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT02', 'VIP Customer');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT03', 'Wholesale Customer');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT04', 'Loyalty Program Member');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT05', 'Corporate Account');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT06', 'Online Shopper');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT07', 'Student Discount');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT08', 'Senior Discount');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT09', 'Military Discount');
insert into CUSTOMER_DEMOGRAPHIC (customer_type_id, customer_desc)
values ('CT10', 'Frequent Buyer');
create table CUSTOMER_CUSTOMER_DEMOGRAPHIC
(customer_id varchar2(5),
customer_type_id varchar2(5),
primary key(customer_id,customer_type_id),
foreign key (customer_id) references CUSTOMERS(customer_id),
foreign key (customer_type_id) references
CUSTOMER_DEMOGRAPHIC(customer_type_id));
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C001', 'CT01');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C002', 'CT02');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C003', 'CT03');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C004', 'CT04');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C005', 'CT05');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C006', 'CT06');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C007', 'CT07');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C008', 'CT08');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C009', 'CT09');
insert into CUSTOMER_CUSTOMER_DEMOGRAPHIC (customer_id, customer_type_id)
values ('C010', 'CT10');
create table EMPLOYEE2
(employee_id varchar2(5) primary key,
last_name varchar2(15),
first_name varchar2(15),
title varchar2(20),
title_of_courtesy varchar2(15),
birth_date date,
hire_date date,
address varchar2(50),
city varchar2(20),
region varchar2(15),
postal_code number(10),
country varchar2(15));
insert into EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, hire_date, address, city, region, postal_code,
country)
values ('E001', 'Jones', 'Williams', 'Manager', 'Mr.', TO_DATE('1985-01-15', 'YYYY-
MM-DD'), TO_DATE('2010-06-01', 'YYYY-MM-DD'), '101 Pine St', 'North Haverbrook',
'CA', 62701, 'USA');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, hire_date, address, city, region, postal_code,
country)
VALUES ('E002', 'Johnson', 'Emily', 'Assistant Manager', 'Ms.', TO_DATE('1990-05-
20', 'YYYY-MM-DD'), TO_DATE('2015-03-10', 'YYYY-MM-DD'), '456 Elm St', 'Anytown',
'CA', 90210, 'USA');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, hire_date, address, city, postal_code, country)
VALUES ('E003', 'Brown', 'Michael', 'Senior Developer', 'Mr.', TO_DATE('1988-09-
10', 'YYYY-MM-DD'), TO_DATE('2018-01-25', 'YYYY-MM-DD'), '789 Oak St',
'Metropolis', 10001, 'USA');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, hire_date, address, city, region, postal_code, country)
VALUES ('E004', 'Lee', 'Samantha', 'Project Lead', 'Ms.', NULL, TO_DATE('2016-08-
15', 'YYYY-MM-DD'), '10 Maple Ave', 'Toronto', 'ON', 'M4B 1B3', 'Canada');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title, birth_date,
hire_date, address, city, region, postal_code, country)
VALUES ('E005', 'Wilson', 'Tom', 'Consultant', TO_DATE('1980-03-05', 'YYYY-MM-DD'),
TO_DATE('2012-11-20', 'YYYY-MM-DD'), '45 Cedar St', 'Seattle', 'WA', 98101, 'USA');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, hire_date, city, region, postal_code, country)
VALUES ('E006', 'Smith', 'Jessica', 'Developer', 'Miss', TO_DATE('1995-07-12',
'YYYY-MM-DD'), TO_DATE('2020-04-30', 'YYYY-MM-DD'), 'Boston', 'MA', 02101, 'USA');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, hire_date, address, region, postal_code, country)
VALUES ('E007', 'Johnson', 'David', 'Sales Representative', 'Mr.', TO_DATE('1987-
11-25', 'YYYY-MM-DD'), TO_DATE('2014-02-12', 'YYYY-MM-DD'), '1234 Oak St', NULL,
94101, 'USA');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, hire_date, address, city, region, postal_code)
VALUES ('E008', 'Anderson', 'Emily', 'Marketing Specialist', 'Ms.', TO_DATE('1992-
04-18', 'YYYY-MM-DD'), TO_DATE('2017-09-05', 'YYYY-MM-DD'), '567 Pine St',
'Dallas', 'TX', 75201);
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, hire_date, address, city, region, country)
VALUES ('E009', 'Garcia', 'Carlos', 'HR Manager', 'Mr.', TO_DATE('1983-06-30',
'YYYY-MM-DD'), TO_DATE('2008-12-10', 'YYYY-MM-DD'), '890 Cedar St', 'Los Angeles',
'CA', 'USA');
INSERT INTO EMPLOYEE2 (employee_id, last_name, first_name, title,
title_of_courtesy, birth_date, address, city, region, postal_code, country)
VALUES ('E010', 'Martinez', 'Maria', 'Financial Analyst', 'Mrs.', TO_DATE('1998-02-
28', 'YYYY-MM-DD'), '100 Oak St', 'Miami', 'FL', 33101, 'USA');
create table EMPLOYEE_TERRITORIES
(employee_id varchar2(5),
territory_id varchar2(5) primary key,
foreign key (employee_id) references EMPLOYEE2(employee_id));
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E001', 'T001');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E002', 'T002');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E003', 'T003');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E004', 'T004');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E005', 'T005');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E006', 'T006');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E007', 'T007');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E008', 'T008');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E009', 'T009');
insert into EMPLOYEE_TERRITORIES (employee_id, territory_id)
values ('E010', 'T010');
create table REGION
(region_id varchar2(5) primary key,
region_description varchar2(50));
insert into REGION (region_id, region_description)
values ('R001', 'Europe');
insert into REGION (region_id, region_description)
values ('R002', 'North America');
insert into REGION (region_id, region_description)
values ('R003', 'South America');
insert into REGION (region_id, region_description)
values ('R004', 'Asia');
insert into REGION (region_id, region_description)
values ('R005', 'Central America');
insert into REGION (region_id, region_description)
values ('R006', 'Australia');
insert into REGION (region_id, region_description)
values ('R007', 'Antarctica');
insert into REGION (region_id, region_description)
values ('R008', 'Africa');
insert into REGION (region_id, region_description)
values ('R009', 'Caribbean');
insert into REGION (region_id, region_description)
values ('R010', 'Middle East');
create table SHIPPERS
(shipper_id varchar2(5) primary key,
company_name varchar2(20),
phone number(15));
insert into SHIPPERS (shipper_id, company_name, phone)
values ('S001', 'Blue Dart', 12345678901);
INSERT INTO SHIPPERS (shipper_id, company_name, phone)
VALUES ('S002', 'UPS', 9876543210);
INSERT INTO SHIPPERS (shipper_id, company_name, phone)
VALUES ('S003', 'FedEx International', 3334445555);
INSERT INTO SHIPPERS (shipper_id, company_name, phone)
VALUES ('S004', 'USPS', 555663777);
INSERT INTO SHIPPERS (shipper_id,company_name, phone)
VALUES ('S005','TNT Express', 5556667777);
INSERT INTO SHIPPERS (shipper_id,company_name, phone)
VALUES ('S006', 'CORPS', 2223334444);
INSERT INTO SHIPPERS (shipper_id, company_name, phone)
VALUES ('S007', 'PostNord', 3456789);
INSERT INTO SHIPPERS (shipper_id, company_name, phone)
VALUES ('S008', 'NEW INC', 567543322);
INSERT INTO SHIPPERS (shipper_id, company_name, phone)
VALUES ('S009', 'Royal Mail', 111223333);
INSERT INTO SHIPPERS (shipper_id,company_name, phone)
VALUES ('S010', 'Japan Post', 9998887777);
create table SUPPLIERS
(supplier_id varchar2(5) primary key,
company_name varchar2(20),
contact_name varchar2(20),
contact_tile varchar2(10),
address varchar2(50),
city varchar2(20),
region varchar2(15),
postal_code number(10),
country varchar2(15),
phone number(11),
fax number(20),
home_page varchar2(20));
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S001', 'Acme Supplies', 'John Doe', 'CEO', '123 Main St', 'Springfield',
'IL', 62701, 'USA', 12345678901, 12345678901234567890, 'acme.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S002', 'Beta Suppliers', 'Jane Smith', 'COO', '456 Elm St', 'Shelbyville',
'MA', 01776, 'USA', 23456789012, 23456789012345678901, 'beta.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S003', 'Gamma Wholesalers', 'Mary Johnson', 'CFO', '789 Oak St',
'Ogdenville', 'NY', 10001, 'USA', 34567890123, 34567890123456789012, 'gamma.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S004', 'Delta Ltd.', 'James Brown', 'CTO', '101 Pine St', 'North
Haverbrook', 'CA', 90001, 'USA', 45678901234, 45678901234567890123, 'delta.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S005', 'Epsilon Co.', 'Emily Davis', 'CMO', '202 Birch St', 'Capital
City', 'TX', 73301, 'USA', 56789012345, 56789012345678901234, 'epsilon.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S006', 'Zeta Pvt.', 'Michael Wilson', 'CIO', '303 Cedar St', 'Brockway',
'FL', 33101, 'USA', 67890123456, 67890123456789012345, 'zeta.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S007', 'Eta Group', 'Sarah Lee', 'COO', '404 Maple St', 'Cypress Creek',
'WA', 98101, 'USA', 78901234567, 78901234567890123456, 'eta.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S008', 'Theta Corp.', 'Robert Harris', 'CFO', '505 Willow St', 'Waverly
Hills', 'OH', 43001, 'USA', 89012345678, 89012345678901234567, 'theta.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S009', 'Iota Inc.', 'Patricia White', 'CEO', '606 Aspen St', 'North
Haverbrook', 'AZ', 85001, 'USA', 90123456789, 90123456789012345678, 'iota.com');
insert into SUPPLIERS (supplier_id, company_name, contact_name, contact_tile,
address, city, region, postal_code, country, phone, fax, home_page)
values ('S010', 'Kappa S.A.', 'Charles Martinez', 'CMO', '707 Spruce St',
'Shelbyville', 'CO', 80001, 'USA', 12345678901, 12345678901234567890, 'kappa.com');
create table ORDERS
(order_id varchar2(5) primary key,
customer_id varchar2(5),
employee_id varchar2(5),
order_date date,
required_date date,
shipped_date date,
ship_via varchar2(10),
freight varchar2(10),
ship_name varchar2(15),
ship_address varchar2(30),
ship_city varchar2(20),
ship_region varchar2(20),
foreign key (customer_id) references CUSTOMERS (customer_id),
foreign key (employee_id) references EMPLOYEE2 (employee_id));
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O001', 'C001', 'E001', TO_DATE('2022-01-10', 'YYYY-MM-DD'), TO_DATE('2022-
01-20', 'YYYY-MM-DD'), TO_DATE('2022-01-18', 'YYYY-MM-DD'), 'Air', '100', 'Acme
Corp', '123 Main St', 'Springfield', 'IL');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O002', 'C002', 'E002', TO_DATE('2022-02-15', 'YYYY-MM-DD'), TO_DATE('2022-
02-25', 'YYYY-MM-DD'), TO_DATE('2022-02-24', 'YYYY-MM-DD'), 'Ground', '200', 'Beta
Inc.', '456 Elm St', 'Shelbyville', 'MA');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O003', 'C003', 'E003', TO_DATE('2022-03-20', 'YYYY-MM-DD'), TO_DATE('2022-
03-30', 'YYYY-MM-DD'), TO_DATE('2022-03-28', 'YYYY-MM-DD'), 'Sea', '150', 'Gamma
LLC', '789 Oak St', 'Ogdenville', 'NY');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O004', 'C004', 'E004', TO_DATE('2022-04-10', 'YYYY-MM-DD'), TO_DATE('2022-
04-20', 'YYYY-MM-DD'), TO_DATE('2022-04-18', 'YYYY-MM-DD'), 'Air', '250', 'Delta
Ltd.', '101 Pine St', 'North Haverbrook', 'CA');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O005', 'C005', 'E005', TO_DATE('2022-05-05', 'YYYY-MM-DD'), TO_DATE('2022-
05-15', 'YYYY-MM-DD'), TO_DATE('2022-05-13', 'YYYY-MM-DD'), 'Ground', '300',
'Epsilon Co.', '202 Birch St', 'Capital City', 'TX');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O006', 'C006', 'E006', TO_DATE('2022-06-12', 'YYYY-MM-DD'), TO_DATE('2022-
06-22', 'YYYY-MM-DD'), TO_DATE('2022-06-20', 'YYYY-MM-DD'), 'Sea', '400', 'Zeta
Pvt.', '303 Cedar St', 'Brockway', 'FL');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O007', 'C007', 'E007', TO_DATE('2022-07-10', 'YYYY-MM-DD'), TO_DATE('2022-
07-20', 'YYYY-MM-DD'), TO_DATE('2022-07-18', 'YYYY-MM-DD'), 'Air', '500', 'Eta
Group', '404 Maple St', 'Cypress Creek', 'WA');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O008', 'C008', 'E008', TO_DATE('2022-08-15', 'YYYY-MM-DD'), TO_DATE('2022-
08-25', 'YYYY-MM-DD'), TO_DATE('2022-08-23', 'YYYY-MM-DD'), 'Ground', '600', 'Theta
AG', '505 Willow St', 'Waverly Hills', 'OH');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O009', 'C009', 'E009', TO_DATE('2022-09-10', 'YYYY-MM-DD'), TO_DATE('2022-
09-20', 'YYYY-MM-DD'), TO_DATE('2022-09-18', 'YYYY-MM-DD'), 'Sea', '700', 'Iota
GmbH', '606 Aspen St', 'North Haverbrook', 'AZ');
insert into ORDERS (order_id, customer_id, employee_id, order_date, required_date,
shipped_date, ship_via, freight, ship_name, ship_address, ship_city, ship_region)
values ('O010', 'C010', 'E010', TO_DATE('2022-10-05', 'YYYY-MM-DD'), TO_DATE('2022-
10-15', 'YYYY-MM-DD'), TO_DATE('2022-10-13', 'YYYY-MM-DD'), 'Air', '800', 'Kappa
S.A.', '707 Spruce St', 'Shelbyville', 'CO');
create table CATEGORIES
(category_id varchar2(5) primary key,
category_name varchar2(15),
description varchar2(50),
picture varchar2(50));
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C001', 'Electronics', 'Gadgets and devices', 'electronics.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C002', 'Computers', 'Desktops and laptops', 'computers.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C003', 'Office Supplies', 'Office essentials', 'office_supplies.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C004', 'Accessories', 'Computer peripherals', 'accessories.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C005', 'Storage', 'Storage devices', 'storage.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C006', 'Networking', 'Network equipment', 'networking.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C007', 'Software', 'Software and apps', 'software.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C008', 'Furniture', 'Office furniture', 'furniture.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C009', 'Mobile Devices', 'Smartphones and tablets', 'mobile_devices.jpg');
insert into CATEGORIES (category_id, category_name, description, picture)
values ('C010', 'Printers', 'Printers and scanners', 'printers.jpg');
create table PRODUCTS
(product_id varchar2(5) primary key,
product_name varchar2(20),
supplier_id varchar2(5),
category_id varchar2(5),
quantity_per_unit number(5),
unit_price number(5),
units_in_stock number(10),
units_on_order number(10),
reorder_level number(5),
discontinued varchar2(5),
foreign key (supplier_id) references SUPPLIERS (supplier_id),
foreign key (category_id) references CATEGORIES (category_id));
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P001', 'Laptop', 'S001', 'C001', 10, 1500, 25, 10, 5, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P002', 'Desktop', 'S002', 'C002', 5, 1000, 30, 15, 8, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P003', 'Tablet', 'S003', 'C001', 15, 500, 50, 20, 10, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P004', 'Monitor', 'S004', 'C002', 10, 300, 45, 12, 6, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P005', 'Printer', 'S005', 'C003', 20, 150, 20, 10, 4, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P006', 'Scanner', 'S006', 'C003', 25, 200, 35, 18, 7, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P007', 'Keyboard', 'S007', 'C004', 50, 20, 100, 50, 15, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P008', 'Mouse', 'S007', 'C004', 75, 10, 120, 60, 20, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P009', 'External Hard Drive', 'S008', 'C005', 5, 80, 30, 25, 10, 'No');
insert into PRODUCTS (product_id, product_name, supplier_id, category_id,
quantity_per_unit, unit_price, units_in_stock, units_on_order, reorder_level,
discontinued)
values ('P010', 'Webcam', 'S009', 'C006', 10, 50, 60, 35, 12, 'No');
create table ORDER_DETAILS
(order_id varchar2(5),
product_id varchar2(5),
primary key(order_id,product_id),
unit_price number(10),
quantity number(5),
discount number(5),
foreign key (order_id) references ORDERS (order_id),
foreign key (product_id) references PRODUCTS (product_id));
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O001', 'P001', 1500, 2, 5);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O002', 'P002', 1000, 3, 10);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O003', 'P003', 500, 4, 15);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O004', 'P004', 300, 2, 0);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O005', 'P005', 150, 5, 10);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O006', 'P006', 200, 1, 0);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O007', 'P007', 20, 10, 20);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O008', 'P008', 10, 20, 5);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O009', 'P009', 80, 3, 5);
insert into ORDER_DETAILS (order_id, product_id, unit_price, quantity, discount)
values ('O010', 'P010', 50, 4, 10);
create table DTPROPERTIES
(id varchar2(5) ,
object_id varchar2(5),
property varchar2(15),
value number(5),
uvalue number(5),
lvalue number(5),
version varchar2(10),
primary key(id,property));
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P001', 'O001', 'Height', 10, 15, 5, '1.0');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P002', 'O002', 'Width', 20, 25, 15, '1.1');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P003', 'O003', 'Depth', 30, 35, 25, '1.2');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P004', 'O004', 'Length', 40, 45, 35, '1.3');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P005', 'O005', 'Volume', 50, 55, 45, '1.4');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P006', 'O006', 'Weight', 60, 65, 55, '1.5');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P007', 'O007', 'Density', 70, 75, 65, '1.6');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P008', 'O008', 'Area', 80, 85, 75, '1.7');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P009', 'O009', 'Mass', 90, 95, 85, '1.8');
insert into DTPROPERTIES (id, object_id, property, value, uvalue, lvalue, version)
values ('P010', 'O010', 'Temperature', 100, 105, 95, '1.9');