Python For Informatics Database Handout Download and Install Firefox and The Sqlite Manager
Python For Informatics Database Handout Download and Install Firefox and The Sqlite Manager
http://www.mozilla.org/en-US/firefox/new/
https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/
Queries
insert into Track (title, rating, len, count, album_id, genre_id) values ('Black Dog', 5, 297, 0, 2, 1)
insert into Track (title, rating, len, count, album_id, genre_id) values ('Stairway', 5, 482, 0, 2, 1)
insert into Track (title, rating, len, count, album_id, genre_id) values ('About to Rock', 5, 313, 0, 1, 2)
insert into Track (title, rating, len, count, album_id, genre_id) values ('Who Made Who', 5, 207, 0, 1, 2)
CREATE TABLE "Artist" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, "name" TEXT)
CREATE TABLE "Album" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, artist_id INTEGER,"title"
TEXT)
CREATE TABLE "Genre" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, "name" TEXT)
CREATE TABLE "Track" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, album_id INTEGER, genre_id
INTEGER, len INTEGER, rating INTEGER, "title" TEXT, "count" INTEGER)