I have an example layout for my table:
It's not for any work/school project so it doesn't actually matter, but in terms of normalising is that good enough? I always wonder how crazy you have to get with that kinda thing... I could split it into tracks and albums, but keeping everything in one table seems to do the same job, with less effort? It seems straightforward.
There isn't really any big question, I guess I'm just looking for any other ideas, or "looks fine to me"...

Code:
id / title / parentID / isSingle
1 / album1 / 0 / 0
2 / track1 / 1 / 0
3 / track2 / 1 / 1
4 / album2 / 0 / 0
5 / track1 / 4 / 1
6 / xxxxx / x / x
It's not for any work/school project so it doesn't actually matter, but in terms of normalising is that good enough? I always wonder how crazy you have to get with that kinda thing... I could split it into tracks and albums, but keeping everything in one table seems to do the same job, with less effort? It seems straightforward.
There isn't really any big question, I guess I'm just looking for any other ideas, or "looks fine to me"...


Last edited: