Skip to content

Instantly share code, notes, and snippets.

@polycarpou
Created September 25, 2013 04:34
Show Gist options
  • Save polycarpou/6695190 to your computer and use it in GitHub Desktop.
Save polycarpou/6695190 to your computer and use it in GitHub Desktop.
SQL schema and Tables homework for Day 2, week 1
CREATE TABLE artists(
name TEXT,
age INTEGER,
genre TEXT,
sales, INTEGER,
weight, REAL
);
ALTER TABLE artists ADD COLUMN language TEXT;
ALTER TABLE artists ADD COLUMN description TEXT;
DROP TABLE musicians;
CREATE TABLE artists(
name TEXT,
age INTEGER,
genre TEXT,
sales INTEGER,
language TEXT,
description TEXT
);
ALTER TABLE artists RENAME TO musicians;
DROP TABLE musicians;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment