This document contains 3 SQL statements that create tables for albums, artists, and users. The albums table tracks an album's ID, name, artist, streams, label, genre, and release date. The artists table contains an artist's ID, name, start date, retirement date, followers, and nationality. Finally, the users table stores a user's ID, name, email, membership type, and sets the email as a unique constraint.
This document contains 3 SQL statements that create tables for albums, artists, and users. The albums table tracks an album's ID, name, artist, streams, label, genre, and release date. The artists table contains an artist's ID, name, start date, retirement date, followers, and nationality. Finally, the users table stores a user's ID, name, email, membership type, and sets the email as a unique constraint.
This document contains 3 SQL statements that create tables for albums, artists, and users. The albums table tracks an album's ID, name, artist, streams, label, genre, and release date. The artists table contains an artist's ID, name, start date, retirement date, followers, and nationality. Finally, the users table stores a user's ID, name, email, membership type, and sets the email as a unique constraint.
AlbumName VARCHAR(20) NOT NULL, ArtistName VARCHAR(20) NOT NULL, HoursStreamed INT DEFAULT 0, Label VARCHAR(20), Genre VARCHAR(20), ReleaseDate DATE NOT NULL);
CREATE TABLE Artists(
ArtistID VARCHAR(12) PRIMARY KEY, Name VARCHAR(20) NOT NULL, ActiveSince DATE NOT NULL, RetirementDate DATE, NumberOfFollowers INT, Nationality VARCHAR(20));