Grupo N°4 - Pullas Cintia y Toapanta Erika
-
Upload
patricia-gallardo -
Category
Education
-
view
86 -
download
3
Transcript of Grupo N°4 - Pullas Cintia y Toapanta Erika
CONSULTAS DE UNIÓN EXTERNA
(SQL)
GRUPO: 4
INTEGRANTES :
• ERIKA TOAPANTA
• CINTIA PULLAS
¿QUE ES SQL?
El lenguaje de consulta estructurado (SQL) Es un lenguaje declarativo de acceso a base de
datos relacionales que permite especificar diversos tipos de operaciones en ellas. Una de sus características es el manejo del algebra y el calculo relacional que permiten efectuar consultas con el fin de recuperar, de forma sencilla, información de bases de datos, así como hacer cambios en ellas.
COMPONENTES
El lenguaje SQL está compuesto por comandos, cláusulas, operadores y funciones de agregado. Estos elementos se combinan en las instrucciones para crear, actualizar y manipular las bases de datos.
¿QUE ES?
PERMITE EXTRAER INFORMACIÓN, A LA CUAL HAY COMO MODIFICARLA, PARA DESPUÉS GUARDARLA, CREANDO UNA TABLA Y REALIZANDO UN FORMULARIO
¿QUE NOS PERMITE REALIZAR LAS CONSULTAS?
ORDENAR Y REPRESENTAR DE DISTINTOS MODOS LOS REGISTROS SELECCIONADOS
CALCULAR NUEVOS VALORES PARA CADA UNO DE LOS REGISTROS, A PARTIR DE DATOS ALMACENADOS EN UNA TABLA
VISUALIZAR LOS REGISTROS QUE CUMPLEN UNA DETERMINADA CONDICIÓN
VISUALIZAR ALA VEZ DATOS DE DISTINTAS TABLAS VER DETERMINADOS CAMPOS DE LOS REGISTROS
QUE CUMPLEN LA CONDICIÓN ESTABLECIDA
¿QUE NOS PERMITEN REALIZAR LAS CONSULTAS?
EJECUTAR ¿QUE ES?
REALIZA LAS ACCIONES ESPECIFICADAS EN UNA CONSULTA
SE UTILIZA LA OPERACIÓN UNION PARA CREAR UNA CONSULTA DE
UNIÓN, COMBINANDO LOS RESULTADOS DE DOS O MÁS
CONSULTAS O TABLAS INDEPENDIENTES.
CONSULTA DE UNIÓN EXTERNA
SU SINTAXIS ES:
[TABLE] consulta1 UNION [ALL] [TABLE] consulta2 [UNION [ALL] [TABLE] consulta n [ ... ]]
consulta 1,consulta 2, consulta n
SON INSTRUCCIONES SELECT, EL NOMBRE DE UNA CONSULTA ALMACENADA O EL NOMBRE DE UNA TABLA ALMACENADA PRECEDIDO POR LA PALABRA CLAVE
TABLA