Full star Half star Star PDF
Advanced · 2 Days · $990 incl GST

Advanced SQL Queries Course

Advanced SQL Queries is our 2-day advanced SQL course, taught live by experienced SQL trainers in classes of up to 10. You learn to write stored procedures and functions, break complex problems into smaller queries and protect your data when you change it in Microsoft SQL Server. Join Online Live from anywhere in Australia, or in our Sydney and Melbourne classrooms.
4.88 / 5 from 450 student reviews Microsoft Partner - Dynamic Web Training Classroom · Online Live Australia wide

About the Advanced SQL Queries Course

Advanced SQL Queries is our 2-day advanced SQL course ($990 inc. GST, 12 CPD hours). You can join Online Live from anywhere in Australia or come to our Sydney or Melbourne classroom, in a class of up to 10.

The course picks up where SQL Essentials ends. You work through practical scenarios with your trainer, writing and testing the code yourself. Advanced SQL Queries is the second of our three SQL courses, and when you book it with SQL Essentials as our SQL Training Package, you save $220.

Learning Outcomes

After this course, you will be able to:

  • Save tasks you repeat as procedures and functions you can run with one command
  • Apply your own business rules to label, group and convert data
  • Rank results and find the top performers in each group
  • Break a complex question into smaller queries that build on each other
  • Find and fix errors in your SQL code
  • Record every change to important tables automatically
  • Make sure a set of changes either completes in full or not at all

Who Should Do This Course?

This course suits people who already write SQL queries and want to do more with them, including analysts, report writers, developers and database support staff.

Prerequisites

You should be comfortable writing queries that filter, sort, group and join tables. Our SQL Essentials course teaches you everything you need.

Advanced SQL Queries Course Details

$990 incl GST per person
  • Duration2 Days
  • CPD Hours12 hours
  • LevelAdvanced
  • Class Size10 max · 5 avg
  • Study modesClassroom or Online Live
  • Course Times 9.00am to 5.00pm approx Classroom (local time) or Online Live (AEST/AEDT)

Pay Later available ?

Class Dates

Advanced SQL Queries course dates

December 2026
10-11
Dec
Thu-Fri · 10-11 Dec 26
Online Live · Instructor-led
January 2027
21-22
Jan
Thu-Fri · 21-22 Jan 27
Online Live · Instructor-led
February 2027
04-05
Feb
Thu-Fri · 04-05 Feb 27
Classroom · Melbourne
18-19
Feb
Thu-Fri · 18-19 Feb 27
Online Live · Instructor-led
March 2027
15-16
Mar
Mon-Tue · 15-16 Mar 27
Classroom · Melbourne
22-23
Mar
Mon-Tue · 22-23 Mar 27
Online Live · Instructor-led
April 2027
22-23
Apr
Thu-Fri · 22-23 Apr 27
Online Live · Instructor-led
27-28
Apr
Tue-Wed · 27-28 Apr 27
Classroom · Melbourne
May 2027
17-18
May
Mon-Tue · 17-18 May 27
Online Live · Instructor-led
June 2027
07-08
Jun
Mon-Tue · 07-08 Jun 27
Classroom · Melbourne
17-18
Jun
Thu-Fri · 17-18 Jun 27
Online Live · Instructor-led
July 2027
20-21
Jul
Tue-Wed · 20-21 Jul 27
Classroom · Melbourne
September 2027
02-03
Sep
Thu-Fri · 02-03 Sep 27
Classroom · Melbourne
No dates match your selected filter

Looking for Advanced SQL Queries dates?

There are currently no scheduled dates matching your selected filter, but we'd love to assist. Get in touch with our team to discuss your individual training needs or corporate group requirements, and we'll explore available options with you.

Bundle & Save

Training Packages

You save $220 2 courses · 4 days

SQL Training Package

$1,760 incl GST
Value $1,980 · save $220

Pay later available ?

Course Content

What the Advanced SQL Queries course covers

Unit 1: Setting up SQL

  • Setting up the Editor
  • Setting up Databases
  • Testing, Type Qualifications & Arguments
  • IF an object EXISTS
  • ‘type’ qualifications
  • ‘type’ arguments of the functions
  • Building the SQL Database
  • Creating the Database
  • Creating the Tables
  • Inserting the Data
  • SQL Schema
  • The Database Schema
  • Import Table Wizard
  • RESTORE the Databases

Unit 2: Data Definition Language (DDL)

  • Commonly used DDL statements
  • Using CREATE TABLE
  • Understanding Temporary Tables
  • CREATE Local Temporary Tables
  • CREATE Global Temporary Tables
  • Differences Between DELETE & TRUNCATE TABLE
  • Using DELETE
  • Using TRUNCATE TABLE
  • Creating a VIEW

Unit 3: Stored Procedures & Functions

  • Understanding Functions and Stored Procedures
  • Understanding a User Defined Function (udf)
  • Creating a Scalar-Valued Function
  • The Random Number Generator
  • Using the Random Number Generator
  • Using INSERT INTO
  • Using UPDATE
  • Creating a VIEW
  • What is a User Stored Procedure (usp)
  • Procedures to Invoke CALL Functions
  • Creating a User Stored Procedure (usp)
  • Stored Procedure with Default Parameters
  • Generating Stored Procedures to Rebuild the Orders Table
  • Wrapping Stored Procedures
  • Manipulating Strings With Scalar Functions
  • Creating an Inline ‘Table-Valued’ Function
  • Using a Multi-Statement Table-Valued Function

Unit 4: Local & Global variables

  • What are variables?
  • Understanding Data Variables
  • Understanding @variable datatypes
  • Strings
  • Numeric
  • Date/Time
  • Understanding Global variables
  • Examples of SQL Global Variables
  • Using the TRANCOUNT global variable
  • Using the ROWCOUNT global variable
  • Using the VERSION global variable
  • Understanding the ERROR global variable

Unit 5: Debugging SQL Code

  • Useful debugging keyboard shortcuts
  • How to Debug a Procedure (usp)
  • How to Debug a Function (udf)
  • Commencing the debugging process
  • Viewing the Locals window
  • Inserting a Breakpoint

Unit 6: Common Conversion Functions

  • Defined datatypes ranked in order of precedence
  • Working with CAST() with Dates
  • Working with CAST() to Concatenate
  • Working with CONVERT()
  • Working with TRY_CAST and TRY_CATCH
  • Working with COALESCE
  • Working with DATENAME()

Unit 7: Logic Functions

  • Analysing IIF versus CASE statements
  • Working with an IIF Function
  • Working with CASE

Unit 8: Row Functions & Operators

  • Using OVER
  • Using OVER PARTITION BY
  • Using multiple columns in the PARTITION BY
  • Using ROLLUP
  • Using ORDER BY ROW
  • Using ORDER BY RANGE

Unit 9: Ranking Functions

  • Defining Common Ranking Functions
  • Understanding ROW_NUMBER
  • Understanding RANK
  • Understanding DENSE_RANK
  • Understanding NTILE
  • Using ROW_NUMBER
  • Using RANK
  • Using DENSE_RANK
  • Using NTILE

Unit 10: Using Subqueries

  • Overview of Subqueries
  • Using a Subquery in WHERE
  • Using Subqueries in SELECT
  • Using CAST() in a Subquery
  • Building a Function with Subquery
  • Understanding Correlated Subqueries

Unit 11: Common Table Expressions (CTE)

  • Overview of Common Table Expressions (CTE)
  • Understanding Non-Recursive CTE’s
  • Using a Non-Recursive CTE
  • Using the CTE - ORDER BY
  • Declaring variables for the CTE definition
  • Using a CTE Without Parameters
  • Using a CTE With a Calculated Definition
  • Using a CTE with Multiple Query Expressions
  • Using a Recursive Common Table Expression (CTE)
  • Demonstrating a Simple Recursive CTE
  • Using a CTE for a Hierarchy

Unit 12: Triggers

  • Understanding Triggers
  • Creating Trigger Tables
  • Creating Table Triggers INSERT, UPDATE & DELETE
  • Maintaining the Employee and Audit Tables
  • Using Action Triggers
  • Rebuilding The Employees & Audit Tables

Unit 13: Transaction Processing

  • Understanding Transaction Processing
  • Integrating Transaction Statements
  • Working with BEGIN TRANSACTION
  • Working with COMMIT & ROLLBACK
  • Using the ERROR Global Variable
  • Creating the Table & User Stored Procedure for Transaction
  • Using the TRANCOUNT Global Variable

Unit 14: Cursors

  • Methods of Iteration
  • Using WHILE loops
  • What is a CURSOR
  • Using a CURSOR with FETCH
  • Using a Cursor to iterate over a table
  • Using a Cursor to iterate over all databases

Unit 15: Workshop Exercises

  • Creating a Workplace Table
  • Creating Stored Procedures
  • Creating an Inventory Orders Table
  • Creating a Failed Order Log Table
  • Creating a Stored Procedure to Log a Failed Order
  • Creating a Stored Procedure for a New Order
  • Creating Stored Procedures to Test New Orders
  • Building a udf_Spend_Boundary
  • Working with CAST() to convert Numeric
  • Working with CAST() to ROUND Numeric
  • COALESCE_NULL_Names
  • Using SCROLL with a CURSOR
  • Using PIVOT Tables
  • Referring to Other Databases
SQL Essentials Course
SQL Essentials
(4.83 out of 5)
SQL for Data Analysis Course
SQL for Data Analysis
(4.85 out of 5)
Excel for Data Analysis Course
Excel for Data Analysis
(4.85 out of 5)
Power BI Essentials Course
Power BI Essentials
(4.85 out of 5)
Student Reviews

What students say about this course

(5.0)
09 November, 2026

Fills in a lot of gaps that the data analytics course brings up. Strongly suggest doing this first before the analytics course.

Jessica Z
(5.0)
09 November, 2026

Matthew was a great instructor. Each step was thoroughly explained and he really took the time to go through all the steps.

Jennifer L
(4.7)
03 August, 2026

Thank you Matthew it was a strong teaching performance, distinguished by real depth rather than surface-level syntax coverage, which modeled real development including real mistakes rather than a pre-polished demo. Neither materially detracted from a genuinely well-paced, well-motivated course. Thank you

Joe N
(5.0)
20 July, 2026

An great opportunity to learn sql and enhance my knowledge. Mark has been wonderful teaching experience and covered the material with detailed explanation. Great opportunity to learn from Mark. THANK YOU MARK.

Suryaprakash M
(5.0)
04 June, 2026

Mark was an outstanding trainer for the SQL Advanced Queries course. He made challenging topics feel approachable and always took the time to ensure everyone was comfortable with the material. His examples were practical and relevant, and his teaching style created a positive and encouraging learning environment. I genuinely appreciated his patience, clarity and depth of knowledge. I am finishing the course with a much stronger understanding of advanced SQL. Thanks again, Mark!

Francis P
(4.6)
08 December, 2025

It was a great training. Matthew explained each concept clearly and made sure everyone understood before moving on to the next one. The second day's topics were a bit heavy for me but still could follow along with Matthew's guidance..It might be more effective to structure the course separately for developers and analysts, depending on the different needs. I understand there is already a separate course for analysts.

Aleu
(5.0)
08 December, 2025

Matt not only provided a very comprehensive and helpful course material and training workflow, but also have provided a very detailed explanation, examples for each topic, and he also always make sure that everyone follows along and won't move to the next topic until everyone is happy and have understood it. He also makes sure that if you have questions, he will not just explain it to you, but also show / run the query for us to see what the actual result will be. I think using examples that from the previous students that he had questions with also helped in the flow of the training as it gives more realistic scenarios rather than just sticking with basic / book based examples that most of the other instructors would normally take as an approach. Thanks Matthew

Danilo T
(5.0)
17 November, 2025

Mark was very knowledgeable, went at the perfect pace, had multiple ways to execute queries and showed us how to check which was the best fit for the job. He taught us how to think on our own and apply to our circumstances not just copy along. Fantastic course!

Lissa M
(5.0)
25 September, 2025

This SQL course was very beneficial for me personally in new techniques needed in my job especially for reporting and stored procedures. The instructor was very knowledgable and engaging. Excellent course.

David M
(5.0)
25 September, 2025

Matthew G. is very professional, he is very knowledgeable about the course and i love the way that he has different ways to explain it if you don't get it in the first time.

Alen M
(5.0)
15 September, 2025

Matthew again was very comprehensive and well organized. He personalised the examples and made sure we understood each section. A real credit to the industry

Mitch P
(5.0)
15 September, 2025

The course was well instructed; Matthew was thorough and well-spoken as he demonstrated and broke down methods and techniques.

Ronan V
(5.0)
28 July, 2025

Mathew is great instructor. He made complicated concepts in advanced SQL interesting. There are only two of us in the class so all questions are being answered clearly and in details. He also shared valuable real world experience and tips.

Anonymous
(5.0)
10 June, 2025

good course. Great tutor! Since Mark has a high school teaching background explains complex things in layman terms which is amazing! thanks :)

Harshini G
(5.0)
26 May, 2025

I have participated in previous SQL courses, and this one is by far the best. From the trainer to the content everything was well informed and insightful. I have learnt so much from this course and feel my confidence with using SQL has increased ten folds.

Coralee R
Read all course reviews
Common Questions

Frequently asked questions

How do I know if I'm ready for Advanced SQL Queries?

If you can write a query that filters, sorts, groups and joins tables, you're ready. If those skills are new to you, start with SQL Essentials.

What is the difference between SQL Essentials and Advanced SQL Queries?

SQL Essentials teaches you to write queries that find and summarise data. Advanced SQL Queries teaches you to build on those queries. You save them as stored procedures and functions, solve complex problems in steps and protect your data when you change it.

How does Advanced SQL Queries help me at work?

You can automate the reports and data tasks you run often, and solve problems that a single query can't. Your queries also become easier for colleagues to read, reuse and maintain.

How practical is Advanced SQL Queries?

Very practical. You write and run the code yourself, working through realistic business scenarios with your trainer. You leave with working examples you can adapt to your own databases.

What comes after Advanced SQL Queries?

If you want to use SQL for reporting, SQL for Data Analysis is the next step. It shows you how to prepare, model and summarise data for analysis.

SQL Training Package

Book both SQL Essentials and Advanced SQL Queries course together and
SAVE $220


For more info please

Call 1300 888 724

View Package Details

Contact Us

Enquire now

Fill in your details to have a training consultant contact you to discuss your training needs. We offer public, on-site and workplace IT and software training services across Australia. Complete the form or call us during business hours (8.30am to 5pm AEST/AEDT) and our friendly customer service team will respond within 1 business day.

Contact us

Level 11, 32 Walker Street, North Sydney NSW 2060
8.30am to 5pm AEST/AEDT, Monday to Friday

1300 888 724 info@dynamicwebtraining.com.au ·Enquire online

Fields marked with * are required. We respond within 1 business day.

Our Training Locations

Train in-class or Online Live, Australia wide

Classroom + Online Live

Sydney

Level 11, 32 Walker Street, North Sydney NSW 2060

Classroom + Online Live

Melbourne

Level 12, 379 Collins Street, Melbourne VIC 3000

Online Live

Brisbane

All courses facilitated in Online Live format or In-house workplace training, QLD

Online Live

Canberra

All courses facilitated in Online Live format or In-house workplace training, ACT

Online Live

Adelaide

All courses facilitated in Online Live format or In-house workplace training, SA

Online Live

Perth

All courses facilitated in Online Live format or In-house workplace training, WA