Created
September 25, 2013 04:34
-
-
Save polycarpou/6695190 to your computer and use it in GitHub Desktop.
SQL schema and Tables homework for Day 2, week 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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