SQL Module 6 Assignment
SQL Module 6 Assignment
/*2.2. Inside a transaction, update the first name of the customer to Francis, where
the last name is Jordan
a. Rollback the transaction
b. Set the first name of customer to Alex, where the last name is Jordan
*/
begin transaction
update customer set first_name ='Francis' where last_name='Ivan'
rollback transaction
begin transaction
update customer set first_name ='Alex' where last_name='Ivan'
--3.Inside a try catch block, divide 100 with 0, print the default error message