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)

Shaun (one of our 7 Wise Owl trainers)

Find the right course for you

Over 50 Google
5-star reviews

 

541 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.

Get a PDF of the course contents

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).

Date(s) Date(s) Duration Venue Price Times  
Mon/Tue 03-04 February 2025 03-04 Feb 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 10-11 February 2025 10-11 Feb 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 03-04 March 2025 03-04 Mar 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 10-11 March 2025 10-11 Mar 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 03-04 April 2025 03-04 Apr 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Tue/Wed 08-09 April 2025 08-09 Apr 2 days London £1,525.00 + VAT 09:30-16:30 Book
Mon/Tue 14-15 April 2025 14-15 Apr 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 08-09 May 2025 08-09 May 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Tue/Wed 13-14 May 2025 13-14 May 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 20-21 May 2025 20-21 May 2 days London £1,525.00 + VAT 09:30-16:30 Book
Mon/Tue 02-03 June 2025 02-03 Jun 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 16-17 June 2025 16-17 Jun 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 24-25 June 2025 24-25 Jun 2 days London £1,525.00 + VAT 09:30-16:30 Book
Thu/Fri 03-04 July 2025 03-04 Jul 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 14-15 July 2025 14-15 Jul 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 14-15 August 2025 14-15 Aug 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 01-02 September 2025 01-02 Sep 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 15-16 September 2025 15-16 Sep 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 23-24 September 2025 23-24 Sep 2 days London £1,525.00 + VAT 09:30-16:30 Book
Thu/Fri 02-03 October 2025 02-03 Oct 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 13-14 October 2025 13-14 Oct 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 21-22 October 2025 21-22 Oct 2 days London £1,525.00 + VAT 09:30-16:30 Book
Mon/Tue 03-04 November 2025 03-04 Nov 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Tue/Wed 11-12 November 2025 11-12 Nov 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 25-26 November 2025 25-26 Nov 2 days London £1,525.00 + VAT 09:30-16:30 Book
Mon/Tue 15-16 December 2025 15-16 Dec 2 days Online £995.00 + VAT 09:30-16:30 Book

If you can't see the course you want listed above, 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 Times  
Tue/Wed 08-09 April 2025 08-09 Apr 2 days London £1,525.00 + VAT 09:30-16:30 Book
Tue/Wed 20-21 May 2025 20-21 May 2 days London £1,525.00 + VAT 09:30-16:30 Book
Tue/Wed 24-25 June 2025 24-25 Jun 2 days London £1,525.00 + VAT 09:30-16:30 Book
Tue/Wed 23-24 September 2025 23-24 Sep 2 days London £1,525.00 + VAT 09:30-16:30 Book
Tue/Wed 21-22 October 2025 21-22 Oct 2 days London £1,525.00 + VAT 09:30-16:30 Book
Tue/Wed 25-26 November 2025 25-26 Nov 2 days London £1,525.00 + VAT 09:30-16:30 Book

If you can't see the course you want listed above, 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 Times  
Mon/Tue 03-04 February 2025 03-04 Feb 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 03-04 March 2025 03-04 Mar 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Thu/Fri 03-04 April 2025 03-04 Apr 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Thu/Fri 08-09 May 2025 08-09 May 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 02-03 June 2025 02-03 Jun 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Thu/Fri 03-04 July 2025 03-04 Jul 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 01-02 September 2025 01-02 Sep 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Thu/Fri 02-03 October 2025 02-03 Oct 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book
Mon/Tue 03-04 November 2025 03-04 Nov 2 days Manchester £1,150.00 + VAT 09:30-16:30 Book

If you can't see the course you want listed above, 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 Times  
Mon/Tue 10-11 February 2025 10-11 Feb 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 10-11 March 2025 10-11 Mar 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 14-15 April 2025 14-15 Apr 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 13-14 May 2025 13-14 May 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 16-17 June 2025 16-17 Jun 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 14-15 July 2025 14-15 Jul 2 days Online £995.00 + VAT 09:30-16:30 Book
Thu/Fri 14-15 August 2025 14-15 Aug 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 15-16 September 2025 15-16 Sep 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 13-14 October 2025 13-14 Oct 2 days Online £995.00 + VAT 09:30-16:30 Book
Tue/Wed 11-12 November 2025 11-12 Nov 2 days Online £995.00 + VAT 09:30-16:30 Book
Mon/Tue 15-16 December 2025 15-16 Dec 2 days Online £995.00 + VAT 09:30-16:30 Book

If you can't see the course you want listed above, 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.

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 Advanced SQL course

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

"Our trainer was friendly and personable and delivered the course well. We have used Wise Owl as a training provider in the past and have found the course content and delivery to a high standard. Would and have recommended to others. Will be booking members of my team on a variety of courses with Wise Owl in the coming weeks."

Chris Waddington

Ultimate Products Global Sourcing (UPGS)

"Really helpful and knowledgeable trainer who made the course and content interesting and engaging. Extremely helpful."

Benjamin Nutter

Hilti (GB) Ltd

"Our trainer was engaging and informative, and led the course at the right pace. He had a good understanding of when the group needed a break (especially on the second day of the course which took place on Friday!), and was attentive and responsive to any questions."

Ollie Jacob

Ministry of Housing, Communities & Local Government (MHCLG)

"I thoroughly enjoyed the advanced sql course. I had attended the basic sql course in October and this course was a great continuation on the topics learnt. I picked up lots of new and useful skills that I will be able to transfer over into my daily work, which has drastically improved since the basic course. My trainer was superb also, extremely knowledgeable on every topic covered and his passion really came through. He answered all the questions we asked over the 2 days with great insight and knowledge and was really helpful over the duration of the course. I have really enjoyed both courses and would definitely recommend Wise Owl to anyone who requires training in the future."

Cameron Daulby

Ifor Williams Trailers Ltd

"Well planned and presented."

Rob Cook

Live Nation (Music) UK Limited

"I was really impressed with the trainer who was knowlegable, articulate and engaging."

Chris Webb

UK Research & Innovation (UKRI)

About this Writing Stored Procedures and Advanced SQL Programming course

Click on one of the tabs below to see the given information about the 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:

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 Bishopsgate, 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.
This page has 0 threads Add a new post

Head office

Kingsmoor House

Railway Street

GLOSSOP

SK13 2AA

London

Landmark Offices

99 Bishopsgate

LONDON

EC2M 3XD

Manchester

Holiday Inn

25 Aytoun Street

MANCHESTER

M1 3AE

© Wise Owl Business Solutions Ltd 2025. All Rights Reserved.

End of small page here
Please be aware that our website uses cookies!
I'm OK with this Tell me more ...