|
1 | 1 | USE codeup_test_db;
|
2 | 2 | TRUNCATE albums; #removes, ends up with same number, prevents copies
|
3 | 3 | INSERT INTO albums(artist, name, release_date, sales, genre)
|
4 |
| -VALUES |
5 |
| - ('Michael Jackson', 'Thriller', 1982, 49200000, |
6 |
| - 'pop, post-disco, funk, rock'), |
7 |
| - ('AC/DC', 'Back in Black', 1980, 29500000, |
8 |
| - 'hard rock'), |
9 |
| - ('Whitney Houston', 'The Bodyguard', 1992, 32400000, |
10 |
| - 'R&B, soul, pop, soundtrack'), |
11 |
| - ('Meat Loaf', 'Bat Out of Hell', 1977, 21700000, |
12 |
| - 'hard rock, glam rock, progressive rock'), |
13 |
| - ('Eagles', 'Their Greatest Hits', 1976, 41200000, |
14 |
| - 'country rock, soft rock, folk rock'), |
15 |
| - ('Pink Floyd', 'The Dark Side of the Moon', 1973, 24400000, |
16 |
| - 'progressive rock'), |
17 |
| - ('Eagles', 'Hotel California', 1976, 31500000, |
18 |
| - 'soft rock'), |
19 |
| - ('Bee Gees', 'Saturday Night Fever', 1977, 21600000, |
20 |
| - 'disco'), |
21 |
| - ('Fleetwood Mac', 'Rumors', 1977, 27900000, |
22 |
| - 'soft rock'), |
23 |
| - ('Shania Twain', 'Come On Over', 1997, 29600000, |
24 |
| - 'country, pop'), |
25 |
| - ('One Greaser', 'Grease: The Original Soundtrack', 1978, 14400000, |
26 |
| - 'rock and roll'), |
27 |
| - ('Led Zeppelin', 'Led Zeppelin IV', 1971, 29000000, |
28 |
| - 'hard rock, heavy metal, folk rock'), |
29 |
| - ('Michael Jackson', 'Bad', 1987, 21100000, |
30 |
| - 'pop, rhythm and blues, funk and rock'), |
31 |
| - ('Alanis Morissette', 'Jagged Little Pill', 1995, 24300000, |
32 |
| - 'alternative rock'), |
33 |
| - ('Michael Jackson', 'Dangerous', 1991, 17000000, |
34 |
| - 'New jack swing, R&B and pop'), |
35 |
| - ('Celine Dion', 'Falling into You', 1996, 21100000, |
36 |
| - 'pop, soft rock'), |
37 |
| - ('The Beatles', 'Sgt. Pepper\'s Lonely Hearts Club Band', 1967, 18200000, |
38 |
| - 'rock'), |
39 |
| - ('One Singer', 'Dirty Dancing', 1987, 17900000, |
40 |
| - 'Pop, rock, R&B'), |
41 |
| - ('Adele', '21', 2011, 26400000, |
42 |
| - 'Pop, soul'), |
43 |
| - ('Celine Dion', 'Let\'s Talk About Love', 1997, 19300000, |
44 |
| - 'Pop, soft rock'), |
45 |
| - ('Metallica', 'Metallica', 1991, 25200000, |
46 |
| - 'Heavy metal'), |
47 |
| - ('The Beatles', '1', 2000, 23500000, |
48 |
| - 'rock'), |
49 |
| - ('The Beatles', 'Abbey Road', 1969, 14400000, |
50 |
| - 'rock'), |
51 |
| - ('ABBA', 'Gold: Greatest Hits', 1992, 23000000, |
52 |
| - 'Pop, disco'), |
53 |
| - ('Bruce Springsteen', 'Born in the U.S.A.', 1984, 19600000, |
54 |
| - 'Heartland rock'), |
55 |
| - ('Madonna', 'The Immaculate Collection', 1990, 19500000, |
56 |
| - 'Pop, dance'), |
57 |
| - ('Pink Floyd', 'The Wall', 1979, 18700000, |
58 |
| - 'Progressive rock'), |
59 |
| - ('James Horner', 'Titanic: Music from the Motion Picture', 1997, 18100000, 'Film score'), |
60 |
| - ('Dire Straits', 'Brothers in Arms', 1985, 17700000, |
61 |
| - 'Roots rock, blues rock, soft rock'), |
62 |
| - ('Nirvana', 'Nevermind', 1991, 16700000, |
63 |
| - 'Grunge, alternative rock'), |
64 |
| - ('Santana', 'Supernatural', 1999, 20500000, |
65 |
| - 'Latin rock'), |
66 |
| - ('Guns N\' Roses', 'Appetite for Destruction', 1987, 21900000, |
67 |
| - 'Hard rock'), |
68 |
| - ('Elton John', 'Goodbye Yellow Brick Road', 1973, 8500000, |
69 |
| - 'rock, pop rock, glam rock'); |
| 4 | +VALUES ('Michael Jackson', 'Thriller', 1982, 49200000, |
| 5 | + 'pop, post-disco, funk, rock'), |
| 6 | + ('AC/DC', 'Back in Black', 1980, 29500000, |
| 7 | + 'hard rock'), |
| 8 | + ('Whitney Houston', 'The Bodyguard', 1992, 32400000, |
| 9 | + 'R&B, soul, pop, soundtrack'), |
| 10 | + ('Meat Loaf', 'Bat Out of Hell', 1977, 21700000, |
| 11 | + 'hard rock, glam rock, progressive rock'), |
| 12 | + ('Eagles', 'Their Greatest Hits', 1976, 41200000, |
| 13 | + 'country rock, soft rock, folk rock'), |
| 14 | + ('Pink Floyd', 'The Dark Side of the Moon', 1973, 24400000, |
| 15 | + 'progressive rock'), |
| 16 | + ('Eagles', 'Hotel California', 1976, 31500000, |
| 17 | + 'soft rock'), |
| 18 | + ('Bee Gees', 'Saturday Night Fever', 1977, 21600000, |
| 19 | + 'disco'), |
| 20 | + ('Fleetwood Mac', 'Rumors', 1977, 27900000, |
| 21 | + 'soft rock'), |
| 22 | + ('Shania Twain', 'Come On Over', 1997, 29600000, |
| 23 | + 'country, pop'), |
| 24 | + ('One Greaser', 'Grease: The Original Soundtrack', 1978, 14400000, |
| 25 | + 'rock and roll'), |
| 26 | + ('Led Zeppelin', 'Led Zeppelin IV', 1971, 29000000, |
| 27 | + 'hard rock, heavy metal, folk rock'), |
| 28 | + ('Michael Jackson', 'Bad', 1987, 21100000, |
| 29 | + 'pop, rhythm and blues, funk and rock'), |
| 30 | + ('Alanis Morissette', 'Jagged Little Pill', 1995, 24300000, |
| 31 | + 'alternative rock'), |
| 32 | + ('Michael Jackson', 'Dangerous', 1991, 17000000, |
| 33 | + 'New jack swing, R&B and pop'), |
| 34 | + ('Celine Dion', 'Falling into You', 1996, 21100000, |
| 35 | + 'pop, soft rock'), |
| 36 | + ('The Beatles', 'Sgt. Pepper\'s Lonely Hearts Club Band', 1967, 18200000, |
| 37 | + 'rock'), |
| 38 | + ('One Singer', 'Dirty Dancing', 1987, 17900000, |
| 39 | + 'Pop, rock, R&B'), |
| 40 | + ('Adele', '21', 2011, 26400000, |
| 41 | + 'Pop, soul'), |
| 42 | + ('Celine Dion', 'Let\'s Talk About Love', 1997, 19300000, |
| 43 | + 'Pop, soft rock'), |
| 44 | + ('Metallica', 'Metallica', 1991, 25200000, |
| 45 | + 'Heavy metal'), |
| 46 | + ('The Beatles', '1', 2000, 23500000, |
| 47 | + 'rock'), |
| 48 | + ('The Beatles', 'Abbey Road', 1969, 14400000, |
| 49 | + 'rock'), |
| 50 | + ('ABBA', 'Gold: Greatest Hits', 1992, 23000000, |
| 51 | + 'Pop, disco'), |
| 52 | + ('Bruce Springsteen', 'Born in the U.S.A.', 1984, 19600000, |
| 53 | + 'Heartland rock'), |
| 54 | + ('Madonna', 'The Immaculate Collection', 1990, 19500000, |
| 55 | + 'Pop, dance'), |
| 56 | + ('Pink Floyd', 'The Wall', 1979, 18700000, |
| 57 | + 'Progressive rock'), |
| 58 | + ('James Horner', 'Titanic: Music from the Motion Picture', 1997, 18100000, 'Film score'), |
| 59 | + ('Dire Straits', 'Brothers in Arms', 1985, 17700000, |
| 60 | + 'Roots rock, blues rock, soft rock'), |
| 61 | + ('Nirvana', 'Nevermind', 1991, 16700000, |
| 62 | + 'Grunge, alternative rock'), |
| 63 | + ('Santana', 'Supernatural', 1999, 20500000, |
| 64 | + 'Latin rock'), |
| 65 | + ('Guns N\' Roses', 'Appetite for Destruction', 1987, 21900000, |
| 66 | + 'Hard rock'), |
| 67 | + ('Elton John', 'Goodbye Yellow Brick Road', 1973, 8500000, |
| 68 | + 'rock, pop rock, glam rock'); |
70 | 69 |
|
71 | 70 |
|
72 | 71 |
|
|
0 commit comments