1. Universidad Austral de Chile
Facultad de Cs. Económicas y Administrativas
Escuela de Auditoría
CURSO: Sistemas de Información Administrativa
Profesor Responsable: Cristian Salazar
Ayudante: Claudio Angulo
Tarea N° 2: Consultas SQL
Integrantes:
Soledad Huenumán
Yanibel Villa
Valdivia 4 de mayo de 2011
2. I. Ejecute las siguientes consultas, interprete y describa que resultados entregan:
a) select *
from carreras
ENTREGA TODOS LOS REGISTROS CONTENIDOS EN LA TABLA CARRERAS
b) select count(*)
from carreras
ENTREGA CUANTOS REGISTROS SE ENCUENTRAN EN LA TABLA CARRERAS
c) select *
from carreras
where id_carrera >3
ENTREGA LOS D_CARRERA, NOMBRE, E ID_CAMPUS DE LA TABLA CARRERA
CON ID_CARRERAS MAYORES A 3
d) select *
from carreras
where id_carrera <>3
ENTREGA EL ID_CARRERA, NOMBRE E ID_CAMPUS DE LA TABLA CARRERA
CON ID_CARRERA DISTINTO A 3
e) select c.nombre
from carreras c
where c.nombre Like '%ia%'
ENTREGA EL NOMBRE DE TODAS LAS CARRERAS DESDE LA TABLA
LLAMADA CARRERA, QUE EN SU NOMBRE CONTENGAN LA SILABA “IA”