List the show title and network name for only the shows from networks that start with the letter D. Do not hardcode names or ids in your query. Remember that your code must still work when your tables have more networks and shows added.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 52P
icon
Related questions
Question
15. List the show title and network name for only the shows from networks that start with the letter D. Do not
hardcode names or ids in your query. Remember that your code must still work when your tables have more
networks and shows added.
Transcribed Image Text:15. List the show title and network name for only the shows from networks that start with the letter D. Do not hardcode names or ids in your query. Remember that your code must still work when your tables have more networks and shows added.
[mysql> select * from shows;
+--
| ID | Title
[+.
1 | Bluey
| 2 | Bobby's World
|
| Num_episodes | Country
| Start | End
| net_id |
2018 | NULL |
|
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
105 | USA
113 | USA
1
3 | Caillou
4 | Doc McStuffins
|
1990 | 1998 |
1997 | 2010 |
5 |
7 |
4 |
|
2012| 2020 |
5 | Doki
6 | Family Guy
|
|
2013 | NULL |
1999 | NULL |
|
3
5 |
2013 | 2018 |
1999 | NULL|
2016 | NULL |
1989 | NULL|
7 | Sofia the First
8 | SpongeBob SquarePants
9 | The Loud House
| 10 | The Simpsons
| 11 | Chip 'n Dale
| 12 | The Little Mermaid
| 13 | Little Einsteins
15 | Daniel Tiger
| 16 | Handy Manny
4
6
6
|
1989 | 1990 |
|
2005 | 2009
2012 | NULL
2006 | 2013 |
5 |
4 |
2 |
4 |
1992
1994 |
8
4 |
+-.
15 rows in set (0.00 sec)
mysql> select * from networks;
+-
[] id | name
[|
2 | CBS
3 | Discovery Kids
4 | Disney
5| Fox
6 | Nickelodeon
7 | Teletoon
8| PBS
1| ABC Kids
+.
8 rows in set (0.00 sec)
[mysql> desc shows;
| Field
| Туре
| Null | Key | Default | Extra
| int(11)
| ID
[| Title
| Num_episodes | int(11)
| Country
[] Start
| End
| net_id
| auto_increment |
| NO
| varchar (80) | NO
| PRI | NULL
| NULL
| NULL
| NULL
| NULL
| NULL
MUL | NULL
| NO
|
| varchar (60) | NO
|
| int(11)
| int(11)
| int(11)
| NO
| YES
| YES
7 rows in set (0.00 sec)
mysql> desc networks;
| Field | Type
| Null | Key | Default | Extra
| id
| name
| auto_increment
|
| int(11)
| NO
PRI | NULL
| NULL
| varchar(20) | YES
|
2 rows in set (0.00 sec)
Transcribed Image Text:[mysql> select * from shows; +-- | ID | Title [+. 1 | Bluey | 2 | Bobby's World | | Num_episodes | Country | Start | End | net_id | 2018 | NULL | | 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 105 | USA 113 | USA 1 3 | Caillou 4 | Doc McStuffins | 1990 | 1998 | 1997 | 2010 | 5 | 7 | 4 | | 2012| 2020 | 5 | Doki 6 | Family Guy | | 2013 | NULL | 1999 | NULL | | 3 5 | 2013 | 2018 | 1999 | NULL| 2016 | NULL | 1989 | NULL| 7 | Sofia the First 8 | SpongeBob SquarePants 9 | The Loud House | 10 | The Simpsons | 11 | Chip 'n Dale | 12 | The Little Mermaid | 13 | Little Einsteins 15 | Daniel Tiger | 16 | Handy Manny 4 6 6 | 1989 | 1990 | | 2005 | 2009 2012 | NULL 2006 | 2013 | 5 | 4 | 2 | 4 | 1992 1994 | 8 4 | +-. 15 rows in set (0.00 sec) mysql> select * from networks; +- [] id | name [| 2 | CBS 3 | Discovery Kids 4 | Disney 5| Fox 6 | Nickelodeon 7 | Teletoon 8| PBS 1| ABC Kids +. 8 rows in set (0.00 sec) [mysql> desc shows; | Field | Туре | Null | Key | Default | Extra | int(11) | ID [| Title | Num_episodes | int(11) | Country [] Start | End | net_id | auto_increment | | NO | varchar (80) | NO | PRI | NULL | NULL | NULL | NULL | NULL | NULL MUL | NULL | NO | | varchar (60) | NO | | int(11) | int(11) | int(11) | NO | YES | YES 7 rows in set (0.00 sec) mysql> desc networks; | Field | Type | Null | Key | Default | Extra | id | name | auto_increment | | int(11) | NO PRI | NULL | NULL | varchar(20) | YES | 2 rows in set (0.00 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
Multiple table
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
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage