You are on page 1of 13

Album Table

album_name album_release album_runtime

What's Going On May 21, 1971 35:32:00

Pet Sounds May 16, 1966 35:57:00


Willy and the Poor Boys October 29, 1969 34:31:00

1NF (ATOMICITY)
REMOVE REPEATING GROUPS IN A RECORD'S ATTRIBUTE
Music Albums
album_name album_producer album_artist
What's Going On Marvin Gaye Marvin Gaye
What's Going On Marvin Gaye Marvin Gaye
What's Going On Marvin Gaye Marvin Gaye
What's Going On Marvin Gaye Marvin Gaye
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Pet Sounds Brian Wilson the Beach Boys
Willy and the Poor Boys John Fogerty Creedence Clearwater Revival
Willy and the Poor Boys John Fogerty Creedence Clearwater Revival

SIMPLIFYING REPEATED DATA


Music Albums
album_name album_producer album_artist
What's Going On Marvin Gaye Marvin Gaye
Pet Sounds Brian Wilson the Beach Boys
Willy and the Poor Boys John Fogerty Creedence Clearwater Revival

album_genre album_track
Soul What's Going On
Progressive Pop Mercy Mercy Me (The Ecology)
Chamber Pop Inner City Blues (Make Me Wanna
Psychedelic Pop Save the Children
Art Rock Caroline, No
Swamp Rock Sloop John B
Wouldn't It Be Nice
God Only Knows
Down on the Corner
Fortunate Son

2NF (UNIQUENESS)
A TABLE MUST CONTAIN AN ATTRIBUTE OR GROUP OF ATTRIBUTES MAKING EACH ROW IN THAT

{ album_name } → { album_producer, album_artist, album_record_label }


Music Album Credits
album_name (PK) album_producer album_artist
What's Going On Marvin Gaye Marvin Gaye
Pet Sounds Brian Wilson the Beach Boys
Willy and the Poor Boys John Fogerty Creedence Clearwater Revival

{ album_name } → { album_track } → { album_track_order }


Album Tracklist
album_name (PK/FK) album_track album_track_order
What's Going On What's Going On 1
What's Going On Mercy Mercy Me (The Ecology) 2
What's Going On Inner City Blues (Make Me Wanna 3
What's Going On Save the Children 4
Pet Sounds Caroline, No 1
Pet Sounds Sloop John B 2
Pet Sounds Wouldn't It Be Nice 3
Pet Sounds God Only Knows 3
Willy and the Poor Boys Down on the Corner 1
Willy and the Poor Boys Fortunate Son 1

{ album_name } → { album_runtime }
Runtime
album_name (PK) album_runtime
What's Going On 35:32:00
Pet Sounds 35:57:00
Willy and the Poor Boys 34:31:00

{ album_name } → { album_genre }
Album Genre
album_name (PK) album_genre
What's Going On Soul
Pet Sounds Progressive Pop
Pet Sounds Chamber Pop
Pet Sounds Psychedelic Pop
Pet Sounds Art Rock
Willy and the Poor Boys Swamp Rock

{ album_name } → { album_release_year } → { album_release_month } → { al


Release
album_name (PK) album_release_year album_release_month
What's Going On 1971 May
Pet Sounds 1966 May
Willy and the Poor Boys 1969 October

3NF ("Nothing but the key, so help me Codd."


TRANSFER ALL TRANSITIVE DEPENDENCIES TO NEW TABLE
{ album_name } → { album_producer, album_artist, album_record_label }
Music Album Credits
album_name (PK) album_producer album_artist
What's Going On Marvin Gaye Marvin Gaye
Pet Sounds Brian Wilson the Beach Boys
Willy and the Poor Boys John Fogerty Creedence Clearwater Revival
{ album_name } → { album_track }
Album Tracklist
album_name (PK/FK) album_track
What's Going On What's Going On
What's Going On Mercy Mercy Me (The Ecology)
What's Going On Inner City Blues (Make Me Wanna Holler)
What's Going On Save the Children
Pet Sounds Caroline, No
Pet Sounds Sloop John B
Pet Sounds Wouldn't It Be Nice
Pet Sounds God Only Knows
Willy and the Poor Boys Down on the Corner
Willy and the Poor Boys Fortunate Son

{ album_track } → { album_track_order }
Album Trackorder
album_track (PK/FK) album_track_order
What's Going On 1
Mercy Mercy Me (The Ecology) 2
Inner City Blues (Make Me Wan 3
Save the Children 4
Caroline, No 1
Sloop John B 2
Wouldn't It Be Nice 3
God Only Knows 3
Down on the Corner 1
Fortunate Son 1

{ album_name } → { album_runtime }
Runtime
album_name (PK/FK) album_runtime
What's Going On 35:32:00
Pet Sounds 35:57:00
Willy and the Poor Boys 34:31:00

{ album_name } → { album_genre }
Album Genre
album_name (PK/FK) album_genre
What's Going On Soul
Pet Sounds Progressive Pop
Pet Sounds Chamber Pop
Pet Sounds Psychedelic Pop
Pet Sounds Art Rock
Willy and the Poor Boys Swamp Rock

{ album_name } → { album_release_year }
Release Year
album_name (FK) album_release_year
What's Going On 1971
Pet Sounds 1966
Willy and the Poor Boys 1969

{ album_name, album_release_year } → { album_release_month }


Release Month
album_name (NK) album_release_year (NK) album_release_month
What's Going On 1971 May
Pet Sounds 1966 May
Willy and the Poor Boys 1969 October

{ album_name, album_release_year, album_release_month } → { album_release


Release Day
album_name (FK) album_release_month (NK) album_release_month (NK)
What's Going On May May
Pet Sounds May May
Willy and the Poor Boys October October
album_artist album_producer

Marvin Gaye Marvin Gaye

the Beach Boys Brian Wilson


Creedence Clearwater Revival John Fogerty

album_record_label album_track
Tamla What's Going On
Tamla Mercy Mercy Me (The Ecology)
Tamla Inner City Blues (Make Me Wanna Holler)
Tamla Save the Children
Capitol Caroline, No
Capitol Caroline, No
Capitol Caroline, No
Capitol Caroline, No
Capitol Sloop John B
Capitol Sloop John B
Capitol Sloop John B
Capitol Sloop John B
Capitol Wouldn't It Be Nice
Capitol Wouldn't It Be Nice
Capitol Wouldn't It Be Nice
Capitol Wouldn't It Be Nice
Capitol God Only Knows
Capitol God Only Knows
Capitol God Only Knows
Capitol God Only Knows
Fantasy Down on the Corner
Fantasy Fortunate Son

album_record_label album_runtime
Tamla 35:32:00
Capitol 35:57:00
Fantasy 34:31:00

album_track_order
1
2
3
4
1
2
3
3
1
1

NG EACH ROW IN THAT TABLE UNIQUE.

ecord_label }
album_record_label
Tamla
Capitol
Fantasy
se_month } → { album_release_day }
album_release_day
21
16
29

me Codd.")
ecord_label }
album_record_label
Tamla
Capitol
Fantasy
→ { album_release_day }
album_release_day
21
16
29
album_track album_track_order album_record_label

"What's Going On" 1


"Mercy Mercy Me (The Ecology)" 2
"Inner City Blues (Make Me Wanna Holler)" 3
"Save the Children" 4 Tamla

"Caroline, No" 1
"Sloop John B" 2
"Wouldn't It Be Nice" / "God Only Knows" 3 Capitol
"Down on the Corner" b/w "Fortunate Son" 1 Fantasy

album_track_order album_genre album_runtime


1 Soul 35:32:00
2 Soul 35:32:00
3 Soul 35:32:00
4 Soul 35:32:00
1 Progressive Pop 35:57:00
1 Chamber Pop 35:57:00
1 Psychedelic Pop 35:57:00
1 Art Rock 35:57:00
2 Progressive Pop 35:57:00
2 Chamber Pop 35:57:00
2 Psychedelic Pop 35:57:00
2 Art Rock 35:57:00
3 Progressive Pop 35:57:00
3 Chamber Pop 35:57:00
3 Psychedelic Pop 35:57:00
3 Art Rock 35:57:00
3 Progressive Pop 35:57:00
3 Chamber Pop 35:57:00
3 Psychedelic Pop 35:57:00
3 Art Rock 35:57:00
1 Swamp Rock 34:31:00
1 Swamp Rock 34:31:00

album_release_day album_release_month album_release_year


21 May 1971
16 May 1966
29 October 1969
album_genre

Soul

Progressive Pop
Chamber Pop
Psychedlic Pop
Art Rock
Swamp Rock

album_release_month album_release_year album_release_day


May 1971 21
May 1971 21
May 1971 21
May 1971 21
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
May 1966 16
October 1969 29
October 1969 29

You might also like