Question: Search the web Readir zy Section 4 . 2 - BIS 2 4 5 : zy Section 4 . 1 - BIS 2 4 5

Search the web
Readir
zy Section 4.2- BIS 245 :
zy Section 4.1- BIS 245:
x
devry: Customer Sen
x
devry: Customer Serv
How to Overcome C
learn.zybooks.com/zybook/Database_Essentials_for_Business_with_Lab___11506/chapter/4/section/2
My library > BIS 245: Database Essentials for Business with Lab home >4.2 : Join queries
zyBooks catalog
(?) Help
PARTICIPATION
ACTIVITY
4.2.9. Join coding exercise
The SQL below creates Genre and Song tables, inserts some genres and songs, and performs an inner join.
Run the SQL. Verify the result table does not include songs with NULL genre or genres that are not associated with songs.
Make the following changes:
In the CREATE TABLE statement for Song, rename GenreCode to Code. Modify the SELECT statement to work with the new name. Run the SQL and verify the result table is unchanged.
Modify the SELECT statement to perform a left join. Run the SQL and verify the result table includes songs with NULL genre
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.
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
Hints: In steps 2 and 3, use keywords LEFT and RIGHT. In step 4, use keyword UNION, since MySQL does not support FULL JOIN.
1 CREATE TABLE Genre (
2 Code CHAR(3),
 Search the web Readir zy Section 4.2- BIS 245 : zy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!