MySQL Forums
Forum List  »  General

Re: schema for simple song --> category db ?
Posted by: Peter Brawley
Date: May 03, 2018 01:22PM

song:category and category:song are both 1:M so you need a "bridge" table ...

songs( sid PK, ... )
categories( cid PK,... )
songs_categories( sid,cid,...,PK(sid,cid) )

where each song-category instance has exactly one row in songs_cateegories

Options: ReplyQuote


Subject
Written By
Posted
Re: schema for simple song --> category db ?
May 03, 2018 01:22PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.