This file is for storing and sharing of my solutions to homework 1 of the course Principles of Database Management Systems at HCMIU.
[X] Problem 1: 15 points [X] Problem 2: 7 points [X] Problem 3: 7 points [X] Problem 4: 7 points [X] Problem 5: 7 points [X] Problem 6: 7 points
Notice: only the source file containing the commands and comments are uploaded. Any binary files will be omitted (the ones that store the database itself and is opened together with sqlite in .db format by convention).
From a binary file storing the database, to generate a source file using .dump:
sqlite> .output /absolute/path/to/somefile.sql`
sqlite> .dump
sqlite> .quit
or using a shorter syntax
$ sqlite3 someDB.db .dump > somefile.sql
Reverting the process
$ sqlite3 someDB.db < somefile.sql