Some SQL Exercises
Note: The comments made in _extra files are not mine and I did not proof read them so take them
with a grain of salt.
Each Database folder contains these folders
_scripts #Contains scripts for setting up the db and filling it with base data.
Exercises #Contains sql files with comments describing the excercise.
Solutions #Contains the solution to said exercise files.
Optional
_extra #Extra information that can be handy. (I couldn't be arsed transforming it to an exercise)
- Have MS SQL Management Studio (SSMS)
- Fork or download this repo.
- Choose a database you want to work in.
- Navigate to _scripts
- Double click on the sql file Create_{db_name}.sql or drag it in SSMS.
- If the folder contains a .csv file(s), set the @InitialPath variable in the sql script. The value should be the path of _scripts.
- Press F5 or press the execute button.
- Navigate to Exercises and pick a file you want to solve.
Note: dont forget to switch databases by either using the 'use' command or by using the dropdown list.



