SQL for Data Analytics
Query, clean and analyse relational data with SQL. Learn database fundamentals, filtering, aggregation, joins, subqueries, CTEs, window functions and practical analysis projects.
About this course
Use SQL to ask better questions of your data
SQL is a core tool for working with relational databases. It allows analysts to retrieve information, filter records, combine tables, calculate summaries and prepare datasets for analysis. This five-week course progresses from database fundamentals to practical querying and analytical techniques.
Explore PostgreSQL and MySQL environments, learn how to structure readable queries and practise increasingly advanced SQL concepts. The programme covers data retrieval, transformation, aggregation, joins, database integrity and performance basics.
What you will learn
- Database concepts, relational and non-relational databases and SQL tools.
- PostgreSQL/MySQL setup, schemas, tables, views and data imports.
- SELECT, aliases, DISTINCT, sorting and result pagination.
- Filtering with WHERE, BETWEEN, IN, LIKE and NULL handling.
- Aggregate functions, GROUP BY, HAVING and data functions.
- INNER, LEFT, RIGHT and FULL OUTER JOINs.
- Subqueries, CTEs, UNION and window functions.
- INSERT, UPDATE, DELETE, constraints, indexes and views.
- Transactions, COMMIT, ROLLBACK and ACID concepts.
Practical projects
Apply SQL to employee database analysis, sales performance queries, customer segmentation, time-based reporting and data-cleaning projects.
Who should attend?
Aspiring data analysts, business analysts, students, database beginners and professionals who want practical database-querying skills.
Duration: 5 weeks. Live teaching is delivered through WhatsApp.
This course includes
- 5 weeks of live, instructor-led classes
- Classes on Zoom
- Private WhatsApp group for your cohort
- Hands-on projects with feedback
- Class recordings on your dashboard
- Verifiable certificate of competence
Curriculum
30 modules · 138 lessons
1Introduction to Databases & SQL5 lessons
- What databases are and why they matter
- What SQL is used for
- Types of databases (Relational vs non-Relational)
- Popular SQL engines (PostgreSQL, MySQL, SQL Server, Oracle)
- Client tools & environments (pgAdmin, DBeaver, SSMS)
2SQL Installation &Environment Setup5 lessons
- Installing PostgreSQL / MySQL
- Connecting to a database
- Database schemas and namespaces
- Tables vs views vs materialized views
- Understanding rows, columns, and records
3Importing SQL Tables Using GUI Tools6 lessons
- Purpose of GUI-based table import
- Importing tables using database management tools
- Mapping columns during import
- Common GUI import errors and fixes
- Data type mismatch errors
- Verifying successful table creation
4SQL Query Structure (Core Foundation)5 lessons
- SQL statement order
- SELECT–FROM–WHERE–ORDER BY–LIMIT pattern
- Mandatory vs optional clauses
- Writing readable SQL (formatting & indentation)
- Order of SQL execution (logical processing order)
5SELECT Statement Fundamentals4 lessons
- Selecting all columns (SELECT *)
- Selecting specific columns
- Best practices for column selection
- Avoiding unnecessary SELECT *
6Column Aliases (AS)4 lessons
- Purpose of column aliases in SQL
- Renaming columns in query output
- Creating aliases without using AS
- Using aliases to improve query readability
7DISTINCT & Data Uniqueness5 lessons
- Removing duplicate values
- DISTINCT on single columns
- DISTINCT on multiple columns
- How SQL defines row uniqueness
- Common mistakes with DISTINCT
8ORDER BY – Sorting Query Results4 lessons
- Purpose of the ORDER BY clause
- Sorting query results in ASC and DESC order.
- Default sorting behavior
- Best practices for sorting query results
9LIMIT and OFFSET4 lessons
- Restricting query results
- Sorting by multiple columns
- OFFSET and result pagination
- Practical use case for LIMIT
10SQL Comments5 lessons
- Why comments are important for readability and maintenance
- Single-line comments - -
- Multi-line comments using /* */
- Commenting out parts of a query for debugging
- When to avoid excessive commenting
11Filtering Data with WHERE5 lessons
- Purpose of WHERE clause
- Filtering numeric, text, and date data
- Comparison operators (=, !=, >, =, <=)
- Logical operators (AND, OR, NOT)
- Using parentheses for logic control
12Advanced Filtering Operators5 lessons
- BETWEEN
- IN and NOT IN
- LIKE and wildcards
- ILIKE (case-insensitive search)
- Pattern matching best practices
13Handling NULL Values5 lessons
- Understanding NULL
- IS NULL vs IS NOT NULL
- Why = NULL fails
- NULLs in sorting
- NULL-safe logic patterns
14Aggregate Functions6 lessons
- COUNT
- SUM
- AVG
- MIN and MAX
- Aggregates with NULL values
- Aggregate vs non-aggregate columns
15GROUP BY & HAVING5 lessons
- Why GROUP BY exists
- Grouping data correctly
- GROUP BY rules
- HAVING vs WHERE
- Common GROUP BY errors
16Mathematical & String Functions6 lessons
- Arithmetic operations in SQL
- ROUND, CEILING, FLOOR
- CONCAT, LENGTH, UPPER, LOWER
- SUBSTRING
- TRIM and text cleaning
- Practical data-cleaning use cases
17Date & Time Functions6 lessons
- DATE, TIME, TIMESTAMP
- CURRENT_DATE & CURRENT_TIMESTAMP
- EXTRACT (year, month, day)
- Date arithmetic
- Formatting dates
- Time zone basics
18Joins – Combining Tables7 lessons
- Why joins are necessary
- INNER JOIN
- LEFT JOIN
- RIGHT JOIN
- FULL OUTER JOIN
- Join conditions & keys
- Avoiding Cartesian products
19Advanced Join Concepts5 lessons
- Joining multiple tables
- Self joins
- Joining on multiple columns
- Filtering joins correctly
- Join performance considerations
20Subqueries3 lessons
- What subqueries are
- Subqueries in WHERE
- Correlated vs non-correlated subqueries
21Common Table Expressions (CTEs)3 lessons
- WITH clause
- Improving query readability
- CTEs vs subqueries
22Set Operations3 lessons
- UNION
- UNION ALL
- When to use set operations
23Window Functions5 lessons
- Introduction to window functions
- OVER()
- PARTITION
- ROW_NUMBER()
- RANK()
24Data Modification Statements5 lessons
- INSERT INTO
- INSERT multiple rows
- UPDATE
- DELETE
- TRUNCATE vs DELETE
25Importing Tables Using SQL Queries3 lessons
- Creating table using CREATE TABLE
- Importing data using INSERT INTO
- Bulk inserts and multi-row insert
26Database Constraints6 lessons
- PRIMARY KEY
- FOREIGN KEY
- UNIQUE
- NOT NULL
- CHECK constraints
- Why constraints matter
27Indexes & Performance Basics3 lessons
- What indexes are
- How indexes improve performance
- When indexes hurt performance
28Views & Materialized Views2 lessons
- Creating views
- Use cases for views
29Transactions & ACID Concepts3 lessons
- What transactions are
- COMMIT & ROLLBACK
- ACID properties
30Real-World SQL Projects5 lessons
- Employee database analysis
- Sales performance dashboard queries
- Customer segmentation
- Time-based reporting
- Data cleaning projects
How classes work
- Enrol & pay securelyPay with Paystack or Flutterwave. Your access is confirmed instantly.
- Join your private WhatsApp groupRight after payment you get the invite for your cohort's group, where class times and links are shared.
- Attend live classesLearn live on Zoom. Missed a class? Recordings appear on your dashboard.
- Build projects & get certifiedComplete the course to receive a certificate anyone can verify online.
Learner reviews
Write a reviewNo reviews yet for this course. Be the first to share your experience.
