SlideShare uma empresa Scribd logo
1 de 8
05 DeMarzo Del 2015
Bases DeDatos
Profesor:JohnJairo LondoñoPérez
Memoria #1
Se realiza un ejercicioen el cual se dice que se van a controlar órdenes de vuelo de unos
aviones.
DFE
1
R M
Placa PK.
Capacidad. Num_Orden PK
Id_Aerolinea FKD. Fecha
Modelo. Id_Piloto FKD
Id_DestinoFKD
Resolvemos el problema mediante el Modelo Por DependenciasFuncionales.
*Tabla 1 (Avión)
Placa, Capacidad, Id_Aerolinea, Modelo
PK FKD
*Tabla 2 (Ordenes de vuelo)
Num_Orden,Fecha, Id_Piloto, Id_Destino,Placa
PK FKD FKD FKP
Ordenes De Vuelo
Avión
Esta FKPes heredadadel componente
Avión, LaPK del componente Avión
pasa a ser unaFKP del componente
ÓrdenesDe Vuelo.
*Tabla 3 (Id_Aerolinea)
Id_Aerolinea,Nombre Aerolínea
PKE
*Tabla 4 (Id_Piloto)
Id_Piloto, Nombre_Piloto
PKE
*Tabla 5 (Destino)
Destino,Nombre_Destino
PKE
TECNICA PARA CONSTRUIREL DIAGRAMA DEL MODELO RELACIONAL.
1) Empiece a construir el diagrama de izquierda a derechaa partir de la tabla que resuelve
el diseño y es esta la que tiene que ver con el último componente de la cadena,para el
ejemplo: OrdenesDe Vuelo.
2) Ubique a la derecha de la tabla anterior, las tablas que tienen las Primary key.
3) Siga construyendo el diseño a la derecha teniendo encuenta instalar las tablas que
tienen la PK de las FKD.
PKE:Primary KeyEmergente,el
resultado de ser una Primary key de
una Foreign KeyPor DefectoDe Un
Componente Previo.
Despuésde solucionar la cadenalógica del negocio por medio del modelo de dependencias
funcionales, se dispone a ser resuelto mediante el Modelo Relacional.
Cuando se dice de izquierda a derecha se hace referencia a la cadena lógica del negocio.
MODELO RELACIONAL
Num_Orden PK
Fecha
Id_Piloto FKD
Id_Destino FKD
Placa FKP
Tabla 2: Ordenes De
Vuelo
Id_Piloto PK
Nombre_Piloto
Tabla 4: Id-Piloto
Id_Destino PK
Nombre_Destino
Tabla 5: Destino
Placa PK
Capacidad
Id_Aerolinea FKD
Modelo
Tabla 1: Avión
Id_Aerolinea PK
Nombre_Aerolinea
Tabla 3: Id-Aerolinea
12 De Marzo Del 2015
Bases DeDatos
Profesor:JohnJairo LondoñoPérez
Memoria #2
DFE
1
R M
Cedula PK.
Nombre. Id_Amonestacion PK
Dirección. Valor_A_Descontar
Ocupación FKD. Fecha
Tipo_Amonestación FKD
*Tabla 1 (Empleado)
Cedula, Nombre, Dirección, Ocupación
PK FKD
*Tabla 2 (Amonestaciones)
Id_Amonestacion,Valor_A_Descontar, Fecha, Tipo_Amonestación, Cedula
PK FKD FKP
*Tabla 3 (Ocupación)
Id_Ocupacion,Nombre Ocupación
PKE
*Tabla 4 (Tipo_Amonestación)
Empleado
Amonestaciones
CADENA LOGICA DEL
NEGOCIO
MODELO DEPENDENCIA
FUNCIONAL
Id_Tipo_Amonestacion,Nombre Amonestación
PKE
MODELO RELACIONAL
EjercicioDe Aplicación.
Construya la cadenalógica del negocio
Construya el diseño por el modelo de dependenciafuncional
Construya el diseño por el modelo relacional
Que tiene que ver con el siguiente sistema:
*Controlar las órdenes de proyecciónde las películas.
Lo anterior quiere decir que una película tiene muchas ordenes de proyección
-Atributos película (Id_Pelicula (PK), Nombre De La Pelicula, Tipo De Pelicula (FKD),Fecha De
Compra).
-Atributos Órdenes De Proyección (Id_Proyeccion (PK), Fecha De Proyección,Hora De
proyección,Sala Donde Se Proyecta (FKD)).
Id_Amonestacion PK
Fecha
Valor_A_Descontar
Tipo_Amonestación FKD
Cedula FKP
Tabla 2: Amonestaciones
Id_Tipo_Amonestacion PK
Nombre Amonestación
Tabla 4:
Tipo_Amonestación
Cedula PK
Nombre
Direccion
Ocupación FKD
Tabla 1: Empleado
Id_Ocupacion PK
Nombre_Ocupación
Tabla 3: Ocupación
MODELO RELACIONAL
1 DFE
R M
Id_Pelicula PK.
Nombre_De_La_Pelicula Id_ProyeccionPK
Tipo_De_PeliculaFKD. Fecha_De_Proyeccion
Fecha_De_Compra. Hora_De_Proyeccion
Sala_De_ProyeccionFKD
Tabla 1 (Películas)
Id_Pelicula, Nombre_De_La_Pelicula,Tipo_De_Pelicula,Fecha_De_Compra
PK FKD
*Tabla 2 (Ordenes De Proyección)
Id_Proyeccion, Fecha_De_Proyeccion,Hora_De_Proyeccion,Sala_Proyeccion,Id_Pelicula
PK FKD FKP
*Tabla 3 (Tipo_De_Pelicula)
Ordenes de
proyección
Películas
CADENA LOGICA DEL
NEGOCIO
MODELO DEPENDENCIA
FUNCIONAL
Id_Tipo_Pelicula,Genero_Pelicula
PKE
*Tabla 4 (Sala_Proyeccion)
Id_Sala,Nombre Sala
PKE
Id_Sala PK
Nombre_Sala
Tabla 4:
Sala_Proyeccion
Tabla 1: Peliculas
MODELO RELACIONAL
Tabla 2: Amonestaciones
Id_Proyeccion PK
Fecha
Hora
Sala_Proyeccion FKD
Id_Pelicula FKP
Id_Pelicula PK
Nombre
Tipo FKD
Fecha
Id Tipo PK
Género
Tabla 3:
Tipo_De_Pelicula
19 DeMarzo Del 2015
Bases DeDatos
Profesor:JohnJairo LondoñoPérez
Memoria #3
Recuerde queel diagrama relacional independiente de que se trate de una DFEo de una
dependenciafuncional no exclusiva(No Visto aun) siempre se construirá de izquierda a
derechateniendo en cuentaque esta primera tabla de la izquierda es la que resuelve el diseño y
es exactamente la que tiene quever con el ultimo componente de la cadena.
Despuésde sucedido lo anterior las relaciones se asignaran de derechaa izquierda, el diagrama
se leerá de derechaa izquierda y las tablas serán llevadas al motor de derechaa izquierda.
Si se cumple con todo lo mencionado, el motor nunca generara error, salvo aquello que sea por
sintaxis.
LENGUAJEPARA DEFINICION DEDATOS (DDL).
Cuando se quiere llevar el diseño de la base de datos al motor (MYSQL,SQL Server,Oracle,
PostGres, etc.),se debe recurrir a lenguaje para definición de datos que utiliza esencialmente la
sentencia SQL llamada: Create Table. Como se ha venido diciendo con anterioridad las tablas del
diseño de la base de datos deberán ser llevadas de derechaa izquierda.

Mais conteúdo relacionado

Último

PLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docx
PLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docxPLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docx
PLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docxJUANSIMONPACHIN
 
Uses of simple past and time expressions
Uses of simple past and time expressionsUses of simple past and time expressions
Uses of simple past and time expressionsConsueloSantana3
 
Tarea 5-Selección de herramientas digitales-Carol Eraso.pdf
Tarea 5-Selección de herramientas digitales-Carol Eraso.pdfTarea 5-Selección de herramientas digitales-Carol Eraso.pdf
Tarea 5-Selección de herramientas digitales-Carol Eraso.pdfCarol Andrea Eraso Guerrero
 
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARONARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFAROJosé Luis Palma
 
Plan Año Escolar Año Escolar 2023-2024. MPPE
Plan Año Escolar Año Escolar 2023-2024. MPPEPlan Año Escolar Año Escolar 2023-2024. MPPE
Plan Año Escolar Año Escolar 2023-2024. MPPELaura Chacón
 
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)veganet
 
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).pptPINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).pptAlberto Rubio
 
Fundamentos y Principios de Psicopedagogía..pdf
Fundamentos y Principios de Psicopedagogía..pdfFundamentos y Principios de Psicopedagogía..pdf
Fundamentos y Principios de Psicopedagogía..pdfsamyarrocha1
 
VOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMAL
VOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMALVOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMAL
VOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMALEDUCCUniversidadCatl
 
La evolucion de la especie humana-primero de secundaria
La evolucion de la especie humana-primero de secundariaLa evolucion de la especie humana-primero de secundaria
La evolucion de la especie humana-primero de secundariamarco carlos cuyo
 
Día de la Madre Tierra-1.pdf día mundial
Día de la Madre Tierra-1.pdf día mundialDía de la Madre Tierra-1.pdf día mundial
Día de la Madre Tierra-1.pdf día mundialpatriciaines1993
 
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024gharce
 
TRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIA
TRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIATRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIA
TRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIAAbelardoVelaAlbrecht1
 
ÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdf
ÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdfÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdf
ÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdfluisantoniocruzcorte1
 
5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdf
5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdf5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdf
5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdfOswaldoGonzalezCruz
 
PPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdfPPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdfEDILIAGAMBOA
 

Último (20)

PLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docx
PLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docxPLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docx
PLANIFICACION ANUAL 2024 - INICIAL UNIDOCENTE.docx
 
Uses of simple past and time expressions
Uses of simple past and time expressionsUses of simple past and time expressions
Uses of simple past and time expressions
 
Tarea 5-Selección de herramientas digitales-Carol Eraso.pdf
Tarea 5-Selección de herramientas digitales-Carol Eraso.pdfTarea 5-Selección de herramientas digitales-Carol Eraso.pdf
Tarea 5-Selección de herramientas digitales-Carol Eraso.pdf
 
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARONARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
 
Plan Año Escolar Año Escolar 2023-2024. MPPE
Plan Año Escolar Año Escolar 2023-2024. MPPEPlan Año Escolar Año Escolar 2023-2024. MPPE
Plan Año Escolar Año Escolar 2023-2024. MPPE
 
Tema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdf
Tema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdfTema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdf
Tema 7.- E-COMMERCE SISTEMAS DE INFORMACION.pdf
 
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
Instrucciones para la aplicacion de la PAA-2024b - (Mayo 2024)
 
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).pptPINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
PINTURA ITALIANA DEL CINQUECENTO (SIGLO XVI).ppt
 
PPTX: La luz brilla en la oscuridad.pptx
PPTX: La luz brilla en la oscuridad.pptxPPTX: La luz brilla en la oscuridad.pptx
PPTX: La luz brilla en la oscuridad.pptx
 
Fundamentos y Principios de Psicopedagogía..pdf
Fundamentos y Principios de Psicopedagogía..pdfFundamentos y Principios de Psicopedagogía..pdf
Fundamentos y Principios de Psicopedagogía..pdf
 
VOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMAL
VOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMALVOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMAL
VOLUMEN 1 COLECCION PRODUCCION BOVINA . SERIE SANIDAD ANIMAL
 
La evolucion de la especie humana-primero de secundaria
La evolucion de la especie humana-primero de secundariaLa evolucion de la especie humana-primero de secundaria
La evolucion de la especie humana-primero de secundaria
 
Día de la Madre Tierra-1.pdf día mundial
Día de la Madre Tierra-1.pdf día mundialDía de la Madre Tierra-1.pdf día mundial
Día de la Madre Tierra-1.pdf día mundial
 
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
SISTEMA INMUNE FISIOLOGIA MEDICA UNSL 2024
 
TRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIA
TRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIATRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIA
TRIPTICO-SISTEMA-MUSCULAR. PARA NIÑOS DE PRIMARIA
 
ÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdf
ÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdfÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdf
ÉTICA, NATURALEZA Y SOCIEDADES_3RO_3ER TRIMESTRE.pdf
 
Sesión La luz brilla en la oscuridad.pdf
Sesión  La luz brilla en la oscuridad.pdfSesión  La luz brilla en la oscuridad.pdf
Sesión La luz brilla en la oscuridad.pdf
 
5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdf
5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdf5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdf
5° SEM29 CRONOGRAMA PLANEACIÓN DOCENTE DARUKEL 23-24.pdf
 
PPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdfPPT_Formación integral y educación CRESE (1).pdf
PPT_Formación integral y educación CRESE (1).pdf
 
Unidad 3 | Teorías de la Comunicación | MCDI
Unidad 3 | Teorías de la Comunicación | MCDIUnidad 3 | Teorías de la Comunicación | MCDI
Unidad 3 | Teorías de la Comunicación | MCDI
 

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Corte

  • 1. 05 DeMarzo Del 2015 Bases DeDatos Profesor:JohnJairo LondoñoPérez Memoria #1 Se realiza un ejercicioen el cual se dice que se van a controlar órdenes de vuelo de unos aviones. DFE 1 R M Placa PK. Capacidad. Num_Orden PK Id_Aerolinea FKD. Fecha Modelo. Id_Piloto FKD Id_DestinoFKD Resolvemos el problema mediante el Modelo Por DependenciasFuncionales. *Tabla 1 (Avión) Placa, Capacidad, Id_Aerolinea, Modelo PK FKD *Tabla 2 (Ordenes de vuelo) Num_Orden,Fecha, Id_Piloto, Id_Destino,Placa PK FKD FKD FKP Ordenes De Vuelo Avión Esta FKPes heredadadel componente Avión, LaPK del componente Avión pasa a ser unaFKP del componente ÓrdenesDe Vuelo.
  • 2. *Tabla 3 (Id_Aerolinea) Id_Aerolinea,Nombre Aerolínea PKE *Tabla 4 (Id_Piloto) Id_Piloto, Nombre_Piloto PKE *Tabla 5 (Destino) Destino,Nombre_Destino PKE TECNICA PARA CONSTRUIREL DIAGRAMA DEL MODELO RELACIONAL. 1) Empiece a construir el diagrama de izquierda a derechaa partir de la tabla que resuelve el diseño y es esta la que tiene que ver con el último componente de la cadena,para el ejemplo: OrdenesDe Vuelo. 2) Ubique a la derecha de la tabla anterior, las tablas que tienen las Primary key. 3) Siga construyendo el diseño a la derecha teniendo encuenta instalar las tablas que tienen la PK de las FKD. PKE:Primary KeyEmergente,el resultado de ser una Primary key de una Foreign KeyPor DefectoDe Un Componente Previo. Despuésde solucionar la cadenalógica del negocio por medio del modelo de dependencias funcionales, se dispone a ser resuelto mediante el Modelo Relacional. Cuando se dice de izquierda a derecha se hace referencia a la cadena lógica del negocio.
  • 3. MODELO RELACIONAL Num_Orden PK Fecha Id_Piloto FKD Id_Destino FKD Placa FKP Tabla 2: Ordenes De Vuelo Id_Piloto PK Nombre_Piloto Tabla 4: Id-Piloto Id_Destino PK Nombre_Destino Tabla 5: Destino Placa PK Capacidad Id_Aerolinea FKD Modelo Tabla 1: Avión Id_Aerolinea PK Nombre_Aerolinea Tabla 3: Id-Aerolinea
  • 4. 12 De Marzo Del 2015 Bases DeDatos Profesor:JohnJairo LondoñoPérez Memoria #2 DFE 1 R M Cedula PK. Nombre. Id_Amonestacion PK Dirección. Valor_A_Descontar Ocupación FKD. Fecha Tipo_Amonestación FKD *Tabla 1 (Empleado) Cedula, Nombre, Dirección, Ocupación PK FKD *Tabla 2 (Amonestaciones) Id_Amonestacion,Valor_A_Descontar, Fecha, Tipo_Amonestación, Cedula PK FKD FKP *Tabla 3 (Ocupación) Id_Ocupacion,Nombre Ocupación PKE *Tabla 4 (Tipo_Amonestación) Empleado Amonestaciones CADENA LOGICA DEL NEGOCIO MODELO DEPENDENCIA FUNCIONAL
  • 5. Id_Tipo_Amonestacion,Nombre Amonestación PKE MODELO RELACIONAL EjercicioDe Aplicación. Construya la cadenalógica del negocio Construya el diseño por el modelo de dependenciafuncional Construya el diseño por el modelo relacional Que tiene que ver con el siguiente sistema: *Controlar las órdenes de proyecciónde las películas. Lo anterior quiere decir que una película tiene muchas ordenes de proyección -Atributos película (Id_Pelicula (PK), Nombre De La Pelicula, Tipo De Pelicula (FKD),Fecha De Compra). -Atributos Órdenes De Proyección (Id_Proyeccion (PK), Fecha De Proyección,Hora De proyección,Sala Donde Se Proyecta (FKD)). Id_Amonestacion PK Fecha Valor_A_Descontar Tipo_Amonestación FKD Cedula FKP Tabla 2: Amonestaciones Id_Tipo_Amonestacion PK Nombre Amonestación Tabla 4: Tipo_Amonestación Cedula PK Nombre Direccion Ocupación FKD Tabla 1: Empleado Id_Ocupacion PK Nombre_Ocupación Tabla 3: Ocupación MODELO RELACIONAL
  • 6. 1 DFE R M Id_Pelicula PK. Nombre_De_La_Pelicula Id_ProyeccionPK Tipo_De_PeliculaFKD. Fecha_De_Proyeccion Fecha_De_Compra. Hora_De_Proyeccion Sala_De_ProyeccionFKD Tabla 1 (Películas) Id_Pelicula, Nombre_De_La_Pelicula,Tipo_De_Pelicula,Fecha_De_Compra PK FKD *Tabla 2 (Ordenes De Proyección) Id_Proyeccion, Fecha_De_Proyeccion,Hora_De_Proyeccion,Sala_Proyeccion,Id_Pelicula PK FKD FKP *Tabla 3 (Tipo_De_Pelicula) Ordenes de proyección Películas CADENA LOGICA DEL NEGOCIO MODELO DEPENDENCIA FUNCIONAL
  • 7. Id_Tipo_Pelicula,Genero_Pelicula PKE *Tabla 4 (Sala_Proyeccion) Id_Sala,Nombre Sala PKE Id_Sala PK Nombre_Sala Tabla 4: Sala_Proyeccion Tabla 1: Peliculas MODELO RELACIONAL Tabla 2: Amonestaciones Id_Proyeccion PK Fecha Hora Sala_Proyeccion FKD Id_Pelicula FKP Id_Pelicula PK Nombre Tipo FKD Fecha Id Tipo PK Género Tabla 3: Tipo_De_Pelicula
  • 8. 19 DeMarzo Del 2015 Bases DeDatos Profesor:JohnJairo LondoñoPérez Memoria #3 Recuerde queel diagrama relacional independiente de que se trate de una DFEo de una dependenciafuncional no exclusiva(No Visto aun) siempre se construirá de izquierda a derechateniendo en cuentaque esta primera tabla de la izquierda es la que resuelve el diseño y es exactamente la que tiene quever con el ultimo componente de la cadena. Despuésde sucedido lo anterior las relaciones se asignaran de derechaa izquierda, el diagrama se leerá de derechaa izquierda y las tablas serán llevadas al motor de derechaa izquierda. Si se cumple con todo lo mencionado, el motor nunca generara error, salvo aquello que sea por sintaxis. LENGUAJEPARA DEFINICION DEDATOS (DDL). Cuando se quiere llevar el diseño de la base de datos al motor (MYSQL,SQL Server,Oracle, PostGres, etc.),se debe recurrir a lenguaje para definición de datos que utiliza esencialmente la sentencia SQL llamada: Create Table. Como se ha venido diciendo con anterioridad las tablas del diseño de la base de datos deberán ser llevadas de derechaa izquierda.