Forum Moderators: coopster
I was thinking that I would have a table that would contain all of the albums. Each album would have a field for name, release date, the cover image, the tracklisting, and any additional information about the album (producer, guest vocals, etc in a paragraph with each piece of info on a new line).
So, there are two problems - albums have different numbers of tracks and will have a different amount of lines for the additional information. So, should each get only one field for it? And if so, how would I go about doing that to make sure that each track and info piece will have it's own line?
Jennifer
I'd break it up into probably 3 tables: Artist, Album, Tracks
Sample breakdown might be
Artist
------
artistID
artistname, bio info , etc
Album
------
albumID
artistID
albumname, daterealeased, any other album info
Tracks
------
trackID
albumID
maybe artist ID (depending on how you have searches set up)
any other specific track info
Then all albums by an artist would have that artist's ID. All tracks for that album would have that album's ID. Then it would be easy to pull up albums by an artist and tracks for a given album.
baze