SQL Server · Beginner

SQL Server & T-SQL Fundamentals

Learn Microsoft SQL Server, the database behind many banks, SACCOs, insurance companies, hospitals and ERP systems in Kenya. Write T-SQL queries and reports, program stored procedures, handle errors and transactions, tune performance, secure and back up databases, and connect SQL Server to Excel and Power BI.

Units
4
Lessons
20
Practice questions
83
Minutes
~300

Start learning today

Try every course free for 7 days. After that, this course is in Learnix Pro (KES 699/month).

Create free account Log in

What you'll learn

Install SQL Server Developer edition and use SSMS

Create tables and write T-SQL queries

Build reports with joins, grouping, CTEs, window functions and PIVOT

Write variables, stored procedures, functions, views and triggers

Use transactions and TRY...CATCH safely

Tune queries with indexes and execution plans

Secure, back up and schedule jobs, and connect Power BI

How the lessons work

Clear explanations

Step-by-step lessons in plain language

21 in this course

Worked examples

Real code and examples you can copy and run

20 in this course

Quick checks

Test your understanding as you go

60 in this course

Fill the blank

Recall the key commands and syntax

20 in this course

Hands-on workspace

A practical task at the end of every lesson

20 in this course

Syllabus

  1. 1.1

    Why SQL Server?

    Where SQL Server is used, its editions, and how T-SQL relates to standard SQL.

  2. 1.2

    Installing SQL Server & SSMS

    Install SQL Server Developer edition and SQL Server Management Studio, connect, and create your first database.

  3. 1.3

    Tables, Data Types & Schemas

    Choose SQL Server data types (nvarchar, decimal, datetime2, bit, uniqueidentifier), use IDENTITY and organise tables into schemas.

  4. 1.4

    Insert, Update, Delete, TOP & OUTPUT

    T-SQL data changes, returning affected rows with OUTPUT, and paging with OFFSET/FETCH.

  5. 1.5

    Filtering & Built-in Functions

    WHERE filters plus T-SQL string, date and conversion functions: CONCAT, FORMAT, DATEDIFF, DATEADD, EOMONTH, TRY_CONVERT.

  1. 2.1

    Joins, Including Self-Joins

    INNER, LEFT and self-joins: employees with departments, managers and payslips.

  2. 2.2

    Grouping & Summary Reports

    GROUP BY, HAVING, ROLLUP for subtotals, and STRING_AGG for lists.

  3. 2.3

    CTEs, Subqueries & Recursive Org Charts

    Write readable step-by-step queries with WITH, correlated subqueries, and recursive CTEs for hierarchies.

  4. 2.4

    Window Functions for Reports

    Rank staff, compute running totals and month-on-month changes with ROW_NUMBER, RANK, SUM OVER and LAG.

  5. 2.5

    CASE & PIVOT: Reshaping Data for Reports

    Label rows with CASE, build conditional totals, and turn rows into columns with PIVOT (and conditional aggregation).

  1. 3.1

    Variables, IF and WHILE

    Write T-SQL scripts with variables, conditions, loops and temporary tables.

  2. 3.2

    Stored Procedures

    Package business operations as parameterised stored procedures that apps and jobs can call safely.

  3. 3.3

    User-Defined Functions & Views

    Reuse calculations with scalar and table-valued functions, and simplify reporting with views.

  4. 3.4

    Triggers & Audit Trails

    Record who changed what and when with AFTER triggers and the inserted/deleted tables, or with temporal tables.

  5. 3.5

    Transactions & TRY…CATCH

    Make multi-step changes all-or-nothing and handle errors properly with XACT_ABORT, TRY…CATCH and THROW.

  1. 4.1

    Indexes & Execution Plans

    Clustered vs non-clustered indexes, covering indexes with INCLUDE, and reading execution plans in SSMS.

  2. 4.2

    Logins, Users, Roles & Permissions

    Control access with logins and database users, roles, schema permissions and EXEC-only access to procedures.

  3. 4.3

    Backups, Restores & SQL Agent Jobs

    Full, differential and log backups, recovery models, restoring safely, and scheduling jobs with SQL Server Agent.

  4. 4.4

    Connecting Excel & Power BI to SQL Server

    Pull live SQL Server data into Excel and Power BI, use views as clean sources, and refresh reports automatically.

  5. 4.5

    Project: A SACCO Loans Database

    Design and implement a SACCO members, savings and loans database in SQL Server with procedures, audit and reports.

Earn a verifiable certificate

Finish every lesson and pass the 20-question final exam (70% to pass). Each certificate has a unique number anyone can check online.

Get started

Helping with:

🍪 We use essential cookies to keep you signed in, protect your account and remember your settings. We don't use advertising or tracking cookies. Read our Privacy Policy.