SQL for Data Analysis Training Course

Duration 10 days 21 modules · 65 contact hours
Level Intermediate Certificate on completion
Who attends Data Analyst, Business Intelligence Analyst and others
Fee from USD 2,200 KSh 190,000 for Kenyan organisations
Where 52 cities + online See dates by city
Next start 16 Nov 2026 Course code SD-DS-067

Before you join: Participants should be comfortable using spreadsheets to filter, sort and summarise data, and should understand basic business measures such as totals, percentages, dates and categories.

Dates & prices

Two start dates a month in every city, and live online on weekdays or weekends. Fees are per participant; classroom fees include tuition, materials, lunch and refreshments, and the certificate.

Suggest a date or city

Showing the next six months. Later dates, other cities and private deliveries for your team are available on request.

Course overview

Analysts, reporting teams and operational managers often work with data held in Microsoft SQL Server but depend on extracts prepared by technical colleagues. This creates delays, inconsistent metrics and limited ability to investigate exceptions such as overdue loans, procurement spend variances, beneficiary payment errors or customer-service backlogs. SQL provides a controlled way to retrieve, combine, validate and summarise relational data while retaining a clear record of the logic used.

This intermediate course develops practical Transact-SQL skills for analysing data in Microsoft SQL Server. Participants write queries using joins, aggregations, subqueries, common table expressions, window functions and temporary tables. They learn to manage dates, missing values and duplicate records; create reusable views and stored procedures; interpret execution plans; and apply core security and transaction controls. The course also introduces dimensional modelling, data-quality checks and data preparation for Power BI and other reporting tools.

Instructor-led sessions combine concise technical briefings with worked cases from banking, public administration, retail, healthcare and NGO operations. Participants progressively build an analysis pack from a realistic relational dataset, starting with basic retrieval and ending with validated management reporting queries. They leave with a reusable SQL analysis workbook, query templates, a data-quality checklist and a documented capstone analysis suitable for adapting to their own reporting requirements.

The course suits professionals who already work with structured data and need to write, review or improve SQL queries rather than rely solely on dashboards or spreadsheets.

What you will be able to do

  • Write Transact-SQL queries using filters, expressions, sorting and calculated fields
  • Combine related tables using inner, outer, self and cross joins
  • Produce grouped metrics using aggregate functions, HAVING clauses and conditional aggregation
  • Build reusable analytical queries with CTEs, subqueries, window functions and temporary tables
  • Validate source data through duplicate, null, referential-integrity and outlier checks
  • Interpret SQL Server execution plans and improve query performance using indexes
  • Create governed reporting assets using views, stored procedures, parameters and permissions
  • Present a documented SQL analysis that answers a defined business question

Benefits of attending

For you

  • Reduced dependence on manually prepared data extracts
  • Stronger evidence for analytical findings and recommendations
  • Reusable Transact-SQL patterns for recurring reporting requests
  • Ability to diagnose slow or unreliable SQL queries
  • Documented portfolio analysis for professional discussion

For your organisation

  • Faster production of validated operational and management reports
  • More consistent metric definitions across reporting teams
  • Lower spreadsheet handling risk for sensitive data extracts
  • Earlier detection of duplicates, omissions and data-quality failures
  • Better use of existing Microsoft SQL Server data assets

Course modules

21 modules over 10 days

Participants can use SQL Server Management Studio to inspect databases and run controlled analytical queries.

  • SQL Server database, schema, table and column naming conventions
  • SQL Server Management Studio query windows, results panes and messages
  • Database metadata inspected through sys.tables, sys.columns and INFORMATION_SCHEMA views
  • Data types, nullability and identity columns interpreted for analysis
  • SELECT statement structure and logical query processing order
  • Query batch execution, comments and formatting conventions for readable scripts

Participants can retrieve targeted records using precise filters, expressions and sorting rules.

  • SELECT lists built with aliases, literals and calculated expressions
  • WHERE predicates using comparison, IN, BETWEEN and LIKE operators
  • AND, OR and NOT grouped with explicit Boolean logic
  • NULL values tested correctly using IS NULL predicates
  • ORDER BY clauses applied with multiple business sorting keys
  • TOP, OFFSET and FETCH used for controlled result sampling

Participants can manage data types and conversions without introducing analytical errors.

  • Implicit conversion risks identified between numeric, text and date columns
  • CAST and CONVERT applied to reporting-ready output formats
  • TRY_CAST used to isolate invalid source values safely
  • Decimal precision and scale selected for financial calculations
  • Unicode and non-Unicode character types distinguished for text data
  • Conversion errors investigated through staged diagnostic query patterns

Participants can combine related tables while preserving the intended record population.

  • Primary keys and foreign keys mapped across relational source tables
  • INNER JOIN queries built for matched transaction and reference records
  • LEFT JOIN queries used to identify missing related records
  • FULL OUTER JOIN applied to reconciliation between two datasets
  • Self joins used for manager, hierarchy and duplicate comparisons
  • Join cardinality checked to prevent unintended row multiplication

Participants can calculate grouped measures and apply correct post-aggregation filters.

  • COUNT, SUM, AVG, MIN and MAX calculated by reporting group
  • GROUP BY clauses aligned with selected non-aggregated columns
  • HAVING filters applied after aggregate measure calculation
  • Conditional aggregation built with CASE expressions inside SUM
  • Distinct counts used carefully for customer and transaction populations
  • Ratio metrics protected against division by zero errors

Participants can create transparent business classifications and exception flags in SQL.

  • CASE expressions built for status, banding and exception classification
  • Searched CASE logic ordered to prevent overlapping category assignments
  • COALESCE and ISNULL used for controlled missing-value substitution
  • Business rules translated into explicit SQL decision branches
  • Derived flags created for threshold breaches and missing attributes
  • Classification logic documented through aliases and query comments

Participants can structure multi-step analysis using subqueries and common table expressions.

  • Scalar subqueries used for benchmark and reference values
  • Correlated subqueries applied to record-level comparative analysis
  • EXISTS and NOT EXISTS used for relationship-based filtering
  • Common table expressions separate logical stages of complex queries
  • Multiple CTEs chained for readable analytical transformations
  • Recursive CTEs introduced for organisational and account hierarchies

Participants can calculate rankings, running totals and period comparisons without collapsing detail.

  • OVER clauses define analytical partitions and ordered calculation windows
  • ROW_NUMBER assigns deterministic sequence numbers within business groups
  • RANK and DENSE_RANK distinguish tied performance positions
  • Running totals calculated with SUM window function frames
  • LAG and LEAD compare current records with prior values
  • Percentages of group totals derived using partitioned aggregates

Participants can analyse time-based data using reliable date calculations and reporting periods.

  • DATEFROMPARTS and EOMONTH build standard reporting period boundaries
  • DATEDIFF calculates elapsed days, months and service durations
  • DATEADD shifts reporting windows for comparative period analysis
  • Calendar tables support working-day and fiscal-period reporting
  • Month-to-date and year-to-date measures built with date filters
  • Time zones and datetime precision considered when interpreting event records

Participants can clean and standardise text fields for matching, classification and reporting.

  • TRIM, LTRIM and RTRIM remove unwanted boundary spaces
  • UPPER and LOWER standardise text before comparison operations
  • SUBSTRING, LEFT and RIGHT extract coded field components
  • CHARINDEX and PATINDEX locate patterns within source text
  • CONCAT and CONCAT_WS assemble labelled reporting fields
  • Collation settings considered when comparing case-sensitive text values

Participants can combine and reconcile result sets using SQL set operators.

  • UNION combines compatible result sets while removing duplicate rows
  • UNION ALL preserves duplicate rows for transaction-level analysis
  • INTERSECT identifies records present in both comparison populations
  • EXCEPT isolates records missing from a matched result set
  • Column alignment checked before applying set operation queries
  • Reconciliation outputs labelled with source and comparison status

Participants can stage intermediate data sets for repeatable multi-step analytical work.

  • Local temporary tables created for session-specific intermediate results
  • SELECT INTO used to create staged analytical data sets
  • INSERT statements load controlled records into temporary tables
  • Temporary table indexes added for larger staged query workloads
  • Table variables compared with temporary tables for analytical tasks
  • DROP TABLE statements used to manage temporary object lifecycle

Participants can test analytical data for completeness, validity, consistency and duplication.

  • Null-rate profiling identifies missing mandatory analytical attributes
  • Duplicate detection uses grouping and ROW_NUMBER partition patterns
  • Referential-integrity exceptions identified through anti-join queries
  • Range checks flag impossible values and threshold breaches
  • Reconciliation totals compared across source, staging and output tables
  • Data-quality findings recorded with rule, impact and remediation owner

Participants can create views that provide consistent and reusable analytical data definitions.

  • CREATE VIEW statements package approved reporting query logic
  • Column aliases establish stable business-facing field names
  • View dependencies reviewed before changing underlying source objects
  • Schema binding considered for controlled view and table dependencies
  • Indexed view constraints distinguished from standard view use cases
  • ALTER VIEW scripts maintained for version-controlled reporting changes

Participants can build parameterised stored procedures for controlled report generation.

  • CREATE PROCEDURE statements define reusable report-generation routines
  • Input parameters control date ranges, regions and status filters
  • Default parameter values support common reporting selections
  • Parameter validation prevents invalid date and category requests
  • EXEC execution syntax tested with named parameter values
  • Dynamic SQL risks understood for parameterisation and injection prevention

Participants can apply transaction and error-handling controls to safe data-update scripts.

  • BEGIN TRANSACTION and COMMIT define controlled multi-step updates
  • ROLLBACK restores prior data when validation checks fail
  • TRY and CATCH blocks capture SQL Server runtime errors
  • XACT_STATE determines valid transaction recovery actions after failure
  • THROW returns meaningful error messages to calling processes
  • Read-only analysis separated from approved data correction procedures

Participants can identify common query bottlenecks and propose evidence-based SQL Server improvements.

  • Actual execution plans reveal costly operators and row estimates
  • Clustered and nonclustered indexes matched to query access patterns
  • Table scans and index seeks interpreted within execution plans
  • SARGable predicates written to support efficient index usage
  • Statistics freshness assessed when cardinality estimates appear inaccurate
  • Query rewrites tested against elapsed time and logical reads

Participants can apply core SQL Server access-control principles to analytical data use.

  • Principle of least privilege applied to reporting database access
  • Database users, roles and permissions distinguished in SQL Server
  • GRANT, DENY and REVOKE statements interpreted for object access
  • Sensitive columns identified for restricted reporting and extracts
  • Row-level security concepts considered for regional data access
  • Query outputs reviewed for personally identifiable information exposure

Participants can recognise and query star-schema structures used in reporting and data warehouses.

  • Fact tables distinguished from descriptive dimension tables
  • Grain defined before building measures and joining dimensions
  • Star schemas support consistent filtering and grouped reporting
  • Surrogate keys and business keys compared for analytical joins
  • Slowly changing dimensions introduced for historical attribute reporting
  • Conformed dimensions support comparable measures across subject areas

Participants can prepare documented SQL outputs suitable for controlled dashboard and report use.

  • Reporting views designed with stable fields and clear aliases
  • Query outputs shaped at the appropriate analytical grain
  • Date dimensions prepared for period filtering and trend reporting
  • Numeric measures separated from formatted display values
  • Refresh-friendly queries avoid unnecessary sorting and presentation logic
  • Power BI import and DirectQuery considerations compared for SQL sources

Participants can build, review and present a complete SQL Server analysis answering a defined business question.

  • Business question translated into scope, metrics, filters and assumptions
  • Source tables profiled for relationships, grain and data-quality risks
  • Staged Transact-SQL queries built from joins through final metrics
  • Validation checks reconcile outputs with source totals and exceptions
  • Execution plan reviewed for material performance improvement opportunities
  • Findings presented with query documentation, limitations and recommended actions

Exercises and examples are adapted to each cohort's sectors and roles.

What you take back to work

  1. Transact-SQL analytical query template library
  2. SQL Server data-quality check checklist
  3. Query performance diagnostic worksheet
  4. Parameterized reporting stored procedure template
  5. Dimensional model assessment guide
  6. Documented capstone SQL analysis pack

Who should attend

  • Data Analyst — needs repeatable SQL queries for investigation and reporting
  • Business Intelligence Analyst — prepares trusted datasets for dashboards and management metrics
  • Financial Analyst — reconciles transactions, trends and exceptions from operational systems
  • Reporting Officer — replaces manual extracts with documented reporting logic
  • Database Developer — strengthens analytical Transact-SQL and query-tuning skills
  • Operations Manager — investigates service, process and performance data directly

Skills and tools covered

Transact-SQL queryingRelational data analysisQuery performance tuningData quality checksSQL Server reportingDimensional modelling

Tools and standards

Microsoft SQL Server, SQL Server Management Studio, Transact-SQL, Power BI

How the course runs

Training methodology

The course uses short instructor briefings followed by guided SQL development against realistic relational datasets. Participants analyse cases involving transactions, customer records, service activity and financial reporting, then compare query logic and results with peers. Group exercises address joins, reconciliation, data quality, performance and reporting design. Trainers demonstrate SQL Server Management Studio workflows, query plans and debugging methods. Each participant applies the techniques to a progressive analysis pack and records how the approach can transfer to their own data sources.

Requirements and prerequisites

Participants should be comfortable using spreadsheets to filter, sort and summarise data, and should understand basic business measures such as totals, percentages, dates and categories. Experience reading tables in a database, data warehouse or reporting system is useful. Prior exposure to simple SQL statements such as SELECT and WHERE is helpful, but detailed knowledge of Transact-SQL is not assumed. Participants do not need database administration experience, programming experience, advanced mathematics, Power BI expertise or prior knowledge of data modelling.

A typical training day

08:30 – 10:30First session
10:30 – 10:45Refreshment break
10:45 – 12:30Second session
12:30 – 13:30Lunch and networking
13:30 – 15:00Third session
15:00 – 15:15Refreshment break
15:15 – 16:30Workshop and daily review

Live online deliveries follow the same structure in East Africa Time, with shorter screen blocks and longer breaks.

What the fee includes

  • Instruction by a practitioner facilitator
  • Full course workbook and materials
  • Exercise files, templates and case studies
  • Refreshments and lunch on classroom deliveries
  • Certificate of completion
  • Post-course application plan

Frequently asked questions

You should understand tables, rows, columns and basic spreadsheet analysis. Familiarity with simple SELECT and WHERE statements is helpful, but the course rebuilds core query structure before moving to joins, CTEs and window functions.

Bring a laptop if attending in person, together with any non-sensitive examples of reporting questions you want to discuss. Training databases and required SQL Server tools are provided for the course environment.

It is designed for analysts, reporting professionals, finance staff, BI practitioners and operational managers who need to work directly with SQL Server data. It is not aimed at complete beginners with no experience of structured data.

This course focuses on analysing data with Transact-SQL rather than administering SQL Server infrastructure. It also goes beyond dashboard building by teaching how to prepare, validate and tune the SQL queries behind reporting datasets.

You can use the methods to investigate exceptions, reconcile operational reports, create repeatable extracts and check data quality. The query patterns, validation checklist and documentation approach can be adapted to your own database tables.

Each day runs from 08:30 to 16:30 and provides about 6.5 contact hours. The first part develops core querying and analytical patterns; the later sessions cover performance, governance, reporting design and the final capstone analysis.

Questions about this course?

Ask about dates, fees, group bookings or running it for your team. Our training team replies by email.