-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_table.sql
More file actions
30 lines (27 loc) 路 751 Bytes
/
Copy pathcreate_table.sql
File metadata and controls
30 lines (27 loc) 路 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- Spotify Analytics Database Setup
-- Run this file first before loading data
CREATE DATABASE spotify_db;
USE spotify_db;
CREATE TABLE spotify_tracks (
row_num INT,
track_id VARCHAR(100),
artists TEXT,
album_name TEXT,
track_name TEXT,
popularity INT,
duration_ms INT,
explicit VARCHAR(10),
danceability FLOAT,
energy FLOAT,
key_note INT,
loudness FLOAT,
mode INT,
speechiness FLOAT,
acousticness FLOAT,
instrumentalness FLOAT,
liveness FLOAT,
valence FLOAT,
tempo FLOAT,
time_signature INT,
track_genre VARCHAR(100)
);