SQL Module 3 Assignment
SQL Module 3 Assignment
--2.Make an inner join on ‘Customer’ & ‘Ord’ tables on the ‘customer_id’ column
--3.Make left and right joins on ‘Customer’ & ‘Order’ tables on the ‘customer_id’
column
select * from ord
left join customer c
on ord.customer_id=c.customer_id
--4.Update the ‘Orders’ table, set the amount to be 100 where ‘customer_id’ is 3
update orders
set amount = 100
where customer_id = 3