This is a Node.js playground for SQL queries
- Clone the repository
- Run
npm installto install the dependencies - Follow instructions in POPULATE.md to populate the database with the data from the CSV files
Note: Use the
users.csvfile to populate theuserstable
- Run
npm startornpm run devto start the server - Edit the
index.jsfile to write your SQL queries
Note: You could also use the MySQL Workbench to run the queries. To open the MySQL Workbench, run
mysql -u root(add the-pflag if you have a password). To exit the MySQL Workbench, runexit. Before running the queries, remember to select the database by runningUSE test_db;