CREATE TABLE shopping_mall
(
branch_id number(20)primary key,
branch_name varchar2(20),
Street VARCHAR2(20) ,
City VARCHAR2(20) ,
State CHAR(20),
Zip VARCHAR2(10));
INSERTING VALUES IN SHOPPING MALL
DELETE VALUES FROM SHOPPING MALL
delete from shopping_mall
where branch_id=001
DELETE COLUMN IN TABLE
alter table shopping_mall drop
column state
Joins
Select
shopping_mall.branch_id,shopping_mall.branch_name,employee.employee_id,employee.first_name
from shopping_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
from customers,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
from customers,products,orders
where customers.product_id=products.product_id and orders.product_id=customers.product_id