SlideShare una empresa de Scribd logo
1 de 2
use Libros; create table AUTOR ( IDENTIFICACION int ,
NOMBRE nchar(80), FEC_NACIMIENTO datetime,
NACIONALIDAD nchar(60), constraint PK_AUTOR primary key
(IDENTIFICACION) ); create table LIBRO ( NUMERO int
constraint PK_LIBRO primary key, TITULO nchar(80)
unique, EDITORIAL nchar(60), AREA
nchar(50), PRECIO numeric(8,2) default 0, ); create
table LIBRO_AUTOR ( NUM_LIBRO int not
null, ID_AUTOR int not null,
constraint PK_LIBRO_AUTOR primary key (NUM_LIBRO, ID_AUTOR) ); alter
table LIBRO_AUTOR add constraint FK_LIBRO foreign key (NUM_LIBRO)
references LIBRO (NUMERO); alter table LIBRO_AUTOR add constraint
FK_AUTOR foreign key (ID_AUTOR) references AUTOR (IDENTIFICACION);
-- Insertar datos de Autor insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (123,'Carlos
Fallas','19090121','Costarricense'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (124,'Carmen
Lyra','19490514','Costarricense'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (125,'Paulo
Coelho','19470824','Brasile�o'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (126,'J.R.R
Tolkien','18920103','Britanico'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (127,'J.K
Rolling','19650731','Britanico'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (128,'Gabriel
Garcia Marquez','19270306','Colombiano'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (129,'Herbet
George Wells','18660921','Britanico'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (130,'Alex
Rovira Celma','19690301','Espa�ol'); insert into AUTOR
(identificacion,nombre,fec_nacimiento,nacionalidad) values (131,'Frances
Miralles Contijoch','19680827','Espa�ol'); -- Insertar datos de Libros
insert into LIBRO (numero,titulo,editorial,area,precio) values
(1,'Mamita Yunai', 'Editorial Soley y Valverde','Novela',25000); insert
into LIBRO (numero,titulo,editorial,area,precio) values (2,'Marcos
Ramirez', 'Imprenta Falco','Novela',18000); insert into LIBRO
(numero,titulo,editorial,area,precio) values (3,'El Alquimista',
'Imprenta Falco','Novela',15000); insert into LIBRO
(numero,titulo,editorial,area,precio) values (4,'Cuentos de Mi Tia
Panchita', 'Imprenta Nacional','Cuentos',7800); insert into LIBRO
(numero,titulo,editorial,area,precio) values (5,'El Senor de los
Anillos: Comunidad del Anillo', 'Minotauro','Fantasia',32000); insert
into LIBRO (numero,titulo,editorial,area,precio) values (6,'Harry Potter
y la Piedra Filosofal', 'Boomsbuury','Fantasia',45000); insert into
LIBRO (numero,titulo,editorial,area,precio) values (7,'Harry Potter y la
Camara Secreta', 'Boomsbuury','Fantasia',42000); insert into LIBRO
(numero,titulo,editorial,area,precio) values (8,'La Guerra de los
Mundos', 'Heinermann','Ficcion',12000); insert into LIBRO
(numero,titulo,editorial,area,precio) values (9,'Cronica de una muerte
anunciada', 'La Oveja Negra','Novela',23000); insert into LIBRO
(numero,titulo,editorial,area,precio) values (10,'La Ultima Respuesta',
'Plaza y Janes','Novela',6500); insert into LIBRO_AUTOR
(num_libro,id_autor) values (1,123); insert into LIBRO_AUTOR
(num_libro,id_autor) values (2,123); insert into LIBRO_AUTOR
(num_libro,id_autor) values (3,125); insert into LIBRO_AUTOR
(num_libro,id_autor) values (4,124); insert into LIBRO_AUTOR
(num_libro,id_autor) values (5,126); insert into LIBRO_AUTOR
(num_libro,id_autor) values (6,127); insert into LIBRO_AUTOR
(num_libro,id_autor) values (7,127); insert into LIBRO_AUTOR
(num_libro,id_autor) values (8,129); insert into LIBRO_AUTOR
(num_libro,id_autor) values (9,128); insert into LIBRO_AUTOR
(num_libro,id_autor) values (10,130); insert into LIBRO_AUTOR
(num_libro,id_autor) values (10,131);

Más contenido relacionado

Último

PLAN ANUAL DE TUTORIA PARA SEGUNDO AÑO DE SECUNDARIA
PLAN ANUAL DE TUTORIA PARA  SEGUNDO AÑO DE SECUNDARIAPLAN ANUAL DE TUTORIA PARA  SEGUNDO AÑO DE SECUNDARIA
PLAN ANUAL DE TUTORIA PARA SEGUNDO AÑO DE SECUNDARIAzullycelestinoparede
 
ACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLA
ACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLAACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLA
ACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLAJAVIER SOLIS NOYOLA
 
Programa dia de las madres para la convi
Programa dia de las madres para la conviPrograma dia de las madres para la convi
Programa dia de las madres para la convikevinmolina060703
 
MINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docx
MINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docxMINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docx
MINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docxLorenaHualpachoque
 
sesion de aprendizaje 1 SEC. 13- 17 MAYO 2024 comunicación.pdf
sesion de aprendizaje 1 SEC. 13- 17  MAYO  2024 comunicación.pdfsesion de aprendizaje 1 SEC. 13- 17  MAYO  2024 comunicación.pdf
sesion de aprendizaje 1 SEC. 13- 17 MAYO 2024 comunicación.pdfmaria luisa pahuara allcca
 
Lineamientos de la Escuela de la Confianza SJA Ccesa.pptx
Lineamientos de la Escuela de la Confianza  SJA  Ccesa.pptxLineamientos de la Escuela de la Confianza  SJA  Ccesa.pptx
Lineamientos de la Escuela de la Confianza SJA Ccesa.pptxDemetrio Ccesa Rayme
 
Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...
Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...
Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...Pere Miquel Rosselló Espases
 
HISTORIA DE ARQUITECTURA PERUANA HORIZONTE
HISTORIA DE ARQUITECTURA PERUANA HORIZONTEHISTORIA DE ARQUITECTURA PERUANA HORIZONTE
HISTORIA DE ARQUITECTURA PERUANA HORIZONTEalidkbeast
 
AEC 2. Aventura en el Antiguo Egipto.pptx
AEC 2. Aventura en el Antiguo Egipto.pptxAEC 2. Aventura en el Antiguo Egipto.pptx
AEC 2. Aventura en el Antiguo Egipto.pptxhenarfdez
 
Ediciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D Ccesa007.pdf
Ediciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D  Ccesa007.pdfEdiciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D  Ccesa007.pdf
Ediciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D Ccesa007.pdfDemetrio Ccesa Rayme
 
Las Preguntas Educativas entran a las Aulas CIAESA Ccesa007.pdf
Las Preguntas Educativas entran a las Aulas CIAESA  Ccesa007.pdfLas Preguntas Educativas entran a las Aulas CIAESA  Ccesa007.pdf
Las Preguntas Educativas entran a las Aulas CIAESA Ccesa007.pdfDemetrio Ccesa Rayme
 
Planeacion para 1er Grado - (2023-2024)-1.docx
Planeacion para 1er Grado - (2023-2024)-1.docxPlaneacion para 1er Grado - (2023-2024)-1.docx
Planeacion para 1er Grado - (2023-2024)-1.docxSarisdelosSantos1
 
DISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdf
DISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdfDISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdf
DISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdfVerenice Del Rio
 
Libros del Ministerio de Educación (2023-2024).pdf
Libros del Ministerio de Educación (2023-2024).pdfLibros del Ministerio de Educación (2023-2024).pdf
Libros del Ministerio de Educación (2023-2024).pdfGalletitas default
 
Diapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanente
Diapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanenteDiapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanente
Diapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanenteinmaculadatorressanc
 
El liderazgo en la empresa sostenible, introducción, definición y ejemplo.
El liderazgo en la empresa sostenible, introducción, definición y ejemplo.El liderazgo en la empresa sostenible, introducción, definición y ejemplo.
El liderazgo en la empresa sostenible, introducción, definición y ejemplo.JonathanCovena1
 
ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN PARÍS. Por JAVIER SOL...
ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN  PARÍS. Por JAVIER SOL...ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN  PARÍS. Por JAVIER SOL...
ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN PARÍS. Por JAVIER SOL...JAVIER SOLIS NOYOLA
 
Presentación NORMA TECNICA 2024. minedu peru
Presentación NORMA  TECNICA 2024. minedu peruPresentación NORMA  TECNICA 2024. minedu peru
Presentación NORMA TECNICA 2024. minedu peruCarlosAntonioBalbuen1
 

Último (20)

PLAN ANUAL DE TUTORIA PARA SEGUNDO AÑO DE SECUNDARIA
PLAN ANUAL DE TUTORIA PARA  SEGUNDO AÑO DE SECUNDARIAPLAN ANUAL DE TUTORIA PARA  SEGUNDO AÑO DE SECUNDARIA
PLAN ANUAL DE TUTORIA PARA SEGUNDO AÑO DE SECUNDARIA
 
ACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLA
ACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLAACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLA
ACERTIJO EL NÚMERO PI COLOREA EMBLEMA OLÍMPICO DE PARÍS. Por JAVIER SOLIS NOYOLA
 
Programa dia de las madres para la convi
Programa dia de las madres para la conviPrograma dia de las madres para la convi
Programa dia de las madres para la convi
 
MINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docx
MINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docxMINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docx
MINEDU BASES JUEGOS ESCOLARES DEPORTIVOS PARADEPORTIVOS 2024.docx
 
sesion de aprendizaje 1 SEC. 13- 17 MAYO 2024 comunicación.pdf
sesion de aprendizaje 1 SEC. 13- 17  MAYO  2024 comunicación.pdfsesion de aprendizaje 1 SEC. 13- 17  MAYO  2024 comunicación.pdf
sesion de aprendizaje 1 SEC. 13- 17 MAYO 2024 comunicación.pdf
 
TÉCNICAS OBSERVACIONALES Y TEXTUALES.pdf
TÉCNICAS OBSERVACIONALES Y TEXTUALES.pdfTÉCNICAS OBSERVACIONALES Y TEXTUALES.pdf
TÉCNICAS OBSERVACIONALES Y TEXTUALES.pdf
 
Lineamientos de la Escuela de la Confianza SJA Ccesa.pptx
Lineamientos de la Escuela de la Confianza  SJA  Ccesa.pptxLineamientos de la Escuela de la Confianza  SJA  Ccesa.pptx
Lineamientos de la Escuela de la Confianza SJA Ccesa.pptx
 
Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...
Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...
Realitat o fake news? – Què causa el canvi climàtic? - Modificacions dels pat...
 
HISTORIA DE ARQUITECTURA PERUANA HORIZONTE
HISTORIA DE ARQUITECTURA PERUANA HORIZONTEHISTORIA DE ARQUITECTURA PERUANA HORIZONTE
HISTORIA DE ARQUITECTURA PERUANA HORIZONTE
 
Novena de Pentecostés con textos de san Juan Eudes
Novena de Pentecostés con textos de san Juan EudesNovena de Pentecostés con textos de san Juan Eudes
Novena de Pentecostés con textos de san Juan Eudes
 
AEC 2. Aventura en el Antiguo Egipto.pptx
AEC 2. Aventura en el Antiguo Egipto.pptxAEC 2. Aventura en el Antiguo Egipto.pptx
AEC 2. Aventura en el Antiguo Egipto.pptx
 
Ediciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D Ccesa007.pdf
Ediciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D  Ccesa007.pdfEdiciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D  Ccesa007.pdf
Ediciones Previas Proyecto de Innovacion Pedagogica ORIGAMI 3D Ccesa007.pdf
 
Las Preguntas Educativas entran a las Aulas CIAESA Ccesa007.pdf
Las Preguntas Educativas entran a las Aulas CIAESA  Ccesa007.pdfLas Preguntas Educativas entran a las Aulas CIAESA  Ccesa007.pdf
Las Preguntas Educativas entran a las Aulas CIAESA Ccesa007.pdf
 
Planeacion para 1er Grado - (2023-2024)-1.docx
Planeacion para 1er Grado - (2023-2024)-1.docxPlaneacion para 1er Grado - (2023-2024)-1.docx
Planeacion para 1er Grado - (2023-2024)-1.docx
 
DISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdf
DISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdfDISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdf
DISEÑO DE ESTRATEGIAS EN MOMENTOS DE INCERTIDUMBRE.pdf
 
Libros del Ministerio de Educación (2023-2024).pdf
Libros del Ministerio de Educación (2023-2024).pdfLibros del Ministerio de Educación (2023-2024).pdf
Libros del Ministerio de Educación (2023-2024).pdf
 
Diapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanente
Diapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanenteDiapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanente
Diapositivas unidad de trabajo 7 sobre Coloración temporal y semipermanente
 
El liderazgo en la empresa sostenible, introducción, definición y ejemplo.
El liderazgo en la empresa sostenible, introducción, definición y ejemplo.El liderazgo en la empresa sostenible, introducción, definición y ejemplo.
El liderazgo en la empresa sostenible, introducción, definición y ejemplo.
 
ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN PARÍS. Por JAVIER SOL...
ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN  PARÍS. Por JAVIER SOL...ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN  PARÍS. Por JAVIER SOL...
ACERTIJO LA RUTA DEL MARATÓN OLÍMPICO DEL NÚMERO PI EN PARÍS. Por JAVIER SOL...
 
Presentación NORMA TECNICA 2024. minedu peru
Presentación NORMA  TECNICA 2024. minedu peruPresentación NORMA  TECNICA 2024. minedu peru
Presentación NORMA TECNICA 2024. minedu peru
 

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

Examen estructuras de datos

  • 1. use Libros; create table AUTOR ( IDENTIFICACION int , NOMBRE nchar(80), FEC_NACIMIENTO datetime, NACIONALIDAD nchar(60), constraint PK_AUTOR primary key (IDENTIFICACION) ); create table LIBRO ( NUMERO int constraint PK_LIBRO primary key, TITULO nchar(80) unique, EDITORIAL nchar(60), AREA nchar(50), PRECIO numeric(8,2) default 0, ); create table LIBRO_AUTOR ( NUM_LIBRO int not null, ID_AUTOR int not null, constraint PK_LIBRO_AUTOR primary key (NUM_LIBRO, ID_AUTOR) ); alter table LIBRO_AUTOR add constraint FK_LIBRO foreign key (NUM_LIBRO) references LIBRO (NUMERO); alter table LIBRO_AUTOR add constraint FK_AUTOR foreign key (ID_AUTOR) references AUTOR (IDENTIFICACION); -- Insertar datos de Autor insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (123,'Carlos Fallas','19090121','Costarricense'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (124,'Carmen Lyra','19490514','Costarricense'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (125,'Paulo Coelho','19470824','Brasile�o'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (126,'J.R.R Tolkien','18920103','Britanico'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (127,'J.K Rolling','19650731','Britanico'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (128,'Gabriel Garcia Marquez','19270306','Colombiano'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (129,'Herbet George Wells','18660921','Britanico'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (130,'Alex Rovira Celma','19690301','Espa�ol'); insert into AUTOR (identificacion,nombre,fec_nacimiento,nacionalidad) values (131,'Frances Miralles Contijoch','19680827','Espa�ol'); -- Insertar datos de Libros insert into LIBRO (numero,titulo,editorial,area,precio) values (1,'Mamita Yunai', 'Editorial Soley y Valverde','Novela',25000); insert into LIBRO (numero,titulo,editorial,area,precio) values (2,'Marcos Ramirez', 'Imprenta Falco','Novela',18000); insert into LIBRO (numero,titulo,editorial,area,precio) values (3,'El Alquimista', 'Imprenta Falco','Novela',15000); insert into LIBRO (numero,titulo,editorial,area,precio) values (4,'Cuentos de Mi Tia Panchita', 'Imprenta Nacional','Cuentos',7800); insert into LIBRO (numero,titulo,editorial,area,precio) values (5,'El Senor de los Anillos: Comunidad del Anillo', 'Minotauro','Fantasia',32000); insert into LIBRO (numero,titulo,editorial,area,precio) values (6,'Harry Potter y la Piedra Filosofal', 'Boomsbuury','Fantasia',45000); insert into LIBRO (numero,titulo,editorial,area,precio) values (7,'Harry Potter y la Camara Secreta', 'Boomsbuury','Fantasia',42000); insert into LIBRO (numero,titulo,editorial,area,precio) values (8,'La Guerra de los Mundos', 'Heinermann','Ficcion',12000); insert into LIBRO (numero,titulo,editorial,area,precio) values (9,'Cronica de una muerte anunciada', 'La Oveja Negra','Novela',23000); insert into LIBRO (numero,titulo,editorial,area,precio) values (10,'La Ultima Respuesta', 'Plaza y Janes','Novela',6500); insert into LIBRO_AUTOR (num_libro,id_autor) values (1,123); insert into LIBRO_AUTOR (num_libro,id_autor) values (2,123); insert into LIBRO_AUTOR (num_libro,id_autor) values (3,125); insert into LIBRO_AUTOR (num_libro,id_autor) values (4,124); insert into LIBRO_AUTOR
  • 2. (num_libro,id_autor) values (5,126); insert into LIBRO_AUTOR (num_libro,id_autor) values (6,127); insert into LIBRO_AUTOR (num_libro,id_autor) values (7,127); insert into LIBRO_AUTOR (num_libro,id_autor) values (8,129); insert into LIBRO_AUTOR (num_libro,id_autor) values (9,128); insert into LIBRO_AUTOR (num_libro,id_autor) values (10,130); insert into LIBRO_AUTOR (num_libro,id_autor) values (10,131);