Page 1 of 1

Linking the media_item table to the genre table

PostPosted: Sun Mar 15, 2020 8:21 am
by martianw
Hi, I'm trying to write some simple SQL queries to run within the Derby ij interpretter to do simple things like list all movies in the database. I have the basics working fine, but cannot see how to join the media_item table to the genre table. I understand that the database schema may change across releases and am OK with accepting that risk. This is just for me.

Any suggestions, gratefully received.

Re: Linking the media_item table to the genre table

PostPosted: Tue Mar 17, 2020 9:05 am
by zip
there is a table GENRE_ITEM which links genre_id and media_item_id.

Re: Linking the media_item table to the genre table

PostPosted: Mon Feb 01, 2021 7:46 am
by alicelamm1
I have the basics proessays working fine, but cannot see how to join the media_item table to the genre table.

Hi,
You'll need to join the media table to the Media_Genre table and the genre table to the Media_Genre table.