Refer to the sample tables and data below. Tables:tv_show (i…
Refer to the sample tables and data below. Tables:tv_show (id(pk), name, network_id(fk)) — foreign key references network(id)network (id(pk), name)– id and network_id columns are INT. name columns are VARCHAR.mysql> SELECT * from tv_show;+—-+—————-+————+| id | name | network_id |+—-+—————-+————+| 1 | Raven’s Home | 10 || 2 | Friends | 30 || 3 | The Good Place | 30 || 4 | Young Sheldon | 10 || 5 | Bluey | 10 || 6 | Duck Tales | 10 || 7 | Cheers | 30 |+—-+—————-+————+7 rows in set (0.00 sec)mysql> SELECT * FROM network;+—-+——–+| id | name |+—-+——–+| 10 | Disney || 20 | CBS || 30 | NBC || 40 | Fox |+—-+——–+4 rows in set (0.00 sec) Which network(s) does the following command return? If the command returns an empty set, please select only “empty set”. SELECT network.name FROM network WHERE network.id IN (SELECT network_id FROM tv_show);
Read Details