Please view attachment before answering. The attachment includes the tables and its contents. I am in need of assistance with both parts, A and B. I am unsure on how i can go about attempting the question. I am using mysql terminal. Please explain solution in detail so i can fully understand . Attaching a visual will be of great help as well. (as in a screenshot or so) Thank you so much in advance! Part A - Modify the SELECT statement to perform a right join. Run the SQL and verify the result table includes genres that are not associated with any songs. Part B - Combine the left and right joins into one statement that performs a full join. Run the SQL and verify the result table includes all songs and genres.
Please view attachment before answering. The attachment includes the tables and its contents. I am in need of assistance with both parts, A and B. I am unsure on how i can go about attempting the question. I am using mysql terminal. Please explain solution in detail so i can fully understand . Attaching a visual will be of great help as well. (as in a screenshot or so) Thank you so much in advance! Part A - Modify the SELECT statement to perform a right join. Run the SQL and verify the result table includes genres that are not associated with any songs. Part B - Combine the left and right joins into one statement that performs a full join. Run the SQL and verify the result table includes all songs and genres.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
Please view attachment before answering. The attachment includes the tables and its contents. I am in need of assistance with both parts, A and B. I am unsure on how i can go about attempting the question. I am using mysql terminal. Please explain solution in detail so i can fully understand . Attaching a visual will be of great help as well. (as in a screenshot or so) Thank you so much in advance!
Part A - Modify the SELECT statement to perform a right join. Run the SQL and verify the result table includes genres that are not associated with any songs.
Part B - Combine the left and right joins into one statement that performs a full join. Run the SQL and verify the result table includes all songs and genres.
**** use keyword UNION, since MySQL does not support FULL JOIN

Transcribed Image Text:mysql> select * from genre;
+------+-
| Code Name
+---- -+-
| CLA
artists
| cou
Description
| Classical | Orchestral music composed and performed by professionally trained
Country Developed mostly in southern USA, with roots in traditional folk music,
spirituals and blues |
| DRO | Drone
clusters
| GRU | Grunge
|
| PRC | Pop Rock
| RAB | R&B
| TEC | Techno
| Minimalist music that emphasizes sustained or repeated sounds, notes, or tone
Alternative rock inspired by hardcore punk, heavy metal, and indie rock
| Rock music with less attitude
Modern version of soul and funk African-American pop music
| Electronic music
7 rows in set (0.00 sec)
mysql> desc genre;
+-
Field
+-
| Code
| Name
| Туре
| Null | Key | Default | Extra |
| char(3)
| NO
varchar(20) | YES
| Description | varchar(200) | YES
--+-
3 rows in set (0.01 sec)
mysql>
| PRI | NULL
| NULL
| NULL

Transcribed Image Text:mysql> select * from song;
+-----+-
| ID | Title
+
| 100 | Hey Jude
| 200 | You Belong With Me
| 300 | Need You Now
| 400 | Old Town Road
| 500 | That's The Way Love Goes |
| 600 | Even Flow
+-- --+--
6 rows in set (0.00 sec)
mysql> desc song;
+-
| Field Type
ID
| Title
Artist
| Beatles
| Code |
| PRC
| Taylor Swift | NULL
Lady Antebellum | COU
|
Lil Nas X
| NULL
Janet Jackson | RAB
| Pearl Jam
| GRU
| Null | Key | Default | Extra |
--+-
| int
| NO
varchar(60) | YES
| PRI | NULL
| NULL
| NULL
| Artist | varchar(60) | YES
| Code
|char(3)
4 rows in set (0.01 sec)
| YES | MUL | NULL
mysql>
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images

Knowledge Booster
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.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education