View Single Post
Old 10-30-2007, 10:45 AM   #2 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

The structure seems OK, it's just the naming conventions that I would alter. I would go for:
  • Albums
  • id (pk)
  • name
  • Artists
  • id (pk)
  • name (maybe even make this column unique, too)
  • Songs
  • id (pk)
  • album_id (fk)
  • artist_id (fk)
  • name
  • lyrics (consider using full-text search)

You'd set-up 2 relationships: songs.album_id => albums.id and songs.artist_id => albums.id.

Hope this helps!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote