Data and AI Training

Home | Power BI | Excel | Python | SQL | Generative AI | Visualising Data | Analysing Data

Joining Instructions for SQL Courses

Here is what you need to know and do before the course. To participate in the course, you need a SQL editor and access to the course database. You need to set this up using GitHub Codespaces - detailed instructions below. GitHub Codespaces provides a web version of VSCode, a popular editor. Within that VSCode session, we install the SQL Server mssql extension to connect to the database.

Essential - Please check a few days before the course that you can follow these instructions successfully. We can’t fix any problems on the day. A few attendees have problems due to the IT security policy of their trust. If you find you have these issues, sort this out with your IT team a few days before the course.

Here are steps by step instructions. Note that the user interface may be slightly different to these images below.

In a browser, go to the GitHub website. Sign in if you already have an account, or create a free GitHub account if not.

Click on the “Create new repo” or similar button to see the form below.

github image
Enter a repo name, such as my-sql-course, and ensure this is a public repo. Click on the “Create a new repository button”.

github image
Click on the “creating a new file” link.

github image
Choose a name for the file, such as “first.txt” and enter a line of text then click on the gree “Commit Changes” button.

github image
Click on the “Commit Changes” button.

github image
Congratulations - you have created a new repo and added your first file. Click on the green “Code” button.

github image
Click on the “Codespaces” tab.

github image
Click on the green “Create codespace on main” button.

github image
You are now in a web editor running a popular editor, VSCode. Choose a theme and click on the “<” chevron in the top left to go to the Welcome screen

github image
In the Welcome screen, click on the Extensions icon in the Activity bar (the vertical set of icon on the left). Search for mssql, then install the SQL Server (mssql) extension.

github image
Create a new file, and name it with a .sql file type, e.g. test1.sql. A notification at the bottom right of the screen will ask if you want to enable modern development features. Click on the blue “Enable Experiences & Reload” button.

github image
There will now be a new SQL Server icon in the Activity list. Click on this, then click on “Add Connection”. This will bring up a “Connect to SQL Server” form. Enter the connection details provided by the trainer.

github image
You can expand the explorer bar below the connection to view the tables.

github image
Create a new query from the newly created connection - this will open a tab where you can enter a SQL statement.

github image
Enter a simple, SQL statement, press the Play button to execute it, and view the results in the pane below.

github image
Congratulations, you have finished the set up process!