Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

How to structure a weird relationship

$
0
0
Hello,

I'm new, recent softdev grad and I'm working on a project with a weird relationship. Trying to figure out the best way to structure a couple of tables. I feel like it's pretty easy but I can't quite wrap my head around it. Any help would be appreciated. This structure will be used to store classical music.

So I have four things, a songs, works, albums and playlists.

A song is the base.
A work is made up of multiple songs.
An album is made up of multiple songs and/or a work.
A playlist is one or a combination of any of the previous.

I keep trying to do it with a recursive M2M with a song grouping type or something.

Viewing all articles
Browse latest Browse all 13329

Trending Articles