The Wise Owl logo (an owl and the company name)

Our training courses

Other training resources

Our training venues

Why we are different

Advanced SQL Course (2 days)

Random Wise Owl trainer headshot
Sam (one of our 6 Wise Owl trainers)

Find the right course for you

All UK prices exclude VAT

124 Google
5-star reviews

362 attributed
reviews

Topics covered on this course

  • Stored procedures

    Subtopics

    1. Creating stored procedures
    2. Executing stored procedures
    3. System stored procedures
  • Variables

    Subtopics

    1. Declaring variables
    2. SET versus SELECT
    3. Tricks with variables
    4. So-called global variables
  • Parameters and return values

    Subtopics

    1. Passing parameters
    2. Default values / WHERE clauses
    3. Output parameters
    4. Using RETURN
  • Scalar functions

    Subtopics

    1. What they are
    2. Writing user-defined functions
    3. Worked examples
    4. Pros and cons of scalar functions
  • Testing conditions

    Subtopics

    1. IF / ELSE statement
    2. Using CASE where possible
  • Looping

    Subtopics

    1. Syntax of WHILE
    2. Breaking out of a loop
  • Error-handling

    Subtopics

    1. Using TRY / CATCH
    2. System error functions
    3. Custom error messages
  • Deleting using SQL

    Subtopics

    1. Ways to drop tables
    2. DELETE versus TRUNCATE
  • Updating data in SQL

    Subtopics

    1. The UPDATE statement
    2. Updating using joins
  • Inserting data

    Subtopics

    1. Making tables (SELECT INTO)
    2. Appending data (INSERT INTO)
    3. Inserting individual rows
  • Creating tables

    Subtopics

    1. Creating tables in SQL
    2. Primary keys and indexes
    3. Adding relationships
  • Transactions

    Subtopics

    1. Beginning a transaction
    2. Committing / rolling back
  • Temporary tables and table variables

    Subtopics

    1. Scope (local versus global)
    2. Using temporary tables
    3. Creating table variables
    4. Pros and cons of each approach
  • Table-valued functions  

    Subtopics

    1. In-line table-valued functions
    2. Mult-statement table-valued functions
  • Derived tables and CTEs

    Subtopics

    1. Using derived tables
    2. Common Table Expressions (CTEs)
    3. Multiple CTEs in a single query
  • Debugging  

    Subtopics

    1. Debugging queries and procedures
    2. Setting breakpoints
  • Dynamic SQL  

    Subtopics

    1. Building up dynamic SQL
    2. Executing dynamic SQL
    3. Disadvantages of dynamic SQL
  • Pivots  

    Subtopics

    1. Assembling data for pivoting
    2. Using PIVOT
    3. Dynamic column headers
  • Triggers  

    Subtopics

    1. Insert, update and delete triggers
    2. Using generated tables (eg INSERTED)
    3. Using INSTEAD OF

Topics marked will be covered if time allows.

PDF (course details) PDF (contents only)

Why Choose Us?

Here are some reasons to choose Wise Owl courses:

In addition, here are some benefits unique to classroom training:

And some benefits specific to online training:

  • Courseware posted to you in advance
  • Separate pre-course check-up included
  • Our clever Wordsworth system means you can use our laptops (and we can see them)

We've been in business over 30 years - we must be doing something right!

Writing Stored Procedures and Advanced SQL Programming course dates

The table below lists the Writing Stored Procedures and Advanced SQL Programming courses that we currently have scheduled (click on one of the tabs to filter the list).

If you can't see the course you want listed, don't despair! If you can muster 3 or 4 people together, it may well be worth organising an onsite course at your office (we'll provide and set up the computers), or else an online course tailored to your needs.

Date(s) Date(s) Duration Venue Price UK times  
Mon/Tue 23-24 November 2026 23-24 Nov 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 07-08 December 2026 07-08 Dec 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 28-29 January 2027 28-29 Jan 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 04-05 February 2027 04-05 Feb 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Tue/Wed 16-17 February 2027 16-17 Feb 2 days London £1,525.00 + VAT 09:30-16:30 Book
Thu/Fri 11-12 March 2027 11-12 Mar 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 08-09 April 2027 08-09 Apr 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Tue/Wed 20-21 April 2027 20-21 Apr 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 03-04 June 2027 03-04 Jun 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 07-08 June 2027 07-08 Jun 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book

Show these times in your country and time zone.

If you can't see the course you want listed, don't despair! If you can muster 3 or 4 people together, it may well be worth organising an onsite course at your office (we'll provide and set up the computers), or else an online course tailored to your needs.

Date(s) Date(s) Duration Venue Price UK times  
Tue/Wed 16-17 February 2027 16-17 Feb 2 days London £1,525.00 + VAT 09:30-16:30 Book

Show these times in your country and time zone.

If you can't see the course you want listed, don't despair! If you can muster 3 or 4 people together, it may well be worth organising an onsite course at your office (we'll provide and set up the computers), or else an online course tailored to your needs.

Date(s) Date(s) Duration Venue Price UK times  
Thu/Fri 04-05 February 2027 04-05 Feb 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Thu/Fri 08-09 April 2027 08-09 Apr 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 07-08 June 2027 07-08 Jun 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book

Show these times in your country and time zone.

If you can't see the course you want listed, don't despair! If you can muster 3 or 4 people together, it may well be worth organising an onsite course at your office (we'll provide and set up the computers), or else an online course tailored to your needs.

Date(s) Date(s) Duration Venue Price UK times  
Mon/Tue 23-24 November 2026 23-24 Nov 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 07-08 December 2026 07-08 Dec 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 28-29 January 2027 28-29 Jan 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 11-12 March 2027 11-12 Mar 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 20-21 April 2027 20-21 Apr 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 03-04 June 2027 03-04 Jun 2 days Online £995.00 + VAT 09:30-16:30 Book

Show these times in your country and time zone.

About half of our courses are created bespoke for a single organisation, and either delivered onsite (usually somewhere in the UK, but we're willing to travel!) or online. For onsite courses we will usually provide and set up the necessary computers free of charge.

There are four main reasons why you might want to book tailored training like this:

  1. If you have 3 or more people, organising custom training will probably be cheaper than booking people individually onto a scheduled course.
  2. You'll be able to choose the content of any training, and be able to pause it for discussions on how you'll use software internally, or ask to take digressions.
  3. You may not be able to travel to our venues, so it might be easier to ask us to travel to you.
  4. You may not be able to make the dates of our published scheduled courses, and want to be able to choose when your training takes place.

If you'd like a quote for how much a tailored course would cost please let us know what you'd like to achieve and we'll get back to you (normally within half a working day).

What other people have said about our SQL training

Here are some comments we've received about our SQL training . You can see all of our 362 reviews here. We would like to sincerely thank the clients whose names are shown below for kindly agreeing to let us share their feedback.

"The course was brilliant - the content was very clear and informative. Special mention to Sam who was great fun and engaging. Would definitely recommend the SQL Intro course."

George Walters

Live Nation (Music) UK Limited

"The class size was ideal. The trainer provided a thoughtful and entertaining experience, and was clearly well prepared. Remotely signing in was seamless. I needed proper training on SQL, having had to self-teach for several months."

Alexander Mason

Capel Manor College

"Really good learning pace. Everyone kept up to speed, even when helping anyone who was stuck. Very insightful for the potential use of other support software alongside SQL."

Sam Ohren

Liquid Logic (System C)

"I love getting consulting or private lessons because we can schedule the hours due to the time zone difference (note: I live in Los Angeles). Also, we are able to cover a lot more in a short period. The draw back of private lessons versus a class setting is sometimes students ask really good questions that one might not think of…to help one formulate an understanding of the topics better. I’m a previous student. However, I originally learned about the class from Wise Owl You Tube VBA tutorials. Wise owl has very structured course material and exercises that is very good…especially from a student learner point of view."

Mark Tzeng

Mark Tzeng

"The trainer was great, and created a really good environment for learning and discussion. Open, friendly and warm. Really good trainer and the content was delivered in an engaging and thoughtful way. The content and manuals are already proving useful. Thanks"

Stephen Sermon

Wythenshawe Community Housing Group (WCHG)

"Course was excellent, the trainer was brilliant, patient, kind and un phased by my constant questions! "

Lara Thompson

Marshall Wace (MWAM) LLP

About this Writing Stored Procedures and Advanced SQL Programming course

Click on one of the tabs below to see the given information about this SQL course.

Learning to write SQL involves two things.  First, you need to learn how to write SELECT statements to interrogate your corporate database (including joining tables, setting criteria and grouping data).  For this our two-day Introduction to SQL course is ideal.  This is where most people choose to stop.

However, SQL is so much more than just the SELECT statement.  Our advanced SQL course will teach you how to program in SQL, including:

  • Creating and running stored procedures (programs in SQL), including passing parameters

  • Creating your own user-defined functions

  • Inserting, updating and deleting rows and tables

  • Working with temporary tables and table variables

  • Creating Common Table Expressions (CTEs)

You should only consider attending this course if you already understand how to select data in SQL (including joining tables).

Pre-requisites

You should only attend this course if you have either attended our two-day introduction to SQL course or if you are comfortable creating queries using SQL.  The course shows how to write the dialect of SQL used by Microsoft (called T-SQL), using SQL Server Management Studio as a development environment.

What you'll need to bring

If you book on a classroom course, the only thing you need to bring to the course is ... yourself! We even provide a notepad and a suprisingly nice pen for you to take notes with.

For online training you'll need two things:

  1. A good internet connection (otherwise you'll have a frustrating time); and
  2. A second screen (a requirement, not a nice-to-have!)

You can see full details of our online course requirements here.

For classroom training, you won't need a computer - we (obviously) will provide that. However, you're welcome to use your own laptop if you prefer, providing that you have the correct software installed.

For online training you will need a computer, but you won't need to have any software installed.  This is because you'll use Windows Remote Desktop to connect to our computers using our whizzy Wordsworth online training system, and these computers will have all of the necessary files and software installed.

When you book a place

If you book a place on one of our courses:

  • For classroom courses we will send out a joining email. That's it!
  • For online courses we will get in touch to organise a half-hour pre-course check to iron out any connection problems before the course (rather than during it). We will also ask you whether you want to receive a printed copy of the course manual (and post this to you if you do).

Whatever type of course you book, we will also send you out a reminder a few days before the course is due to take place - not that (we hope) you'll have forgotten!

After the course

After the course finishes you'll receive a digital certificate proving your attendance (we will gladly send a paper copy on request also).

We don't have any formal arrangement for answering questions after the course, but if you get stuck on something and email your trainer they should (and nearly always do!) respond as quickly as their training schedule allows.

FAQs (Frequently Asked Questions)

Click on any heading below to learn more!

Hidden
Hidden

What other SQL courses can I take?▼

Here is a list of all of the SQL courses that we run:

Course name Days
Introduction to SQL 2 days
Advanced SQL (this course) 2 days
Fast track SQL 3 days

What courses do you have related to this one?▼

You might like to consider invesigating these related courses:

Related course Days Level
Introduction to SQL 2 days Introduction
Reporting Services 2 days Introduction
Introduction to SSIS 2 days Introduction

What are your venues for your classroom SQL courses?▼

We run our scheduled classroom training courses in the following venues:

Venue Details
SQL training in London We run our courses in London from the LandMark offices in Bevis Marks, right in the middle of the City (and close to Liverpool Street mainline station).
SQL training in Manchester We run our courses in Manchester from the Holiday Inn business centre, which is a few minutes' walk from Piccadilly station.

Booking 2 or more places? Ask about discounts:

Or ask about tailored courses at your site or online!

This page has 0 threads Add a new post

Head office

Kingsmoor House

Railway Street

GLOSSOP

SK13 2AA

London

Elementa Workspace

6 Bevis Marks

LONDON

EC3A 7BA

Manchester

c/o Holiday Inn

25 Aytoun Street

MANCHESTER

M1 3AE

Google reviews star logo

© Wise Owl Business Solutions Ltd 2026. Registered in England and Wales: company number 05110386.

End of small page here