The original file comes from this repository. The data must be normalised into 3NF.
The frontend script can be used to perform most actions on the database. You can view the usage by typing this command from the console:
./petshop.sh
You can apply the script using this command:
mysql -u root -p < create.sql
mysql -u root -p < upgrade-v2.sql
- A pet can have multiple owners
- New column for checking if neutered - assume existing pets aren't neutered
- Price - the value of the animals
- Existing data must be preserved