SlideShare una empresa de Scribd logo
1 de 3
GUÍA No. 2



CON LA BASE DE DATOS DE DATOS DE CONCESIONARIO REALIZAR LO SIGUIENTE:

   1. Introducir los siguientes datos en la tabla Clientes de la base de datos Concesionario de la carpeta Mis
      ejercicios, llenar los espacios que están blancos.

    Código Nombre Apellidos                                                                        Fecha
                                          Dirección Cliente    Municipio Ciudad         Teléfono
    Cliente Cliente Cliente                                                                        nacimiento
                                                                          Seleccionar
    100     Antonio     García Pérez                                                               15/08/60
                                                                          una sola
    101     Carlos      Pérez Ruiz                                                                 26/04/58
    105     Luis        Rodríguez Más                                                              30/03/61
    112     Jaime       Juangrán Sornes                                                            31/01/68
    225     Alfonso     Prats Montolla                                                             28/04/69
    260     José        Navarro Lard                                                               15/05/64
    289     Elisa       Úbeda Sansón                                                               10/07/62
    352     Eva         San Martín                                                                 12/08/65
    365     Gerardo Hernández Luis                                                                 02/01/65
    390     Carlos      Prats Ruiz                                                                 03/05/67
    810     Lourdes Oliver Peris                                                                   25/06/64
    822     Sergio      Larred Navas                                                               25/12/67
    860     Joaquín     Árboles Onsins                                                             04/05/69
    861     Joaquín     Árboles Onsins                                                             04/05/69



   2. Modificar el nombre de Gerardo Hernández Luis por Alfredo.
   3. Borrar el último registro.
   4. Modificar la estructura de la tabla Clientes de la base de datos Concesionario siguiendo los datos que
      vienen a continuación:

                      Nombre del campo        Propiedades
                                              No se puede introducir clientes cuyo código no
                      Código Cliente
                                              esté comprendido entre los valores 1 y 3000.
                      Nombre Cliente          Tamaño:15
                      Apellidos cliente       Tamaño: 30
                      Dirección cliente       Tamaño: 30
                      Municipio               Tamaño: 15
                      Celular                 Tamaño: 10
                                              Tamaño: 15
                                              Por defecto el valor será: la ciudad que eligió ya
                      Ciudad
                                              que la mayoría de nuestros clientes están en esta
                                              ciudad.
                      Teléfono                Tamaño: 10 con máscara de teléfono
                      Fecha nacimiento        Formato: Fecha corta
5. Modificar la estructura de la tabla Coches vendidos:

                         Nombre del campo          Tipo de dato
                         Matricula                 Tamaño: 7
                         Marca                     Tamaño: 15
                         Modelo                    Tamaño: 20
                         Color                     Tamaño: 12
                         Precio                    Numérico formato Moneda
                         Extras instalados         Dejar las opciones que tiene



               CON LA BASE DE DATOS DE DATOS DE HOSPITAL REALIZAR LO SIGUIENTE:



1. Modificar la estructura de la tabla Pacientes de la base de datos hospital de la carpeta Mis ejercicios
   siguiendo estas indicaciones:

                             Nombre del campo           Tipo de dato
                             Código Paciente            clave principal
                             Provincia                  Borrar este campo
2. Modificar la estructura de la tabla Médicos con los siguientes datos:

                                 Nombre del campo            Tipo de dato
                                 Código Medico               Clave principal
                                 Teléfono Medico             Borrar este campo

3. Modificar la estructura de la tabla Ingresos con los siguientes datos:
                             Nombre del campo         Tipo de dato
                             Nº ingreso               Clave principal

4. Modificar la tabla Pacientes de la base de datos Clínica siguiendo estas indicaciones:



                             Nombre del campo           Tipo de dato
                             Código Paciente            Entero
                             Nombre Paciente            Tamaño: 15
                             Apellidos Paciente         Tamaño: 30
                             Dirección                  Tamaño: 30
                             Ciudad                     Tamaño: 15
                             Celular                    Tamaño: 10
                             Teléfono Paciente          Tamaño: 10
                             Fecha nacimiento           Formato: Fecha corta
5. Modificar la tabla Médicos con los siguientes campos:



                            Nombre del campo             Tipo de dato
                            Código Medico                Tamaño: 5
                            Nombre Medico                Tamaño: 15
                            Apellidos Medico             Tamaño: 30
                            Especialidad                 Tamaño: 20
6. Modificar la tabla Ingresos con los siguientes campos:



                          Nombre del campo      Tipo de dato
                          Habitación            Entero
                          Cama                  Tamaño: 1
                          Fecha ingreso         Formato: Fecha corta


“cualquier duda realizarla en clase”

Más contenido relacionado

Destacado

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
 

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

Guía no 2

  • 1. GUÍA No. 2 CON LA BASE DE DATOS DE DATOS DE CONCESIONARIO REALIZAR LO SIGUIENTE: 1. Introducir los siguientes datos en la tabla Clientes de la base de datos Concesionario de la carpeta Mis ejercicios, llenar los espacios que están blancos. Código Nombre Apellidos Fecha Dirección Cliente Municipio Ciudad Teléfono Cliente Cliente Cliente nacimiento Seleccionar 100 Antonio García Pérez 15/08/60 una sola 101 Carlos Pérez Ruiz 26/04/58 105 Luis Rodríguez Más 30/03/61 112 Jaime Juangrán Sornes 31/01/68 225 Alfonso Prats Montolla 28/04/69 260 José Navarro Lard 15/05/64 289 Elisa Úbeda Sansón 10/07/62 352 Eva San Martín 12/08/65 365 Gerardo Hernández Luis 02/01/65 390 Carlos Prats Ruiz 03/05/67 810 Lourdes Oliver Peris 25/06/64 822 Sergio Larred Navas 25/12/67 860 Joaquín Árboles Onsins 04/05/69 861 Joaquín Árboles Onsins 04/05/69 2. Modificar el nombre de Gerardo Hernández Luis por Alfredo. 3. Borrar el último registro. 4. Modificar la estructura de la tabla Clientes de la base de datos Concesionario siguiendo los datos que vienen a continuación: Nombre del campo Propiedades No se puede introducir clientes cuyo código no Código Cliente esté comprendido entre los valores 1 y 3000. Nombre Cliente Tamaño:15 Apellidos cliente Tamaño: 30 Dirección cliente Tamaño: 30 Municipio Tamaño: 15 Celular Tamaño: 10 Tamaño: 15 Por defecto el valor será: la ciudad que eligió ya Ciudad que la mayoría de nuestros clientes están en esta ciudad. Teléfono Tamaño: 10 con máscara de teléfono Fecha nacimiento Formato: Fecha corta
  • 2. 5. Modificar la estructura de la tabla Coches vendidos: Nombre del campo Tipo de dato Matricula Tamaño: 7 Marca Tamaño: 15 Modelo Tamaño: 20 Color Tamaño: 12 Precio Numérico formato Moneda Extras instalados Dejar las opciones que tiene CON LA BASE DE DATOS DE DATOS DE HOSPITAL REALIZAR LO SIGUIENTE: 1. Modificar la estructura de la tabla Pacientes de la base de datos hospital de la carpeta Mis ejercicios siguiendo estas indicaciones: Nombre del campo Tipo de dato Código Paciente clave principal Provincia Borrar este campo 2. Modificar la estructura de la tabla Médicos con los siguientes datos: Nombre del campo Tipo de dato Código Medico Clave principal Teléfono Medico Borrar este campo 3. Modificar la estructura de la tabla Ingresos con los siguientes datos: Nombre del campo Tipo de dato Nº ingreso Clave principal 4. Modificar la tabla Pacientes de la base de datos Clínica siguiendo estas indicaciones: Nombre del campo Tipo de dato Código Paciente Entero Nombre Paciente Tamaño: 15 Apellidos Paciente Tamaño: 30 Dirección Tamaño: 30 Ciudad Tamaño: 15 Celular Tamaño: 10 Teléfono Paciente Tamaño: 10 Fecha nacimiento Formato: Fecha corta
  • 3. 5. Modificar la tabla Médicos con los siguientes campos: Nombre del campo Tipo de dato Código Medico Tamaño: 5 Nombre Medico Tamaño: 15 Apellidos Medico Tamaño: 30 Especialidad Tamaño: 20 6. Modificar la tabla Ingresos con los siguientes campos: Nombre del campo Tipo de dato Habitación Entero Cama Tamaño: 1 Fecha ingreso Formato: Fecha corta “cualquier duda realizarla en clase”