This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: Caso 2 | |
CLI = {dni:number, nya:string, sexo:string, edad:number, dir:string, tel:string, zona:string | |
34500600,'Ana Perez','F',34,'Av Libertador 45(E)','2645678900','Capital' | |
24900600,'Luciano Pereyra','M',47,'Av Ignacio de la Roza 590(E)','2646678887','Rivadavia' | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Personas (todos los datos) que solamente han tomado la línea 26A de la provincia de San Juan. | |
B=ρE (πcuit,codlinea (πcuit (σ prov='San Juan' Emp)⨝(σcodlinea='26A' Lin))) | |
C=ρTA (π num (V⨝ (V.empresa≠E.cuit and V.codlinea=E.codlinea) or ( V.empresa=E.cuit and V.codlinea≠E.codlinea) or (V.empresa≠E.cuit) B)) | |
HH = (π num V-C)⨝Tar | |
HH | |
Otra solución | |
TNSJ=ρ NSJ ( πnum ( σprov≠'San Juan' (V⨝V.empresa=Emp.cuit Emp))) | |
TSJ= πnum (V ⨝ V.empresa=Emp.cuit and codlinea≠'26A' and prov='San Juan' Emp) | |
(πnum V-(TNSJ∪TSJ))⨝ Tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: caso6 | |
Tar = { | |
num:number, monto:number, dni:number, nombre:string, prov:string | |
100, 450, 35678900, 'Juan Perez', 'San Juan' | |
102, 678, 40222333, 'María Castro', 'Córdoba' | |
103, 450, 34567890, 'Ariel Gonzalez', 'San Juan' | |
344, 234, 33444567, 'Ian Mendez', 'San Juan' | |
345, 239, 38444567, 'Morena Torrez', 'San Luis' | |
500, 450, 34567890, 'Ariel Gonzalez', 'San Juan' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*1.Mostrar el nombre (nombre y apellido) y el salario (salary) de todos los empleados.*/ | |
/*π nome,ap,salario (emp)*/ | |
/*2. Renombrar el nombre de la columna Nome a Nombre y Ap a Apellido y salario a Sueldo.*/ | |
/*ρ Nombre←nome ,Apellido←ap, Sueldo←salario (π nome,ap,salario (emp))*/ | |
/*3. Mostrar todos los datos de los departamentos con identificador 10 ó 70 (Codd).*/ | |
/*σ codd=10 or codd=70 (dep)*/ | |
/*Otra forma*/ | |
/*σ codd=10 (dep)∪ σ codd=70 (dep)*/ | |
/*4. Mostrar el nombre de los empleados junto al nombre del departamento donde trabajan.*/ | |
/*π nome,ap, nom (π code, nome, ap,codd (emp) ⨝ dep)*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group:algebra | |
X = {P, Q, R | |
10,a,5 | |
15,b,8 | |
25,a,6 | |
} | |
Z = {A, B, C | |
10,b,6 | |
25,c,3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group:socrative | |
Especie = {Nombre, Nombre_cientifico, Reino | |
'Petiribí','Cordia trichotoma Arrab','Flora' | |
'Yaguareté','Panthera onca','Fauna' | |
'Cóndor Andino','Vultur gryphus', 'Fauna' | |
} | |
Se_encuentra={Nombre, Pais, Cantidad_ejemplares | |
'Petiribí','Argentina',20010 | |
'Yaguareté','Argentina',249 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: Caso8 | |
Pers = { | |
dni:number, telp:number, mail:string | |
1, 10, 1.com | |
2, 20, 2.com | |
3, 30, 3.com | |
4, 40, 4.com | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM ******************************************************************** | |
REM Create the REGIONS table to hold region information for locations | |
REM HR.LOCATIONS table has a foreign key to this table. | |
Prompt ****** Creating REGIONS table .... | |
CREATE TABLE regions | |
( region_id NUMBER | |
CONSTRAINT region_id_nn NOT NULL | |
, region_name VARCHAR2(25) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group:espectaculos | |
Persona = {DNI, Tel, email | |
1,'44444', 'p1@gmail.com' | |
2,'44444', 'p2@gmail.com' | |
3,'44444', 'p2@gmail.com' | |
} | |
Teatro = {Codt, Nom, Direc, Tel, Capac, prov | |
1, 'Bicentenario','Av España','3333', 1200, 'SJ' | |
2, 'Sarmiento','Av España','3333', 1200, 'SJ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group:Recursos Humanos | |
localidad = { | |
localidad_id:number, calle:string , codpostal:string, ciudad:string , provincia:string, idpais:string | |
1000 , '1297 Via Cola di Rie' , '00989' , 'Roma' , null , 'IT' | |
1100 , '93091 Calle della Testa' , '10934' , 'Venice' , null , 'IT' | |
1200 , '2017 Shinjuku-ku' , '1689' , 'Tokyo' , 'Tokyo Prefecture' , 'JP' | |
1300 , '9450 Kamiya-cho' , '6823' , 'Hiroshima' , null , 'JP' | |
1400 , '2014 Jabberwocky Rd' , '26192' , 'Southlake' , 'Texas' , 'US' |