Shopping mall managent system4. AFTER INSERTING VALUES IN EMPLOYEE TABLE:
CREATE TABLE customers(
customer_id NUMBER(20)primary key,
customer_name VARCHAR2(30),
Street VARCHAR2(20) ,
City VARCHAR2(20) ,
State CHAR(20),
5. Zip VARCHAR2(10) ,
Phone VARCHAR2(12)
Product_idnumber(20)
Foreignkey(product_id)
Referencesproducts(product_id)
);
Afterinsertingvalues:
8. Joins
Select
shopping_mall.branch_id,shopping_mall.branch_name,employee.employee_id,employee.first_name
fromshopping_mall,employee
where shopping_mall.branch_id=employee.branch_id
select
customers.customer_id,customers.customer_name,customers.phone,products.product_id,products.pro
duct_name,products.product_cost,orders.order_id,orders.customer_id,orders.product_id
fromcustomers,products,orders
where customers.product_id=products.product_id
select
customers.customer_id,customers.customer_name,customers.phone,products.product_id,products.pro
duct_name,products.product_cost,orders.order_id,orders.customer_id,orders.product_id
fromcustomers,products,orders
where customers.product_id=products.product_idandorders.product_id=customers.product_id