Quiz da semana - Olhar pelo buraco da fechadura - Blocos em memória.
Autor: Pitombeira | Publicado: 2011-11-04T11:33:00-03:00

levando em conta a criação do schema transcrita no final do post responda:


Que blocos de objetos do schema STORE vão para a memória quando executo a seguinte sequência de instruções SQL logado no sqlplus com o usuário SYS:
SQL&gt; startup force;ORACLE instance started.
Total System Global Area&nbsp; 472887296 bytesFixed Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1344952 bytesVariable Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 163580488 bytesDatabase Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 301989888 bytesRedo Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5971968 bytesDatabase mounted.Database opened.SQL&gt; insert into store.products (product_id , product_type_id , name , description , price) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; values (10001 , 3 , 'Produto 10001' , 'Descrição 10001' , 17.49) ;&nbsp; 2&nbsp; 1 row created.
SQL&gt; commit;
Commit complete.
SQL&gt;

==&gt; &nbsp; Criação do SCHEMA &lt;== Extraido&nbsp;-- This script does the following:-- &nbsp; 1. Creates the store user-- &nbsp; 2. Creates the database tables-- &nbsp; 3. Creates the PL/SQL code-- &nbsp; 4. Populates the database tables with sample data
-- attempt to drop the store user (this will generate an error-- if the store user does not yet exist; do not worry about this-- error); this statement is included so that you do not have-- to manually run DROP before recreating the schemaDROP USER store CASCADE;
-- create the store userCREATE USER store IDENTIFIED BY oracle;
-- allow the store user to connect and create database itemsGRANT connect, resource TO store;
-- connect as the store userCONNECT store/oracle;
-- create the tablesCREATE TABLE customers (&nbsp; customer_id INTEGER CONSTRAINT customers_pk PRIMARY KEY,&nbsp; first_name VARCHAR2(10) NOT NULL,&nbsp; last_name VARCHAR2(10) NOT NULL,&nbsp; dob DATE,&nbsp; phone VARCHAR2(12));
CREATE TABLE product_types (&nbsp; product_type_id INTEGER CONSTRAINT product_types_pk PRIMARY KEY,&nbsp; name VARCHAR2(10) NOT NULL);
CREATE TABLE products (&nbsp; product_id INTEGER CONSTRAINT products_pk PRIMARY KEY,&nbsp; product_type_id INTEGER&nbsp; &nbsp; CONSTRAINT products_fk_product_types&nbsp; &nbsp; REFERENCES product_types(product_type_id),&nbsp; name VARCHAR2(30) NOT NULL,&nbsp; description VARCHAR2(50),&nbsp; price NUMBER(5, 2));
create index products_xie1 on products(product_type_id);create index products_xie2 on products(name);create index products_xie3 on products(description);create index products_xie4 on products(price);
CREATE TABLE purchases (&nbsp; product_id INTEGER&nbsp; &nbsp; CONSTRAINT purchases_fk_products&nbsp; &nbsp; REFERENCES products(product_id),&nbsp; customer_id INTEGER&nbsp; &nbsp; CONSTRAINT purchases_fk_customers&nbsp; &nbsp; REFERENCES customers(customer_id),&nbsp; quantity INTEGER NOT NULL,&nbsp; CONSTRAINT purchases_pk PRIMARY KEY (product_id, customer_id));
CREATE TABLE employees (&nbsp; employee_id INTEGER CONSTRAINT employees_pk PRIMARY KEY,&nbsp; manager_id INTEGER,&nbsp; first_name VARCHAR2(10) NOT NULL,&nbsp; last_name VARCHAR2(10) NOT NULL,&nbsp; title VARCHAR2(20),&nbsp; salary NUMBER(6, 0));
CREATE TABLE salary_grades (&nbsp; salary_grade_id INTEGER CONSTRAINT salary_grade_pk PRIMARY KEY,&nbsp; low_salary NUMBER(6, 0),&nbsp; high_salary NUMBER(6, 0));
CREATE TABLE purchases_with_timestamp (&nbsp; product_id INTEGER REFERENCES products(product_id),&nbsp; customer_id INTEGER REFERENCES customers(customer_id),&nbsp; made_on TIMESTAMP(4));
CREATE TABLE purchases_timestamp_with_tz (&nbsp; product_id INTEGER REFERENCES products(product_id),&nbsp; customer_id INTEGER REFERENCES customers(customer_id),&nbsp; made_on TIMESTAMP(4) WITH TIME ZONE);
CREATE TABLE purchases_with_local_tz (&nbsp; product_id INTEGER REFERENCES products(product_id),&nbsp; customer_id INTEGER REFERENCES customers(customer_id),&nbsp; made_on TIMESTAMP(4) WITH LOCAL TIME ZONE);
CREATE TABLE coupons (&nbsp; coupon_id INTEGER CONSTRAINT coupons_pk PRIMARY KEY,&nbsp; name VARCHAR2(30) NOT NULL,&nbsp; duration INTERVAL YEAR(3) TO MONTH);
CREATE TABLE promotions (&nbsp; promotion_id INTEGER CONSTRAINT promotions_pk PRIMARY KEY,&nbsp; name VARCHAR2(30) NOT NULL,&nbsp; duration INTERVAL DAY(3) TO SECOND (4));
CREATE TABLE order_status (&nbsp; order_status_id INTEGER CONSTRAINT default_example_pk PRIMARY KEY,&nbsp; status VARCHAR2(20) DEFAULT 'Order placed' NOT NULL,&nbsp; last_modified DATE DEFAULT SYSDATE);
CREATE TABLE product_changes (&nbsp; product_id INTEGER CONSTRAINT prod_changes_pk PRIMARY KEY,&nbsp; product_type_id INTEGER&nbsp; &nbsp; CONSTRAINT prod_changes_fk_product_types&nbsp; &nbsp; REFERENCES product_types(product_type_id),&nbsp; name VARCHAR2(30) NOT NULL,&nbsp; description VARCHAR2(50),&nbsp; price NUMBER(5, 2));
CREATE TABLE more_products (&nbsp; prd_id INTEGER PRIMARY KEY,&nbsp; prd_type_id INTEGER REFERENCES product_types(product_type_id),&nbsp; name VARCHAR2(30) NOT NULL,&nbsp; available CHAR(1));
CREATE TABLE more_employees (&nbsp; employee_id INTEGER CONSTRAINT more_employees_pk PRIMARY KEY,&nbsp; manager_id INTEGER&nbsp; &nbsp; CONSTRAINT more_empl_fk_fk_more_empl&nbsp;&nbsp; &nbsp; REFERENCES more_employees(employee_id),&nbsp; first_name VARCHAR2(10) NOT NULL,&nbsp; last_name VARCHAR2(10) NOT NULL,&nbsp; title VARCHAR2(20),&nbsp; salary NUMBER(6, 0));
CREATE TABLE divisions (&nbsp; division_id CHAR(3) CONSTRAINT divisions_pk PRIMARY KEY,&nbsp; name VARCHAR2(15) NOT NULL);
CREATE TABLE jobs (&nbsp; job_id CHAR(3) CONSTRAINT jobs_pk PRIMARY KEY,&nbsp; name VARCHAR2(20) NOT NULL);
CREATE TABLE employees2 (&nbsp; employee_id INTEGER CONSTRAINT employees2_pk PRIMARY KEY,&nbsp; division_id CHAR(3)&nbsp; &nbsp; CONSTRAINT employees2_fk_divisions&nbsp; &nbsp; REFERENCES divisions(division_id),&nbsp; job_id CHAR(3) REFERENCES jobs(job_id),&nbsp; first_name VARCHAR2(10) NOT NULL,&nbsp; last_name VARCHAR2(10) NOT NULL,&nbsp; salary NUMBER(6, 0));
CREATE TABLE all_sales (&nbsp; year INTEGER NOT NULL,&nbsp; month INTEGER NOT NULL,&nbsp; prd_type_id INTEGER&nbsp; &nbsp; CONSTRAINT all_sales_fk_product_types&nbsp; &nbsp; REFERENCES product_types(product_type_id),&nbsp; emp_id INTEGER&nbsp; &nbsp; CONSTRAINT all_sales_fk_employees2&nbsp; &nbsp; REFERENCES employees2(employee_id),&nbsp; amount NUMBER(8, 2),&nbsp; CONSTRAINT all_sales_pk PRIMARY KEY (&nbsp; &nbsp; year, month, prd_type_id, emp_id&nbsp; ));
CREATE TABLE product_price_audit (&nbsp; product_id INTEGER&nbsp; &nbsp; CONSTRAINT price_audit_fk_products&nbsp; &nbsp; REFERENCES products(product_id),&nbsp; old_price &nbsp;NUMBER(5, 2),&nbsp; new_price &nbsp;NUMBER(5, 2));
CREATE TABLE reg_exps (&nbsp; id NUMBER CONSTRAINT reg_exps_pk PRIMARY KEY,&nbsp; text VARCHAR2(512) NOT NULL);
-- create the PL/SQL codeCREATE PROCEDURE update_product_price(&nbsp; p_product_id IN products.product_id%TYPE,&nbsp; p_factor &nbsp; &nbsp; IN NUMBER) AS&nbsp; v_product_count INTEGER;BEGIN&nbsp; -- count the number of products with the&nbsp; -- supplied product_id (will be 1 if the product exists)&nbsp; SELECT COUNT(*)&nbsp; INTO v_product_count&nbsp; FROM products&nbsp; WHERE product_id = p_product_id;
&nbsp; -- if the product exists (v_product_count = 1) then&nbsp; -- update that product's price&nbsp; IF v_product_count = 1 THEN&nbsp; &nbsp; UPDATE products&nbsp; &nbsp; SET price = price * p_factor&nbsp; &nbsp; WHERE product_id = p_product_id;&nbsp; &nbsp; COMMIT;&nbsp; END IF;EXCEPTION&nbsp; WHEN OTHERS THEN&nbsp; &nbsp; ROLLBACK;END update_product_price;/
CREATE FUNCTION circle_area (&nbsp; p_radius IN NUMBER) RETURN NUMBER AS&nbsp; v_pi &nbsp; NUMBER := 3.1415926;&nbsp; v_area NUMBER;BEGIN&nbsp; -- circle area is pi multiplied by the radius squared&nbsp; v_area := v_pi * POWER(p_radius, 2);&nbsp; RETURN v_area;END circle_area;/
CREATE FUNCTION average_product_price (&nbsp; p_product_type_id IN INTEGER) RETURN NUMBER AS&nbsp; v_average_product_price NUMBER;BEGIN&nbsp; SELECT AVG(price)&nbsp; INTO v_average_product_price&nbsp; FROM products&nbsp; WHERE product_type_id = p_product_type_id;&nbsp; RETURN v_average_product_price;END average_product_price;/
CREATE PACKAGE product_package AS&nbsp; TYPE t_ref_cursor IS REF CURSOR;&nbsp; FUNCTION get_products_ref_cursor RETURN t_ref_cursor;&nbsp; PROCEDURE update_product_price (&nbsp; &nbsp; p_product_id IN products.product_id%TYPE,&nbsp; &nbsp; p_factor &nbsp; &nbsp; IN NUMBER&nbsp; );END product_package;/
CREATE PACKAGE BODY product_package AS&nbsp; FUNCTION get_products_ref_cursor&nbsp; RETURN t_ref_cursor IS&nbsp; &nbsp; v_products_ref_cursor t_ref_cursor;&nbsp; BEGIN&nbsp; &nbsp; -- get the REF CURSOR&nbsp; &nbsp; OPEN v_products_ref_cursor FOR&nbsp; &nbsp; &nbsp; SELECT product_id, name, price&nbsp; &nbsp; &nbsp; FROM products;
&nbsp; &nbsp; -- return the REF CURSOR&nbsp; &nbsp; RETURN v_products_ref_cursor;&nbsp; END get_products_ref_cursor;
&nbsp; PROCEDURE update_product_price (&nbsp; &nbsp; p_product_id IN products.product_id%TYPE,&nbsp; &nbsp; p_factor &nbsp; &nbsp; IN NUMBER&nbsp; ) AS&nbsp; &nbsp; v_product_count INTEGER;&nbsp; BEGIN&nbsp; &nbsp; -- count the number of products with the&nbsp; &nbsp; -- supplied product_id (will be 1 if the product exists)&nbsp; &nbsp; SELECT COUNT(*)&nbsp; &nbsp; INTO v_product_count&nbsp; &nbsp; FROM products&nbsp; &nbsp; WHERE product_id = p_product_id;
&nbsp; &nbsp; -- if the product exists (v_product_count = 1) then&nbsp; &nbsp; -- update that product's price&nbsp; &nbsp; IF v_product_count = 1 THEN&nbsp; &nbsp; &nbsp; UPDATE products&nbsp; &nbsp; &nbsp; SET price = price * p_factor&nbsp; &nbsp; &nbsp; WHERE product_id = p_product_id;&nbsp; &nbsp; &nbsp; COMMIT;&nbsp; &nbsp; END IF;&nbsp; EXCEPTION&nbsp; &nbsp; WHEN OTHERS THEN&nbsp; &nbsp; &nbsp; ROLLBACK;&nbsp; END update_product_price;END product_package;/
CREATE TRIGGER before_product_price_updateBEFORE UPDATE OF priceON productsFOR EACH ROW WHEN (new.price &lt; old.price * 0.75)BEGIN&nbsp; dbms_output.put_line('product_id = ' || :old.product_id);&nbsp; dbms_output.put_line('Old price = ' || :old.price);&nbsp; dbms_output.put_line('New price = ' || :new.price);&nbsp; dbms_output.put_line('The price reduction is more than 25%');
&nbsp; -- insert row into the product_price_audit table&nbsp; INSERT INTO product_price_audit (&nbsp; &nbsp; product_id, old_price, new_price&nbsp; ) VALUES (&nbsp; &nbsp; :old.product_id, :old.price, :new.price&nbsp; );END before_product_price_update;/
-- insert sample data into customers tableINSERT INTO customers (&nbsp; customer_id, first_name, last_name, dob, phone) VALUES (&nbsp; 1, 'John', 'Brown', '01-JAN-1965', '800-555-1211');
INSERT INTO customers (&nbsp; customer_id, first_name, last_name, dob, phone) VALUES (&nbsp; 2, 'Cynthia', 'Green', '05-FEB-1968', '800-555-1212');
INSERT INTO customers (&nbsp; customer_id, first_name, last_name, dob, phone) VALUES (&nbsp; 3, 'Steve', 'White', '16-MAR-1971', '800-555-1213');
INSERT INTO customers (&nbsp; customer_id, first_name, last_name, dob, phone) VALUES (&nbsp; 4, 'Gail', 'Black', NULL, '800-555-1214');
INSERT INTO customers (&nbsp; customer_id, first_name, last_name, dob, phone) VALUES (&nbsp; 5, 'Doreen', 'Blue', '20-MAY-1970', NULL);
-- commit the transactionCOMMIT;
-- insert sample data into product_types tableINSERT INTO product_types (&nbsp; product_type_id, name) VALUES (&nbsp; 1, 'Book');
INSERT INTO product_types (&nbsp; product_type_id, name) VALUES (&nbsp; 2, 'Video');
INSERT INTO product_types (&nbsp; product_type_id, name) VALUES (&nbsp; 3, 'DVD');
INSERT INTO product_types (&nbsp; product_type_id, name) VALUES (&nbsp; 4, 'CD');
INSERT INTO product_types (&nbsp; product_type_id, name) VALUES (&nbsp; 5, 'Magazine');
-- commit the transactionCOMMIT;
-- insert sample data into products tableINSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 1, 1, 'Modern Science', 'A description of modern science', 19.95);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 2, 1, 'Chemistry', 'Introduction to Chemistry', 30.00);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 3, 2, 'Supernova', 'A star explodes', 25.99);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 4, 2, 'Tank War', 'Action movie about a future war', 13.95);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 5, 2, 'Z Files', 'Series on mysterious activities', 49.99);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 6, 2, '2412: The Return', 'Aliens return', 14.95);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price)VALUES (&nbsp; 7, 3, 'Space Force 9', 'Adventures of heroes', 13.49);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 8, 3, 'From Another Planet', 'Alien from another planet lands on Earth', 12.99);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 9, 4, 'Classical Music', 'The best classical music', 10.99);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 10, 4, 'Pop 3', 'The best popular music', 15.99);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 11, 4, 'Creative Yell', 'Debut album', 14.99);
INSERT INTO products (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 12, NULL, 'My Front Line', 'Their greatest hits', 13.49);
-- commit the transactionCOMMIT;
-- insert sample data into purchases tableINSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 1, 1, 1);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 2, 1, 3);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 1, 4, 1);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 2, 2, 1);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 1, 3, 1);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 1, 2, 2);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 2, 3, 1);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 2, 4, 1);
INSERT INTO purchases (&nbsp; product_id, customer_id, quantity) VALUES (&nbsp; 3, 3, 1);
-- commit the transactionCOMMIT;
-- insert sample data into employees tableINSERT INTO employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 1, NULL, 'James', 'Smith', 'CEO', 800000);
INSERT INTO employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 2, 1, 'Ron', 'Johnson', 'Sales Manager', 600000);
INSERT INTO employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 3, 2, 'Fred', 'Hobbs', 'Salesperson', 150000);
INSERT INTO employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 4, 2, 'Susan', 'Jones', 'Salesperson', 500000);
-- commit the transactionCOMMIT;
-- insert sample data into salary_grade tableINSERT INTO salary_grades (&nbsp; salary_grade_id, low_salary, high_salary) VALUES (&nbsp; 1, 1, 250000);
INSERT INTO salary_grades (&nbsp; salary_grade_id, low_salary, high_salary) VALUES (&nbsp; 2, 250001, 500000);
INSERT INTO salary_grades (&nbsp; salary_grade_id, low_salary, high_salary) VALUES (&nbsp; 3, 500001, 750000);
INSERT INTO salary_grades (&nbsp; salary_grade_id, low_salary, high_salary) VALUES (&nbsp; 4, 750001, 999999);
-- commit the transactionCOMMIT;
-- insert sample data into purchases_with_timestamp tableINSERT INTO purchases_with_timestamp (&nbsp; product_id, customer_id, made_on) VALUES (&nbsp; 1, 1, TIMESTAMP '2005-05-13 07:15:31.1234');
-- commit the transactionCOMMIT;
-- insert sample data into purchases_with_tz tableINSERT INTO purchases_timestamp_with_tz (&nbsp; product_id, customer_id, made_on) VALUES (&nbsp; 1, 1, TIMESTAMP '2005-05-13 07:15:31.1234 -07:00');
INSERT INTO purchases_timestamp_with_tz (&nbsp; product_id, customer_id, made_on) VALUES (&nbsp; 1, 2, TIMESTAMP '2005-05-13 07:15:31.1234 PST');
-- commit the transactionCOMMIT;
-- insert sample data into purchases_with_local_tz tableINSERT INTO purchases_with_local_tz (&nbsp; product_id, customer_id, made_on) VALUES (&nbsp; 1, 1, TIMESTAMP '2005-05-13 07:15:30 EST');
-- commit the transactionCOMMIT;
-- insert sample data into coupons tableINSERT INTO coupons (&nbsp; coupon_id, name, duration) VALUES (&nbsp; 1, '$1 off Z Files', INTERVAL '1' YEAR);
INSERT INTO coupons (&nbsp; coupon_id, name, duration) VALUES (&nbsp; 2, '$2 off Pop 3', INTERVAL '11' MONTH);
INSERT INTO coupons (&nbsp; coupon_id, name, duration) VALUES (&nbsp; 3, '$3 off Modern Science', INTERVAL '14' MONTH);
INSERT INTO coupons (&nbsp; coupon_id, name, duration) VALUES (&nbsp; 4, '$2 off Tank War', INTERVAL '1-3' YEAR TO MONTH);
INSERT INTO coupons (&nbsp; coupon_id, name, duration) VALUES (&nbsp; 5, '$1 off Chemistry', INTERVAL '0-5' YEAR TO MONTH);
INSERT INTO coupons (&nbsp; coupon_id, name, duration) VALUES (&nbsp; 6, '$2 off Creative Yell', INTERVAL '123' YEAR(3));
-- commit the transactionCOMMIT;
-- insert sample data into promotions tableINSERT INTO promotions (&nbsp; promotion_id, name, duration) VALUES (&nbsp; 1, '10% off Z Files', INTERVAL '3' DAY);
INSERT INTO promotions (&nbsp; promotion_id, name, duration) VALUES (&nbsp; 2, '20% off Pop 3', INTERVAL '2' HOUR);
INSERT INTO promotions (&nbsp; promotion_id, name, duration) VALUES (&nbsp; 3, '30% off Modern Science', INTERVAL '25' MINUTE);
INSERT INTO promotions (&nbsp; promotion_id, name, duration) VALUES (&nbsp; 4, '20% off Tank War', INTERVAL '45' SECOND);
INSERT INTO promotions (&nbsp; promotion_id, name, duration) VALUES (&nbsp; 5, '10% off Chemistry', INTERVAL '3 2:25' DAY TO MINUTE);
INSERT INTO promotions (&nbsp; promotion_id, name, duration) VALUES (&nbsp; 6, '20% off Creative Yell', INTERVAL '3 2:25:45' DAY TO SECOND);
INSERT INTO promotions (&nbsp; promotion_id, name, duration) VALUES (&nbsp; 7, '15% off My Front Line', INTERVAL '123 2:25:45.12' DAY(3) TO SECOND(2));
-- commit the transactionCOMMIT;
-- insert sample data into order_status tableINSERT INTO order_status (&nbsp; order_status_id) VALUES (&nbsp; 1);
INSERT INTO order_status (&nbsp; order_status_id, status, last_modified) VALUES (&nbsp; 2, 'Order shipped', '10-JUN-2004');
-- commit the transactionCOMMIT;
-- insert sample data into product_changes tableINSERT INTO product_changes (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 1, 1, 'Modern Science', 'A description of modern science', 40.00);
INSERT INTO product_changes (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 2, 1, 'New Chemistry', 'Introduction to Chemistry', 35.00);
INSERT INTO product_changes (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 3, 1, 'Supernova', 'A star explodes', 25.99);
INSERT INTO product_changes (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 13, 2, 'Lunar Landing', 'Documentary', 15.99);
INSERT INTO product_changes (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 14, 2, 'Submarine', 'Documentary', 15.99);
INSERT INTO product_changes (&nbsp; product_id, product_type_id, name, description, price) VALUES (&nbsp; 15, 2, 'Airplane', 'Documentary', 15.99);
-- commit the transactionCOMMIT;
-- insert sample data into more_products tableINSERT INTO more_products (&nbsp; prd_id, prd_type_id, name, available) VALUES (&nbsp; 1, 1, 'Modern Science', 'Y');
INSERT INTO more_products (&nbsp; prd_id, prd_type_id, name, available) VALUES (&nbsp; 2, 1, 'Chemistry', 'Y');
INSERT INTO more_products (&nbsp; prd_id, prd_type_id, name, available) VALUES (&nbsp; 3, NULL, 'Supernova', 'N');
INSERT INTO more_products (&nbsp; prd_id, prd_type_id, name, available) VALUES (&nbsp; 4, 2, 'Lunar Landing', 'N');
INSERT INTO more_products (&nbsp; prd_id, prd_type_id, name, available) VALUES (&nbsp; 5, 2, 'Submarine', 'Y');
-- commit the transactionCOMMIT;
-- insert sample data into more_employees tableINSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 1, NULL, 'James', 'Smith', 'CEO', 800000);&nbsp; &nbsp; &nbsp;INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 2, 1, 'Ron', 'Johnson', 'Sales Manager', 600000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 3, 2, 'Fred', 'Hobbs', 'Sales Person', 200000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 4, 1, 'Susan', 'Jones', 'Support Manager', 500000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 5, 2, 'Rob', 'Green', 'Sales Person', 40000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 6, 4, 'Jane', 'Brown', 'Support Person', 45000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 7, 4, 'John', 'Grey', 'Support Manager', 30000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 8, 7, 'Jean', 'Blue', 'Support Person', 29000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 9, 6, 'Henry', 'Heyson', 'Support Person', 30000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 10, 1, 'Kevin', 'Black', 'Ops Manager', 100000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 11, 10, 'Keith', 'Long', 'Ops Person', 50000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 12, 10, 'Frank', 'Howard', 'Ops Person', 45000);
INSERT INTO more_employees (&nbsp; employee_id, manager_id, first_name, last_name, title, salary) VALUES (&nbsp; 13, 10, 'Doreen', 'Penn', 'Ops Person', 47000);
-- commit the transactionCOMMIT;
-- insert sample data into divisions tableINSERT INTO divisions (&nbsp; division_id, name) VALUES (&nbsp; 'SAL', 'Sales');
INSERT INTO divisions (&nbsp; division_id, name) VALUES (&nbsp; 'OPE', 'Operations');
INSERT INTO divisions (&nbsp; division_id, name) VALUES (&nbsp; 'SUP', 'Support');
INSERT INTO divisions (&nbsp; division_id, name) VALUES (&nbsp; 'BUS', 'Business');
-- commit the transactionCOMMIT;
-- insert sample data into jobs tableINSERT INTO jobs (&nbsp; job_id, name) VALUES (&nbsp; 'WOR', 'Worker');
INSERT INTO jobs (&nbsp; job_id, name) VALUES (&nbsp; 'MGR', 'Manager');
INSERT INTO jobs (&nbsp; job_id, name) VALUES (&nbsp; 'ENG', 'Engineer');
INSERT INTO jobs (&nbsp; job_id, name) VALUES (&nbsp; 'TEC', 'Technologist');
INSERT INTO jobs (&nbsp; job_id, name) VALUES (&nbsp; 'PRE', 'President');
-- commit the transactionCOMMIT;
-- insert sample data into employees2 tableINSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 1, 'BUS', 'PRE', 'James', 'Smith', 800000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 2, 'SAL', 'MGR', 'Ron', 'Johnson', 350000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 3, 'SAL', 'WOR', 'Fred', 'Hobbs', 140000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 4, 'SUP', 'MGR', 'Susan', 'Jones', 200000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 5, 'SAL', 'WOR', 'Rob', 'Green', 350000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 6, 'SUP', 'WOR', 'Jane', 'Brown', 200000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 7, 'SUP', 'MGR', 'John', 'Grey', 265000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 8, 'SUP', 'WOR', 'Jean', 'Blue', 110000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 9, 'SUP', 'WOR', 'Henry', 'Heyson', 125000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 10, 'OPE', 'MGR', 'Kevin', 'Black', 225000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 11, 'OPE', 'MGR', 'Keith', 'Long', 165000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 12, 'OPE', 'WOR', 'Frank', 'Howard', 125000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 13, 'OPE', 'WOR', 'Doreen', 'Penn', 145000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 14, 'BUS', 'MGR', 'Mark', 'Smith', 155000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 15, 'BUS', 'MGR', 'Jill', 'Jones', 175000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 16, 'OPE', 'ENG', 'Megan', 'Craig', 245000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 17, 'SUP', 'TEC', 'Matthew', 'Brant', 115000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 18, 'OPE', 'MGR', 'Tony', 'Clerke', 200000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 19, 'BUS', 'MGR', 'Tanya', 'Conway', 200000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 20, 'OPE', 'MGR', 'Terry', 'Cliff', 215000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 21, 'SAL', 'MGR', 'Steve', 'Green', 275000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 22, 'SAL', 'MGR', 'Roy', 'Red', 375000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 23, 'SAL', 'MGR', 'Sandra', 'Smith', 335000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 24, 'SAL', 'MGR', 'Gail', 'Silver', 225000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 25, 'SAL', 'MGR', 'Gerald', 'Gold', 245000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 26, 'SAL', 'MGR', 'Eileen', 'Lane', 235000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 27, 'SAL', 'MGR', 'Doreen', 'Upton', 235000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 28, 'SAL', 'MGR', 'Jack', 'Ewing', 235000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 29, 'SAL', 'MGR', 'Paul', 'Owens', 245000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 30, 'SAL', 'MGR', 'Melanie', 'York', 255000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 31, 'SAL', 'MGR', 'Tracy', 'Yellow', 225000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 32, 'SAL', 'MGR', 'Sarah', 'White', 235000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 33, 'SAL', 'MGR', 'Terry', 'Iron', 225000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 34, 'SAL', 'MGR', 'Christine', 'Brown', 247000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 35, 'SAL', 'MGR', 'John', 'Brown', 249000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 36, 'SAL', 'MGR', 'Kelvin', 'Trenton', 255000);
INSERT INTO employees2 (&nbsp; employee_id, division_id, job_id, first_name, last_name, salary) VALUES (&nbsp; 37, 'BUS', 'WOR', 'Damon', 'Jones', 280000);
-- commit the transactionCOMMIT;
-- insert sample data into all_sales tableINSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 1, 10034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 2, 15144.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 3, 20137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 4, 25057.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 5, 17214.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 6, 15564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 7, 12654.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 8, 17434.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 9, 19854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 10, 21754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 11, 13029.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 1, 2003, 12, 10034.84);

INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 1, 1034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 2, 1544.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 3, 2037.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 4, 2557.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 5, 1714.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 6, 1564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 7, 1264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 8, 1734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 9, 1854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 10, 2754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 11, 1329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 2, 2003, 12, 1034.84);

INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 1, 6034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 2, 1944.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 3, 2537.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 4, 4557.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 5, 3714.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 6, 3564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 7, 21264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 8, 21734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 9, 12854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 10, 32754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 11, 15329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 3, 2003, 12, 14034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 1, 3034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 2, 2944.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 3, 5537.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 4, 3557.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 5, 2714.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 6, 7564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 7, 1264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 8, 21734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 9, 14854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 10, 22754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 11, 11329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 4, 2003, 12, 11034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 1, 11034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 2, 16144.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 3, 24137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 4, 29057.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 5, 19214.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 6, 16564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 7, 13654.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 8, 17834.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 9, 21854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 10, 18754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 11, 16529.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 1, 2003, 12, 9434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 1, 1234.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 2, 1044.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 3, 2537.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 4, 2657.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 5, 1314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 6, 1264.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 7, 1964.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 8, 1234.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 9, 1954.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 10, 2254.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 11, 1229.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 2, 2003, 12, 1134.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 1, 6334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 2, 1544.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 3, 2737.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 4, 4657.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 5, 3714.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 6, 3864.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 7, 27264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 8, 17734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 9, 10854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 10, 15754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 11, 10329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 3, 2003, 12, 12034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 1, 3334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 2, 2344.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 3, 5137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 4, 3157.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 5, 2114.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 6, 7064.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 7, 1564.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 8, 12734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 9, 10854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 10, 20754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 11, 10329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 4, 2003, 12, 2034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 1, 4034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 2, 7144.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 3, 12137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 4, 16057.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 5, 13214.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 6, 3564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 7, 7654.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 8, 5834.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 9, 6754.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 10, 12534.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 11, 2529.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 1, 2003, 12, 7434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 1, 1234.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 2, 2244.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 3, 2137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 4, 2357.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 5, 1314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 6, 1364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 7, 1364.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 8, 1334.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 9, 1354.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 10, 2354.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 11, 1329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 2, 2003, 12, 1334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 1, 6334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 2, 1344.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 3, 2337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 4, 4357.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 5, 3314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 6, 3364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 7, 23264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 8, 13734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 9, 13854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 10, 13754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 11, 13329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 3, 2003, 12, 13034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 1, 3334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 2, 2344.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 3, 5337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 4, 3357.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 5, 2314.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 6, 7364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 7, 1364.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 8, 13734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 9, 13854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 10, 23754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 11, 13329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 4, 2003, 12, 2334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 1, 7034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 2, 17144.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 3, 22137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 4, 24057.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 5, 25214.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 6, 14564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 7, 17654.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 8, 15834.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 9, 15854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 10, 22754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 11, 14529.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 1, 2003, 12, 10434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 1, 1934.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 2, 2844.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 3, 2837.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 4, 2697.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 5, 7314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 6, 1864.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 7, 2364.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 8, 4334.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 9, 6654.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 10, 2254.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 11, 5429.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 2, 2003, 12, 3334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 1, 2334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 2, 4544.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 3, 6337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 4, 3357.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 5, 2314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 6, 1364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 7, 5264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 8, 1734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 9, 1854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 10, 1354.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 11, 1332.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 3, 2003, 12, 3034.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 1, 3364.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 2, 4344.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 3, 4337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 4, 2357.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 5, 6314.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 6, 4364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 7, 2364.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 8, 3734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 9, 3854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 10, 3754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 11, 1329.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 4, 2003, 12, 7334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 1, 1234.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 2, 6144.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 3, 8137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 4, 14057.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 5, 12214.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 6, 4564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 7, 5654.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 8, 8834.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 9, 10854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 10, 12754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 11, 3529.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 1, 2003, 12, 5434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 1, 3434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 2, 1844.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 3, 2137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 4, 1697.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 5, 4314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 6, 3264.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 7, 5364.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 8, 3334.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 9, 2654.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 10, 454.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 11, 2429.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 2, 2003, 12, 1334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 1, 1434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 2, 3544.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 3, 1337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 4, 1457.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 5, 1314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 6, 4364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 7, 1264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 8, 2734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 9, 4354.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 10, 2354.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 11, 3432.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 3, 2003, 12, 1534.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 1, 1164.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 2, 2144.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 3, 4337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 4, 1357.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 5, 2314.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 6, 2364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 7, 3264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 8, 2234.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 9, 3454.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 10, 2754.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 11, 3429.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 4, 2003, 12, 4334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 1, 5534.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 2, 8844.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 3, 5137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 4, 12057.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 5, 10214.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 6, 2564.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 7, 3654.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 8, 9834.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 9, 9854.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 10, 16754.27);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 11, 5529.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 1, 2003, 12, 3434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 1, 5434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 2, 3844.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 3, 5137.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 4, 3697.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 5, 2314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 6, 5264.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 7, 3364.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 8, 4334.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 9, 4654.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 10, 3454.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 11, 4429.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 2, 2003, 12, 4334.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 1, 2434.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 2, 2544.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 3, 5337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 4, 5457.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 5, 4314.56);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 6, 3364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 7, 3264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 8, 4734.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 9, 2354.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 10, 4354.34);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 11, 2432.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 3, 2003, 12, 4534.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 1, 3164.23);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 2, 3144.65);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 3, 6337.83);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 4, 2357.45);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 5, 4314.564);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 6, 4364.64);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 7, 2264.84);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 8, 4234.82);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 9, 2454.57);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 10, 1554.19);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 11, 2429.73);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 4, 2003, 12, 3334.85);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 1, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 2, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 3, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 4, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 5, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 6, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 7, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 8, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 9, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 10, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 11, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 21, 5, 2003, 12, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 1, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 2, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 3, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 4, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 5, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 6, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 7, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 8, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 9, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 10, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 11, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 22, 5, 2003, 12, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 1, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 2, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 3, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 4, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 5, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 6, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 7, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 8, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 9, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 10, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 11, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 23, 5, 2003, 12, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 1, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 2, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 3, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 4, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 5, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 6, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 7, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 8, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 9, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 10, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 11, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 24, 5, 2003, 12, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 1, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 2, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 3, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 4, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 5, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 6, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 7, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 8, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 9, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 10, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 11, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 25, 5, 2003, 12, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 1, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 2, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 3, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 4, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 5, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 6, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 7, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 8, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 9, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 10, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 11, NULL);
INSERT INTO all_sales (&nbsp; emp_id, prd_type_id, year, month, amount) VALUES (&nbsp; 26, 5, 2003, 12, NULL);
-- commit the transactionCOMMIT;
-- insert sample data into reg_exps tableINSERT INTO reg_exps (&nbsp; id, text) VALUES (&nbsp; 1,&nbsp;'But, soft! What light through yonder window breaks?It is the east, and Juliet is the sun.Arise, fair sun, and kill the envious moon,Who is already sick and pale with grief,That thou her maid art far more fair than she.');
-- commit the transactionCOMMIT;
-- create the pivot_sales_data tableCREATE TABLE pivot_sales_data AS&nbsp; SELECT *&nbsp; FROM (&nbsp; &nbsp;SELECT month, prd_type_id, amount&nbsp; &nbsp;FROM all_sales&nbsp; &nbsp;WHERE year = 2003&nbsp; &nbsp;AND prd_type_id IN (1, 2, 3)&nbsp; )&nbsp; PIVOT (&nbsp; &nbsp;SUM(amount) FOR month IN (1 AS JAN, 2 AS FEB, 3 AS MAR, 4 AS APR)&nbsp; )&nbsp; ORDER BY prd_type_id;