WiseOwl Training - Established 1992 Wise Owl Training

Established May 1992
30 years in business
Wise Owl Training
30 years in business
See 478 reviews for our classroom and online training
Classroom training -  Advanced SQL

Classroom Training

Advanced SQL

Classroom training course - online version also available

£950 + VAT for most venues (£1,095 + VAT for London)

2 days

If you already know how to write SELECT statements in SQL, maybe it's time to find out how to program in SQL with our advanced course! Learn how to create stored procedures (including passing parameters to them), write your own user-defined functions, work with temporary tables and table variables and much more.

Course details

  • Locations for Advanced SQL coursesPossible locations:London, Manchester, Online
  • Next Advanced SQL course locationNext classroom course:Tue 21 June 2022
  • Advanced SQL course timesTime:09:30-16:30

Course Contents

The contents of this course are as follows:

Stored procedures

  • Creating stored procedures
  • Executing stored procedures
  • System stored procedures

Variables

  • Declaring variables
  • SET versus SELECT
  • Tricks with variables
  • So-called global variables

Parameters and return values

  • Passing parameters
  • Default values / WHERE clauses
  • Output parameters
  • Using RETURN

Scalar functions

  • What they are
  • Writing user-defined functions
  • Worked examples
  • Pros and cons of scalar functions

Testing conditions

  • IF / ELSE statement
  • Using CASE where possible

Looping

  • Syntax of WHILE
  • Breaking out of a loop

Error-handling

  • Using TRY / CATCH
  • System error functions
  • Custom error messages

Deleting using SQL

  • Ways to drop tables
  • DELETE versus TRUNCATE

Updating data in SQL

  • The UPDATE statement
  • Updating using joins

Inserting data

  • Making tables (SELECT INTO)
  • Appending data (INSERT INTO)
  • Inserting individual rows

Creating tables

  • Creating tables in SQL
  • Primary keys and indexes
  • Adding relationships

Transactions

  • Beginning a transaction
  • Committing / rolling back

Temporary tables and table variables

  • Scope (local versus global)
  • Using temporary tables
  • Creating table variables
  • Pros and cons of each approach

Covered if time allows If time

Table-valued functions

  • In-line table-valued functions
  • Mult-statement table-valued functions

Derived tables and CTEs

  • Using derived tables
  • Common Table Expressions (CTEs)
  • Multiple CTEs in a single query

Covered if time allows If time

Debugging

  • Debugging queries and procedures
  • Setting breakpoints

Covered if time allows If time

Dynamic SQL

  • Building up dynamic SQL
  • Executing dynamic SQL
  • Disadvantages of dynamic SQL

Covered if time allows If time

Pivots

  • Assembling data for pivoting
  • Using PIVOT
  • Dynamic column headers

Covered if time allows If time

Triggers

  • Insert, update and delete triggers
  • Using generated tables (eg INSERTED)
  • Using INSTEAD OF

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.

Why Choose Us?

Sample customer feedback

Our thanks to everyone who agreed to share their thoughts (note that some of these reviews may be for our online courses).

"Found the course very, very useful."

Katie Cawley (Cobalt Housing)

"Loved the course and the content, it was carried out at a good pace and was interesting. Wise Owl has previously been used by the business for training courses."

Victoria Hardy (Argos Ltd)

"Excellent course, both content and delivery. Very impressed with trainer's knowledge and use of practical examples, as well as his willingness to explore useful areas outside the normal course syllabus."

Jack Looman (Crown Commercial Service)

"Experienced, friendly & approachable trainer, constantly checking if every one okay and good. Content appropriate. Small class, everyone got enough attention. Delivery; right speed, not too fast/slow. Unlimited supply of tea/coffee/biscuits. Colleagues recommendation."

Kin Chung Ow (Department for Levelling Up, Housing and Communities (DLUHC, ex MHCLG))

"Very good course, with a knowledgeable trainer. Thank you."

Mark Mullett (Frimley Health NHS Foundation Trust)

There are lots more where these came from (or just refresh this page to change the quotes shown).

Scheduled Advanced SQL training dates

Here are the classroom Advanced SQL courses we have scheduled for the next 3 months:

Dates Days Venue Price Booking
Tue/Wed 21-22 June 2022 2 £950 Book places
Mon/Tue 18-19 July 2022 2 £950 Book places
Tue/Wed 20-21 September 2022 2 £950 Book places
Thu/Fri 17-18 November 2022 2 £950 Book places
Date(s) Venue
21/06
18/07
20/09
17/11

All prices exclude VAT. If you can't see the dates you want, ask us about running onsite SQL training at your offices (we'll even provide and set up the computers).

Related Courses

Introduction to SQL

Basic

2 day course

Reporting Services RECOMMENDED

Introduction

2 day course

Introduction to SSIS

Introduction

2 day course

Other SQL training resources

SQL exercises

SQL exercises

Our advanced SQL exercises are based on simple, easy-to-understand databases, as you can see for yourself!

View SQL exercises

SQL videos

SQL videos

Although we firmly believe people learn best from people, we've also published a range of SQL tutorial videos online.

View Selecting data in SQL, SQL Server 2016, Advanced SQL (programming) or SQL Server 2017 videos

SQL skills assessment

SQL skills assessment

You can see how well you know SQL relative to others by taking one of our skills assessment tests online.

View Test your SQL skills skills assessment tests

SQL blogs

SQL blogs

Take a few minutes to see what blogs we've published on SQL on our website.

View SQL blogs

This page has 0 threads Add post