Home | Power BI | Excel | Python | SQL | Generative AI | Visualising Data | Analysing Data
1 day (short version) or 2 days (preferred, full version)
Much of the world’s valuable data is locked away in databases and SQL is the key to unlocking it. This course is for people who need to extract this data into their analyses and projects.
Attendees will be able to write basic SQL statements to extract data from databases and be able to specify exactly what data is required and transform it into the shape needed for their business purposes.
None. This is an introduction course.
Introduction to SQL and Databases. Why is SQL important? SQL s declarative nature. Whetting your appetite a quick demo of what SQL can do and what the course will cover.
Get started with the tools to connect to and query databases such as Azure Data Studio, DBeaver, SSMS. Use these to connect to a database and see its contents (tables, views, stored procedures).
Understand the structure of databases: tables (columns, data types, nullability, cardinality, primary keys) and relationships between tables (common columns, foreign keys, referential integrity).
SQL SELECT Basics. The structure of a simple SELECT statement: the column list, WHERE, ORDER BY and GROUP BY clauses.
Filter data with the WHERE clause. Use the WHERE clause to get exactly the rows that you require from an (often very large) table.
GPOUP BY and aggregations. How to summarise your data (and why this is often useful). Common aggregation functions: e.g. COUNT, SUM, AVG. How to filter data once it is grouped with the HAVING clause.
Some common, useful SQL functions and operations: e.g. ROUND, TRIM. Useful date-related functions (DATEADD, DATEPART, DATEDIFF) and date arithmetic.
Create calculated columns in your SQL statement.