Beruflich Dokumente
Kultur Dokumente
Table created.
--------------------------------------------------------------------------------------7.- Insertar los datos correspondientes.
SQL> insert into cientificos values('c1','juana',1000,1);
1 row created.
SQL> insert into cientificos values('c2','zoila',1500,3);
1 row created.
SQL> insert into cientificos values('c3','german',2500,6);
1 row created.
SQL> insert into cientificos values('c4','eulalio',500,1);
1 row created.
SQL> insert into proyectos values('p1','internet','itcg',300,'a
1 row created.
SQL> insert into proyectos values('p2','migracion','itcg',100,'
1 row created.
SQL> insert into proyectos values('p3','seguridad','itcg',200,'
1 row created.
SQL> insert into auxiliares values('c1','agapito',800);
1 row created.
SQL> insert into auxiliares values('c1','panfilo',700);
1 row created.
SQL> insert into auxiliares values('c1','saturnino',500);
1 row created.
SQL> insert into auxiliares values('c2','teofilo',600);
1 row created.
SQL> insert into auxiliares values('c2','amadeo',700);
1 row created.
SQL> insert into aasignado values('c1','p1',2012-01-01,9000);
1 row created.
SQL> insert into aasignado values('c2','p2',2013-01-01,7000);
1 row created.
tos
=aasignado.nproyecto group by nombre_p;
view created.
SQL> select * from resumen;
nombre_p
total
horas presupuestos
--------------- ---------- ---------- ----------Migracion
1
100
7000
Internet
1
300
9000
Seguridad
1
200
9000
-----------------------------------------------------------------------------------------------11.- Crear 4 usuarios: (JUANA, ZOILA, GERMAN y AUXILIAR).
SQL>create user JUANA identified by JUANA default tablespace PROYECTOS;
user created.
SQL>create user ZOILA identified by ZOILA default tablespace PROYECTOS;
user created.
SQL>create user GERMAN identified by GERMAN default tablespace PROYECTOS;
user created.
SQL>create user AUXILIAR identified by AUXILIAR default tablespace PROYECTOS;
user created.
SQL> alter user JUANA quota unlimited on system;
Usuario modificado.
SQL> alter user ZOILA quota unlimited on system;
Usuario modificado.
SQL> alter user GERMAN quota unlimited on system;
Usuario modificado.
SQL> alter user AUXILIAR quota unlimited on system;
Usuario modificado.
---------------------------------------------------------------------------------------------12.- Crear los 5 roles correspondientes con las siguientes caractersticas:
SQL> create role Rol_manipulacion_01;
Role created.
SQL> create role Rol_manipulacion_02;
Role created.
SQL> create role Rol_manipulacion_03;
Role created.
SQL> insert into asignado values((select numero_c from cientificos where nombre_
c = 'eulalio'), (select nproyecto from proyectos where nombre_p = 'internet'),
current_date, 5000);
1 fila creada.
SQL> select * from aasignado;
nu
-C1
C2
C3
C4
np
-P1
P2
P3
P1
fecha_a presupuesto
-------- ----------01/01/12
9000
01/01/13
7000
01/01/13
9000
12/11/14
5000
----------------------------------------------------------------------------------------------17.- Conectarse como usuario AUXILIAR y realizar una consulta a la tabla ASIGN
ADO.
SQL> select * from Orlando.ASIGNADO;
NU
-C1
C2
C3
NP
-P1
P2
P3
FECHA_A PRESUPUESTO
-------- ----------01/01/12
9000
01/01/13
7000
01/01/13
9000
LUGA
HORAS ESTATUS
---- ---------- ---------ITCG
300 Activo
ITCG
300 Activo
FECHA_A PRESUPUESTO
-------- ----------01/01/12
9000
12/11/14
5000
-----------------------------------------------------------------------------------------------