SQL Practica 2
SQL Practica 2
LAST_NAME SALARY
------------------------- ----------
Banda 6200
Greene 9500
SQL> ---B2
SQL> update hr.employees set salary = 7000 where last_name = 'Banda';
1 row updated.
SQL> ---B3
SQL> set transaction isolation level read committed;
Transaction set.
SQL> ---B4
SQL> select last_name, salary from hr.employees where last_name in
('Banda','Greene','Hintz');
LAST_NAME SALARY
------------------------- ----------
Banda 6200
Greene 9500
SQL> ---B5
SQL> update hr.employees set salary = 9900 where last_name='Greene';
1 row updated.
SQL> ---B6
SQL> insert into hr.employees (employee_id, last_name, email, hire_date, job_id)
2 values (210,'Hintz','JHINTZ',sysdate,'SH_CLERK');
1 row created.
SQL> ---B7
SQL> select last_name, salary from hr.employees where last_name in
('Banda','Greene','Hintz');
LAST_NAME SALARY
------------------------- ----------
Banda 6200
Greene 9900
SQL> ---B8
SQL> update hr.employees set salary = 6300 where last_name='Banda';
1 row updated.
SQL> ---B9
SQL> commit;
Commit complete.
SQL> ---B10
SQL> select last_name, salary from hr.employees where last_name in
('Banda','Greene','Hintz');
LAST_NAME SALARY
------------------------- ----------
Banda 6300
Greene 9900
Hintz
SQL> ---B11
SQL> commit;
Commit complete.
SQL> ---B12
SQL> select last_name, salary from hr.employees where last_name in ('Banda',
'Greene', 'Hintz');
LAST_NAME SALARY
------------------------- ----------
Banda 6300
Greene 9900
Hintz