0% found this document useful (0 votes)
24 views2 pages

SQL Practica 2

Uploaded by

Daniel Juarez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

SQL Practica 2

Uploaded by

Daniel Juarez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL> connect

Enter user-name: admin1


Connected.
SQL> ---B1
SQL> select last_name, salary from hr.employees where last_name in ('Banda',
'Greene', 'Hintz');

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

SQL> spool off

You might also like