SlideShare a Scribd company logo
1 of 3
Download to read offline
NORMALIZACIÓN DE BASES DE DATOS
CASOS PRÁCTICOS CON SOLUCIÓN
EJERCICIO1: PRÉSTAMO LIBROS
Dada la siguiente relación PRÉSTAMO_LIBROS (Colegio, ProfesorInfantil,
Asignatura_Habilidades, Aula, Curso, Libro, Editorial, Fecha_Préstamo) que contiene
información relativa a los préstamos que realizan las editoriales a los profesores de primaria de
los colegios para su evaluación en alguna de las asignaturas/habilidades que imparten. Se pide:
Colegio Profesor
Infantil
Asignatura
/Habilidades
Aula Curso Libro Editorial Fecha
Préstamo
C.P. Cervantes Juan Pérez Pensamiento
Lógico
1.A01 1º Aprender y Enseñar
en Educación Infantil
Graó 09/09/2006
C.P. Cervantes Juan Pérez Escritura 1.A01 1º Preescolar Rubio, N6 Técnicas
Rubio
05/05/2005
C.P. Cervantes Juan Pérez Pensamiento
Numérico
1.A01 1º Aprender y Enseñar
en Educación Infantil
Graó 05/05/2005
C.P. Cervantes Alicia
García
Pensamiento
Espacial,
Temporal y
Causal
1.B01 1º Educación Infantil N9 Prentice
Hall
06/05/2005
C.P. Cervantes Alicia
García
Pensamiento
Numérico
1.B01 1º Aprender y Enseñar
en Educación Infantil
Graó 06/05/2005
C.P. Cervantes Andrés
Fernández
Escritura 1.A01 2º Aprender y enseñar en
Educación Infantil
Graó 09/09/2006
C.P. Cervantes Andrés
Fernández
Inglés 1.A01 2º Saber Educar: Guía
para Padres y
Profesores
Temas de
Hoy
05/05/2005
C.P. Quevedo Juan
Méndez
Pensamiento
Lógico
2.B01 1º Saber Educar: Guía
para Padres y
Profesores
Temas de
Hoy
18/12/2006
C.P. Quevedo Juan
Méndez
Pensamiento
Numérico
2.B01 1º Aprender y Enseñar
en Educación Infantil
Graó 06/05/2005
Se pide responder a los siguientes apartados, considerando las tuplas relación
PRÉSTAMO_LIBRO mostradas en la tabla anterior, que a un profesor no se le puede prestar
más de un libro de la misma editorial en el mismo día y que a un profesor no se le puede prestar
más de una vez un mismo libro:
a) Indicar un ejemplo de anomalía de modificación
PARA MODIFICAR UN PROFESOR HAY QUE MODIFICAR TANTAS TUPLAS
COMO LIBROS LE HAYAN PRESTADO EN CADA ASIGNATURA.
b) Indicar las dependencias funcionales utilizando las siguientes abreviaturas: Colegio (C),
ProfesorInfantil (P), Asignatura_Habilidades (H), Aula (A), Curso (Cu), Libro (L),
Editorial (E) y Fecha_Préstamo (F)
SOLUCIÓN:
• P à C
• P à A
• A à Cu y transitivamente P à Cu
• L à E
• H à Cu
• P, F, E à L
• L, P, H à F
TAMBIÉN SE HA TOMADO COMO BUENA:
• A à C
IMPOSIBLES (por ejemplo):
• P -/-> H
• Cu -/-> P
• A -/-> P
• C, Cu -/-> A
• C, A -/-> Cu
• C, H, Cu -/-> A
• C, H, A -/-> Cu
• E -/-> L
• L -/-> F
• E -/-> F
• E, P -/-> F
c) ¿Cuáles son sus claves? ¿Cuáles son los atributos principales? ¿Y los atributos no
principales?
Claves: {PHFE} y {PHL}
AP: {PHFEL}
ANP: {ACCu}
d) ¿En qué forma normal se encuentra la relación? Explicar por qué.
La relación está en 1FN porque en la tabla no existen grupos repetitivos y no está en
2FN, porque existen atributos no principales que dependen de forma no-total de las
claves (por ejemplo: PàC).
EJERCICIO2: GASTOS DE EMPLEADOS
Dada la relación GASTOS_EMPLEADO(Cod_empleado, Cod_viaje, Destino, Gasto_total) en
la que se cumplen las siguientes dependencias funcionales:
Cod_empleado à Gasto_total
Cod_viaje à Destino
Se pide:
I. ¿En qué Forma Normal se encuentra la relación?¿Por qué?
• Clave: [Cod_empleado, Cod_viaje]
• ANP: [Gasto_total, Destino]
• 1FN porque se trata de una relación y no está en 2FN (los ANP no dependen
totalmente de la clave àp.e. Gasto_total depende de Cod_empleado -parte de la
clave-)
II. En caso de que la relación no esté en FNBC, ¿cuáles son los problemas que tiene la
relación GASTOS_EMPLEADO?
• Redundancias y anomalías de actualización (borrado, inserción, modificación). P.e.
à Siempre que se tenga el mismo empleado, el gasto_total será el mismo.

More Related Content

Recently uploaded

ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...JAVIER SOLIS NOYOLA
 
Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...Lourdes Feria
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADauxsoporte
 
Cuaderno de trabajo Matemática 3 tercer grado.pdf
Cuaderno de trabajo Matemática 3 tercer grado.pdfCuaderno de trabajo Matemática 3 tercer grado.pdf
Cuaderno de trabajo Matemática 3 tercer grado.pdfNancyLoaa
 
LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...
LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...
LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...JAVIER SOLIS NOYOLA
 
Qué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativaQué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativaDecaunlz
 
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VSOCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VSYadi Campos
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónLourdes Feria
 
Curso = Metodos Tecnicas y Modelos de Enseñanza.pdf
Curso = Metodos Tecnicas y Modelos de Enseñanza.pdfCurso = Metodos Tecnicas y Modelos de Enseñanza.pdf
Curso = Metodos Tecnicas y Modelos de Enseñanza.pdfFrancisco158360
 
Dinámica florecillas a María en el mes d
Dinámica florecillas a María en el mes dDinámica florecillas a María en el mes d
Dinámica florecillas a María en el mes dstEphaniiie
 
Programacion Anual Matemática5 MPG 2024 Ccesa007.pdf
Programacion Anual Matemática5    MPG 2024  Ccesa007.pdfProgramacion Anual Matemática5    MPG 2024  Ccesa007.pdf
Programacion Anual Matemática5 MPG 2024 Ccesa007.pdfDemetrio Ccesa Rayme
 
ACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJO
ACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJOACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJO
ACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJOBRIGIDATELLOLEONARDO
 
INSTRUCCION PREPARATORIA DE TIRO .pptx
INSTRUCCION PREPARATORIA DE TIRO   .pptxINSTRUCCION PREPARATORIA DE TIRO   .pptx
INSTRUCCION PREPARATORIA DE TIRO .pptxdeimerhdz21
 
LA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptxLA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptxlclcarmen
 

Recently uploaded (20)

ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
 
Tema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdf
Tema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdfTema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdf
Tema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdf
 
Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...Caja de herramientas de inteligencia artificial para la academia y la investi...
Caja de herramientas de inteligencia artificial para la academia y la investi...
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDAD
 
Cuaderno de trabajo Matemática 3 tercer grado.pdf
Cuaderno de trabajo Matemática 3 tercer grado.pdfCuaderno de trabajo Matemática 3 tercer grado.pdf
Cuaderno de trabajo Matemática 3 tercer grado.pdf
 
LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...
LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...
LABERINTOS DE DISCIPLINAS DEL PENTATLÓN OLÍMPICO MODERNO. Por JAVIER SOLIS NO...
 
Qué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativaQué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativa
 
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VSOCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
OCTAVO SEGUNDO PERIODO. EMPRENDIEMIENTO VS
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcción
 
Curso = Metodos Tecnicas y Modelos de Enseñanza.pdf
Curso = Metodos Tecnicas y Modelos de Enseñanza.pdfCurso = Metodos Tecnicas y Modelos de Enseñanza.pdf
Curso = Metodos Tecnicas y Modelos de Enseñanza.pdf
 
Medición del Movimiento Online 2024.pptx
Medición del Movimiento Online 2024.pptxMedición del Movimiento Online 2024.pptx
Medición del Movimiento Online 2024.pptx
 
Presentacion Metodología de Enseñanza Multigrado
Presentacion Metodología de Enseñanza MultigradoPresentacion Metodología de Enseñanza Multigrado
Presentacion Metodología de Enseñanza Multigrado
 
Sesión de clase: Fe contra todo pronóstico
Sesión de clase: Fe contra todo pronósticoSesión de clase: Fe contra todo pronóstico
Sesión de clase: Fe contra todo pronóstico
 
Fe contra todo pronóstico. La fe es confianza.
Fe contra todo pronóstico. La fe es confianza.Fe contra todo pronóstico. La fe es confianza.
Fe contra todo pronóstico. La fe es confianza.
 
Unidad 3 | Metodología de la Investigación
Unidad 3 | Metodología de la InvestigaciónUnidad 3 | Metodología de la Investigación
Unidad 3 | Metodología de la Investigación
 
Dinámica florecillas a María en el mes d
Dinámica florecillas a María en el mes dDinámica florecillas a María en el mes d
Dinámica florecillas a María en el mes d
 
Programacion Anual Matemática5 MPG 2024 Ccesa007.pdf
Programacion Anual Matemática5    MPG 2024  Ccesa007.pdfProgramacion Anual Matemática5    MPG 2024  Ccesa007.pdf
Programacion Anual Matemática5 MPG 2024 Ccesa007.pdf
 
ACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJO
ACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJOACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJO
ACTIVIDAD DIA DE LA MADRE FICHA DE TRABAJO
 
INSTRUCCION PREPARATORIA DE TIRO .pptx
INSTRUCCION PREPARATORIA DE TIRO   .pptxINSTRUCCION PREPARATORIA DE TIRO   .pptx
INSTRUCCION PREPARATORIA DE TIRO .pptx
 
LA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptxLA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptx
 

Featured

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
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Normalización

  • 1. NORMALIZACIÓN DE BASES DE DATOS CASOS PRÁCTICOS CON SOLUCIÓN EJERCICIO1: PRÉSTAMO LIBROS Dada la siguiente relación PRÉSTAMO_LIBROS (Colegio, ProfesorInfantil, Asignatura_Habilidades, Aula, Curso, Libro, Editorial, Fecha_Préstamo) que contiene información relativa a los préstamos que realizan las editoriales a los profesores de primaria de los colegios para su evaluación en alguna de las asignaturas/habilidades que imparten. Se pide: Colegio Profesor Infantil Asignatura /Habilidades Aula Curso Libro Editorial Fecha Préstamo C.P. Cervantes Juan Pérez Pensamiento Lógico 1.A01 1º Aprender y Enseñar en Educación Infantil Graó 09/09/2006 C.P. Cervantes Juan Pérez Escritura 1.A01 1º Preescolar Rubio, N6 Técnicas Rubio 05/05/2005 C.P. Cervantes Juan Pérez Pensamiento Numérico 1.A01 1º Aprender y Enseñar en Educación Infantil Graó 05/05/2005 C.P. Cervantes Alicia García Pensamiento Espacial, Temporal y Causal 1.B01 1º Educación Infantil N9 Prentice Hall 06/05/2005 C.P. Cervantes Alicia García Pensamiento Numérico 1.B01 1º Aprender y Enseñar en Educación Infantil Graó 06/05/2005 C.P. Cervantes Andrés Fernández Escritura 1.A01 2º Aprender y enseñar en Educación Infantil Graó 09/09/2006 C.P. Cervantes Andrés Fernández Inglés 1.A01 2º Saber Educar: Guía para Padres y Profesores Temas de Hoy 05/05/2005 C.P. Quevedo Juan Méndez Pensamiento Lógico 2.B01 1º Saber Educar: Guía para Padres y Profesores Temas de Hoy 18/12/2006 C.P. Quevedo Juan Méndez Pensamiento Numérico 2.B01 1º Aprender y Enseñar en Educación Infantil Graó 06/05/2005 Se pide responder a los siguientes apartados, considerando las tuplas relación PRÉSTAMO_LIBRO mostradas en la tabla anterior, que a un profesor no se le puede prestar más de un libro de la misma editorial en el mismo día y que a un profesor no se le puede prestar más de una vez un mismo libro: a) Indicar un ejemplo de anomalía de modificación PARA MODIFICAR UN PROFESOR HAY QUE MODIFICAR TANTAS TUPLAS COMO LIBROS LE HAYAN PRESTADO EN CADA ASIGNATURA. b) Indicar las dependencias funcionales utilizando las siguientes abreviaturas: Colegio (C), ProfesorInfantil (P), Asignatura_Habilidades (H), Aula (A), Curso (Cu), Libro (L), Editorial (E) y Fecha_Préstamo (F) SOLUCIÓN: • P à C • P à A • A à Cu y transitivamente P à Cu • L à E • H à Cu • P, F, E à L
  • 2. • L, P, H à F TAMBIÉN SE HA TOMADO COMO BUENA: • A à C IMPOSIBLES (por ejemplo): • P -/-> H • Cu -/-> P • A -/-> P • C, Cu -/-> A • C, A -/-> Cu • C, H, Cu -/-> A • C, H, A -/-> Cu • E -/-> L • L -/-> F • E -/-> F • E, P -/-> F c) ¿Cuáles son sus claves? ¿Cuáles son los atributos principales? ¿Y los atributos no principales? Claves: {PHFE} y {PHL} AP: {PHFEL} ANP: {ACCu} d) ¿En qué forma normal se encuentra la relación? Explicar por qué. La relación está en 1FN porque en la tabla no existen grupos repetitivos y no está en 2FN, porque existen atributos no principales que dependen de forma no-total de las claves (por ejemplo: PàC).
  • 3. EJERCICIO2: GASTOS DE EMPLEADOS Dada la relación GASTOS_EMPLEADO(Cod_empleado, Cod_viaje, Destino, Gasto_total) en la que se cumplen las siguientes dependencias funcionales: Cod_empleado à Gasto_total Cod_viaje à Destino Se pide: I. ¿En qué Forma Normal se encuentra la relación?¿Por qué? • Clave: [Cod_empleado, Cod_viaje] • ANP: [Gasto_total, Destino] • 1FN porque se trata de una relación y no está en 2FN (los ANP no dependen totalmente de la clave àp.e. Gasto_total depende de Cod_empleado -parte de la clave-) II. En caso de que la relación no esté en FNBC, ¿cuáles son los problemas que tiene la relación GASTOS_EMPLEADO? • Redundancias y anomalías de actualización (borrado, inserción, modificación). P.e. à Siempre que se tenga el mismo empleado, el gasto_total será el mismo.