COVID-19: Choose between our familiar (but now socially distanced) classroom training courses and our excellent new live online courses.
Classroom training -  Advanced SQL

Classroom Training

Advanced SQL

Classroom training course - online version also available

£750 + VAT for most venues (£895 + 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:Thu 26 November 2020
  • Advanced SQL course timesTime:10.00-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).

"Good trainer; 10/10 for content, knowledge & helpfulness. Good communication/responses to my challenges and good reviews from our company."

Jay Parmar (Retail Insight (RI))

"Enjoyed the pace, content, manuals & exercises. Great!"

Deji Benson (Amigo Loans)

"Very informative classes and the teacher was able to answer my questions and explain with various examples how to accomplish this. Fellow colleague recommended the course."

Jack Wright (Brooksby Melton College)

"Excellent as always."

Lisa De Prudhoe (DataQ Ltd)

"(Intro Power BI course) Excellent pace for 2 days. Plenty of interaction and humour. Great lunch breaks. (DAX course) Excellent course. Very well delivered on a "tricky" topic which could have sent me slightly mad. Great pace of delivery. This is the first time I felt I could do the same course again! (Advanced Power BI course) Excellent delivery of a new course. Quick measures were very useful after the DAX course (a good compliment)."

John Pelan (Coloplast Ltd)

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
Thu/Fri 26-27 November 2020 2 £750 Book places
Tue/Wed 08-09 December 2020 2 £895 Book places
Thu/Fri 14-15 January 2021 2 £750 Book places
Thu/Fri 25-26 February 2021 2 £895 Book places
Tue/Wed 16-17 March 2021 2 £750 Book places
Thu/Fri 06-07 May 2021 2 £750 Book places
Tue/Wed 01-02 June 2021 2 £895 Book places
Thu/Fri 22-23 July 2021 2 £750 Book places
Date(s) Venue
26/11
08/12
14/01
25/02
16/03
06/05
01/06
22/07

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