SlideShare una empresa de Scribd logo
1 de 2
TALLER DE SENTENCIAS SQL TIPO DML
PROFESOR: AMILKAR SIERRA ROMANO


                                          EJERCICIOS




   1. Utilizando sentencias de algebra relacional y sentencia sql , mostrar los alumnos que
       hayan pasado la materia.
   2. Utilizando sentencias de algebra relacional y sentencia sql ,Mostrar todas las niñas que
       sean mayor de edad, pero que vivan en Bucaramanga .
   3. Mostrar el nombre del alumno y el grado para aquellos alumnos que hayan sacado la nota
       mayor que 3 y menores que 4 (que sea para sexo M primero)
   4. Cuales alumnos están en el grado 6, la tabla resultante debe tener el nombre y el apellido.
   5. Utilizando sentencias de algebra relacional y sentencia sql , Crear una segunda tabla llenar
       con datos y aplicar la diferencia, la intersección y la unión.
   6. Mostrar los alumnos que en el contenido del texto de su apellido tenga (au).
   7. Mostrar los alumnos cuya edad oscilen entre los 15 y 25 años que han superado la
       materia(aplica para los alumnos de grado 6)
   8. Quiero ver cuantos alumnos hay por grado.
   9. Cual es el promedio de nota del curso.
   10. Cual es el promedio para el grado undécimo.
   11. Mostrar los alumnos que contengan AN en su nombre.
   12. Cual es el curso cuyo promedio de nota esta por debajo de 3.2
   13. Mostrar los alumnos que viven en Valledupar, Bogotá, Sincelejo y Maicao.
   14. Cuantos alumnos viven en Valledupar.
   15. Mostrar la ciudad de donde vienen los alumnos.
   16. Utilizando sentencias de algebra relacional y sentencia sql , Mostrar los alumnos con
       mayor nota y con menor nota, muestre su grado, nombre y sexo.
   17. Mostrar todos los alumnos por apellido pero que sean de sexo femenino.
   18. Mostrar el nombre y apellido mas joven y el mas viejo.
   19. Cual es la niña mas joven y cual es la mas antigua.
20. Mostrar los compañeros de estudio de Luis cuyo código es 08, no conocemos el grado en
    que se encuentra Luis.
21. Colocar la nota de Andrés a todo el grado 6.

Más contenido relacionado

Destacado

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
ThinkNow
 
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
Kurio // The Social Media Age(ncy)
 

Destacado (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...
 

Ejercicios b.d

  • 1. TALLER DE SENTENCIAS SQL TIPO DML PROFESOR: AMILKAR SIERRA ROMANO EJERCICIOS 1. Utilizando sentencias de algebra relacional y sentencia sql , mostrar los alumnos que hayan pasado la materia. 2. Utilizando sentencias de algebra relacional y sentencia sql ,Mostrar todas las niñas que sean mayor de edad, pero que vivan en Bucaramanga . 3. Mostrar el nombre del alumno y el grado para aquellos alumnos que hayan sacado la nota mayor que 3 y menores que 4 (que sea para sexo M primero) 4. Cuales alumnos están en el grado 6, la tabla resultante debe tener el nombre y el apellido. 5. Utilizando sentencias de algebra relacional y sentencia sql , Crear una segunda tabla llenar con datos y aplicar la diferencia, la intersección y la unión. 6. Mostrar los alumnos que en el contenido del texto de su apellido tenga (au). 7. Mostrar los alumnos cuya edad oscilen entre los 15 y 25 años que han superado la materia(aplica para los alumnos de grado 6) 8. Quiero ver cuantos alumnos hay por grado. 9. Cual es el promedio de nota del curso. 10. Cual es el promedio para el grado undécimo. 11. Mostrar los alumnos que contengan AN en su nombre. 12. Cual es el curso cuyo promedio de nota esta por debajo de 3.2 13. Mostrar los alumnos que viven en Valledupar, Bogotá, Sincelejo y Maicao. 14. Cuantos alumnos viven en Valledupar. 15. Mostrar la ciudad de donde vienen los alumnos. 16. Utilizando sentencias de algebra relacional y sentencia sql , Mostrar los alumnos con mayor nota y con menor nota, muestre su grado, nombre y sexo. 17. Mostrar todos los alumnos por apellido pero que sean de sexo femenino. 18. Mostrar el nombre y apellido mas joven y el mas viejo. 19. Cual es la niña mas joven y cual es la mas antigua.
  • 2. 20. Mostrar los compañeros de estudio de Luis cuyo código es 08, no conocemos el grado en que se encuentra Luis. 21. Colocar la nota de Andrés a todo el grado 6.