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
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: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
/*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: 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.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: 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
/*PERS (Personas) = {Dni, Nom, Sexo, Edad, Dir, Tel, Zona} | |
DEPO (Deportes) = {Codd, Nomd, Clase} | |
CLUB (Clubes) = {Codc, Nomc, Dir, Tel, Cat, Zona} | |
PRAC (Practican) = {Dni, Codd, Codc}*/ | |
group: deporte | |
PERS = {Dni:number, Nom:string, Sexo:string, Edad:number,Dir:string,Tel:string,Zona:string | |
35678900,'Juan Perez','M',33,'Libertador 340 (E)','4234560','Capital' | |
40222333,'María Castro','F',28,'Salta 560(N)','4305060','Capital' | |
34567890, 'Ariel Gonzalez','M',25,'Mendoza 1780(S)','4209080','Rawson' |
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: Caso2 | |
alu = { | |
dni:number, nomAlu:string, dir:string, tel:string | |
10, Jose, "Rioja 234 (s)", 154054675 | |
20, Ana, "Mendoza 23 (n)", 154054679 | |
30, Luis, "Gral Paz 56(e)", 154054676 | |
40, Leonel, "Gral Acha 33 (n)", 15567895 | |
50, Sabrina, "Pedro de Valdivia 78", 15567892 | |
60, Trump, "Catamarca 44", 15567896 |
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
-- éste es un ejemplo | |
group: CASO4 | |
LEY = { | |
num:number, nombre:string, cant_art:number, fecha:date, ambito:string, dni:number | |
20424 , 'Explotacion de Fosfato' , 14 , 2000-12-21 , 'Mineria' , 12432123 | |
19654 , 'Explotacion de salmon' , 11 , 2000-11-22 , 'Pesca' , 12432123 | |
11266 , 'Recursos Renovables' , 20 , 2002-12-22 , 'Medio Ambiente' , 15987123 | |
20425 , 'Desechos peligrosos' , 20 , 2002-12-22 , 'Medio Ambiente' , 12555446 | |
30900 , 'Residuos Patogénicos' ,34 , 2000-11-01 ,'Medio Ambiente' , 12555446 |