# Start MySQL Instance
$ mysql-ctl start
# Connect to the MySQL Instance
$ mysql -u<USERNAME> -p<PASSWORD>
- Fork this repository
- Create a new Cloud9 Workspace
- For every exercise in this Workshop:
- Create a new file named "exercise-n.txt", containing:
- The SQL Statement used, when applicable
- The SQL Statement results, when applicable
- Create a new file named "exercise-n.txt", containing:
- After the first exercise you commit, do a pull request from your master branch. Then, commit and push after each exercise so that we can see your progress.
- Connect to the MySQL instance within your Workspace using your Cloud9 username
- Create a database named
decodemtl_testwithin MySQL - Create a database named
decodemtl_addressbookwithin MySQL
- Remove database named
decodemtl_testfrom MySQL
- Return the list of databases within MySQL
- Create table
Accountfor databasedecodemtl_addressbook - Create table
AddressBookfor databasedecodemtl_addressbook - Create table
Entryfor databasedecodemtl_addressbook - Create table
Testfor databasedecodemtl_addressbook
- Remove table
Testfor databasedecodemtl_addressbook
- Return list of tables within database
decodemtl_addressbook
- Reflect the data model shown in
schema/addressbook_denormalized.pngwithin databasedecodemtl_addressbookAccount.idis a primary auto-increment keyAddressBook.idis a primary auto-increment keyEntry.idis a primary auto-increment keyEntry.typeis an ENUM column permittinghome,workandotherEntry.subtypeis an ENUM column permittingphone,addressandemail
- Create a data model representing a Barn with Chickens 🐣
- This model should provide answers to the following questions:
- How many rooster, hen and chicks existed in the Barn on a specific date
- How many chicks will come to age on a specific date
- Create a data model representing a Hotel with Floors and Rooms 🏨
- This model should provide answers to the following questions:
- The list of Rooms available for rent on a specific date
- The list of Rooms which can be occupied by at least 3 people on a specific date
- The amount of unrentable Rooms (janitor closets, public laundry room, gym, etc.)
- The amount of Rooms having a private Kitchen
- The average amount of windows per Floor
- The amount of Floors having Rooms with carpets
