7. Add a foreign key constraint to the shows table: the column net_id is the foreign key, referencing the column id from the networks table. * Take a screenshot now and paste it here. 8. Show the structure of your table shows. * Take a screenshot now and paste it here. 9. Insert the following data in your database. You may use more than one INSERT statement. title num_episodes country start end network Daniel Tiger 105 USA 2012 NULL PBS Handy Manny 113 USA 2006 2013 Disney

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter3: Table Creation And Management
Section: Chapter Questions
Problem 7HOA: Create a new table containing these four columns from the existing BOOKS table: ISBN, Cost, Retail,...
icon
Related questions
Question
7.
Add a foreign key constraint to the shows table: the column net_id is the foreign key, referencing the column id
from the networks table.
Take a screenshot now and paste it here.
8.
Show the structure of your table shows.
Take a screenshot now and paste it here.
9.
Insert the following data in your database. You may use more than one INSERT statement.
title
num_episodes country
start
end
network
Daniel Tiger
105
USA
2012
NULL
PBS
Handy Manny
113
USA
2006
2013
Disney
Transcribed Image Text:7. Add a foreign key constraint to the shows table: the column net_id is the foreign key, referencing the column id from the networks table. Take a screenshot now and paste it here. 8. Show the structure of your table shows. Take a screenshot now and paste it here. 9. Insert the following data in your database. You may use more than one INSERT statement. title num_episodes country start end network Daniel Tiger 105 USA 2012 NULL PBS Handy Manny 113 USA 2006 2013 Disney
[mysql> select * from shows;
| ID | Title
| Num_episodes | Country
| Start | End
net_id |
+---
1 | Bluey
53 | Australia |
81 | USA
110 | Canada
136 | USA
77 | Canada
350 | USA
109 | USA
263 | USA
81 | Singapore |
685 | USA
65 | USA
31| USA
76 | USA
2018 | NULL |
1990 | 1998 |
|
2 | Bobby's World
3| Caillou
|
1
|
|
5 |
1997 | 2010 |
2012 | 2020 |
2013 | NULL |
1999 | NULL |
2013| 2018 |
7
4 | Doc McStuffins
5 | Doki
6 | Family Guy
7 | Sofia the First
8 | SpongeBob SquarePants
9 | The Loud House
| 10 | The Simpsons
| 1 | Chip 'n Dale
12 | The Little Mermaid
| 13 | Little Einsteins
4
3|
5 |
4 |
|
1999 | NULL |
2016 | NULL |
1989 | NULL |
1989 | 1990 |
1992 | 1994
2005 | 2009
6
6 |
5 |
4 |
2
4
+----
13 rows in set (0.01 sec)
[mysql> select * from networks;
+---
| id | name
+
1 | АВС Кids
| 2 | CBS
|
3 | Discovery Kids
4 | Disney
|
5| Fox
|
6 | Nickelodeon
7 | Teletoon
+.
7 rows in set (0.00 sec)
[mysql> DESC NETWORKS;
| Field | Type
| Null | Key | Default | Extra
| int(11)
| varchar(20) | YES
| id
| name
| NO
| PRI | NULL
| auto_increment |
| NULL
|
+.
2 rows in set (0.01 sec)
[mysql> DESC SHOWS;
| Field
| Туре
| Null | Key | Default | Extra
| int(11)
| ID
| Title
| Num_episodes | int(11)
| Country
| Start
| End
| net_id
| NO
| varchar (80) | NO
| NO
| varchar (60) | NO
|
| PRI | NULL
| NULL
| NULL
| NULL
| NULL
| NULL
| NULL
| auto_increment |
| int(11)
| int(11)
| int(11)
| NO
| YES
| YES
+-
7 rows in set (0.01 sec)
Transcribed Image Text:[mysql> select * from shows; | ID | Title | Num_episodes | Country | Start | End net_id | +--- 1 | Bluey 53 | Australia | 81 | USA 110 | Canada 136 | USA 77 | Canada 350 | USA 109 | USA 263 | USA 81 | Singapore | 685 | USA 65 | USA 31| USA 76 | USA 2018 | NULL | 1990 | 1998 | | 2 | Bobby's World 3| Caillou | 1 | | 5 | 1997 | 2010 | 2012 | 2020 | 2013 | NULL | 1999 | NULL | 2013| 2018 | 7 4 | Doc McStuffins 5 | Doki 6 | Family Guy 7 | Sofia the First 8 | SpongeBob SquarePants 9 | The Loud House | 10 | The Simpsons | 1 | Chip 'n Dale 12 | The Little Mermaid | 13 | Little Einsteins 4 3| 5 | 4 | | 1999 | NULL | 2016 | NULL | 1989 | NULL | 1989 | 1990 | 1992 | 1994 2005 | 2009 6 6 | 5 | 4 | 2 4 +---- 13 rows in set (0.01 sec) [mysql> select * from networks; +--- | id | name + 1 | АВС Кids | 2 | CBS | 3 | Discovery Kids 4 | Disney | 5| Fox | 6 | Nickelodeon 7 | Teletoon +. 7 rows in set (0.00 sec) [mysql> DESC NETWORKS; | Field | Type | Null | Key | Default | Extra | int(11) | varchar(20) | YES | id | name | NO | PRI | NULL | auto_increment | | NULL | +. 2 rows in set (0.01 sec) [mysql> DESC SHOWS; | Field | Туре | Null | Key | Default | Extra | int(11) | ID | Title | Num_episodes | int(11) | Country | Start | End | net_id | NO | varchar (80) | NO | NO | varchar (60) | NO | | PRI | NULL | NULL | NULL | NULL | NULL | NULL | NULL | auto_increment | | int(11) | int(11) | int(11) | NO | YES | YES +- 7 rows in set (0.01 sec)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Elements of Tables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L