SQL Practica 6
SQL Practica 6
SQL> --S2--t1
SQL> select employee_id, email, phone_number from hr.employees where
last_name='Himuro';
SQL> --S1--t2
SQL> update hr.employees set phone_number='515.555.1234' where employee_id =118 and
email='GHIMURO' and phone_number='515.127.4565';
1 row updated.
SQL> --S2--t3
SQL> update hr.employees set phone_number='515.555.1235' where employee_id =118 and
email='GHIMURO' and phone_number='515.127.4565';
SQL> --S1--t4
SQL> commit;
Commit complete.
SQL> --S2--t5
0 rows updated.
SQL> --S1--t6
SQL> update hr.employees set phone_number='515.555.1235' where employee_id =118 and
email='GHIMURO' and phone_number='515.555.1234';
1 row updated.
SQL> --S2--t7
SQL> select employee_id, email, phone_number from hr.employees where
last_name='Himuro';
SQL> --S2--t8
SQL> update hr.employees set phone_number='515.555.1235' where employee_id =118 and
email='GHIMURO' and phone_number='515.555.1234';
1 row updated.
SQL> --S1--t9
SQL> rollback;
SQL> --S2--t10
SQL> commit;
Commit complete.
Rollback complete.
XID STATUS
---------------- ----------------
020013006F040000 ACTIVE