1300 888 724 8.30am to 5:30pm AEST (Mon-Fri) info@dynamicwebtraining.com.au

Advanced SQL Queries Course

(4.88 out of 5) 309 Student Reviews

About the Course

During this 2-day Advanced SQL course, you will learn more advanced aspects of the SQL language, and a better understanding of how SQL databases work. You will learn about good database design, improve your ability to retrieve, manipulate and analyse data using SQL, learn about more creating more efficient queries, and how to combine multiple queries.

The course will focus on Microsoft SQL Server. However, the skills you learn in this Advanced SQL Queries course is not limited to just Microsoft SQL, it is also suitable for learning more about PostgreSQL, MySQL & MariaDB and Oracle among others.

Who should do this course?

This course is suitable for anyone seeking to extend their knowledge of the SQL Language, as well as a better under understanding of how SQL databases work.

Prerequisites

This course assumes a basic understanding of SQL prior to attending. Participants should have completed our SQL Essentials course or have equivalent skills.

Course Details

  • $990 incl GST
  • Duration: 2 Days
  • Max. Class Size: 10
  • Avg. Class Size: 5
  • Study Mode: Classroom Online Live
  • Level: Advanced
  • Times: 9.00am to 5.00pm approx
  • Download Course PDF
  • Enquire Book Now
    Pay later

Course Dates

  • Sydney Class Dates

    Book Now

    Level 11, 32 Walker Street, North Sydney , NSW 2060

    02 - 03 Jun 22 Thu - Fri Online Live
    09 - 10 Jun 22 Thu - Fri Classroom
    20 - 21 Jun 22 Mon - Tue Online Live
    04 - 05 Jul 22 Mon - Tue Classroom
    14 - 15 Jul 22 Thu - Fri Online Live
    01 - 02 Aug 22 Mon - Tue Online Live
    04 - 05 Aug 22 Thu - Fri Classroom
    22 - 23 Aug 22 Mon - Tue Online Live
    01 - 02 Sep 22 Thu - Fri Classroom
    15 - 16 Sep 22 Thu - Fri Online Live
    26 - 27 Sep 22 Mon - Tue Classroom
    04 - 05 Oct 22 Tue - Wed Online Live
    19 - 20 Oct 22 Wed - Thu Online Live
    24 - 25 Oct 22 Mon - Tue Classroom
    07 - 08 Nov 22 Mon - Tue Online Live
    24 - 25 Nov 22 Thu - Fri Classroom
    01 - 02 Dec 22 Thu - Fri Online Live
    19 - 20 Dec 22 Mon - Tue Classroom
    21 - 22 Dec 22 Wed - Thu Online Live
  • Melbourne Class Dates

    Book Now

    Level 12, 379 Collins Street, Melbourne , VIC 3000

    23 - 24 May 22 Mon - Tue Classroom
    02 - 03 Jun 22 Thu - Fri Online Live
    16 - 17 Jun 22 Thu - Fri Classroom
    20 - 21 Jun 22 Mon - Tue Online Live
    14 - 15 Jul 22 Thu - Fri Online Live
    18 - 19 Jul 22 Mon - Tue Classroom
    01 - 02 Aug 22 Mon - Tue Online Live
    18 - 19 Aug 22 Thu - Fri Classroom
    22 - 23 Aug 22 Mon - Tue Online Live
    12 - 13 Sep 22 Mon - Tue Classroom
    15 - 16 Sep 22 Thu - Fri Online Live
    04 - 05 Oct 22 Tue - Wed Online Live
    13 - 14 Oct 22 Thu - Fri Classroom
    19 - 20 Oct 22 Wed - Thu Online Live
    07 - 08 Nov 22 Mon - Tue Classroom
    07 - 08 Nov 22 Mon - Tue Online Live
    01 - 02 Dec 22 Thu - Fri Online Live
    08 - 09 Dec 22 Thu - Fri Classroom
    21 - 22 Dec 22 Wed - Thu Online Live
  • Brisbane Class Dates

    Book Now

    Level 6, 371 Queen Street, Brisbane , QLD 4000

    02 - 03 Jun 22 Thu - Fri Online Live
    20 - 21 Jun 22 Mon - Tue Online Live
    11 - 12 Jul 22 Mon - Tue Classroom
    14 - 15 Jul 22 Thu - Fri Online Live
    01 - 02 Aug 22 Mon - Tue Online Live
    22 - 23 Aug 22 Mon - Tue Online Live
    07 - 08 Sep 22 Wed - Thu Classroom
    15 - 16 Sep 22 Thu - Fri Online Live
    04 - 05 Oct 22 Tue - Wed Online Live
    19 - 20 Oct 22 Wed - Thu Online Live
    03 - 04 Nov 22 Thu - Fri Classroom
    07 - 08 Nov 22 Mon - Tue Online Live
    01 - 02 Dec 22 Thu - Fri Online Live
    21 - 22 Dec 22 Wed - Thu Online Live
    11 - 12 Jan 23 Wed - Thu Classroom
    09 - 10 Mar 23 Thu - Fri Classroom
  • Canberra Class Dates

    Book Now

    All courses facilitated in, Online Live format ,

    02 - 03 Jun 22 Thu - Fri Online Live
    20 - 21 Jun 22 Mon - Tue Online Live
    14 - 15 Jul 22 Thu - Fri Online Live
    01 - 02 Aug 22 Mon - Tue Online Live
    22 - 23 Aug 22 Mon - Tue Online Live
    15 - 16 Sep 22 Thu - Fri Online Live
    04 - 05 Oct 22 Tue - Wed Online Live
    19 - 20 Oct 22 Wed - Thu Online Live
    07 - 08 Nov 22 Mon - Tue Online Live
    01 - 02 Dec 22 Thu - Fri Online Live
    21 - 22 Dec 22 Wed - Thu Online Live
  • Adelaide Class Dates

    Book Now

    All courses facilitated in, Online Live format ,

    02 - 03 Jun 22 Thu - Fri Online Live
    20 - 21 Jun 22 Mon - Tue Online Live
    14 - 15 Jul 22 Thu - Fri Online Live
    01 - 02 Aug 22 Mon - Tue Online Live
    22 - 23 Aug 22 Mon - Tue Online Live
    15 - 16 Sep 22 Thu - Fri Online Live
    04 - 05 Oct 22 Tue - Wed Online Live
    19 - 20 Oct 22 Wed - Thu Online Live
    07 - 08 Nov 22 Mon - Tue Online Live
    01 - 02 Dec 22 Thu - Fri Online Live
    21 - 22 Dec 22 Wed - Thu Online Live
  • Perth Class Dates

    Book Now

    All courses facilitated in, Online Live format ,

    02 - 03 Jun 22 Thu - Fri Online Live
    20 - 21 Jun 22 Mon - Tue Online Live
    14 - 15 Jul 22 Thu - Fri Online Live
    01 - 02 Aug 22 Mon - Tue Online Live
    22 - 23 Aug 22 Mon - Tue Online Live
    15 - 16 Sep 22 Thu - Fri Online Live
    04 - 05 Oct 22 Tue - Wed Online Live
    19 - 20 Oct 22 Wed - Thu Online Live
    07 - 08 Nov 22 Mon - Tue Online Live
    01 - 02 Dec 22 Thu - Fri Online Live
    21 - 22 Dec 22 Wed - Thu Online Live

Course Units

Expand full topic list

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

See more

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

See more

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

See more

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

See more

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

See more

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

See more

Unit 7: Logic Functions

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

See more

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

See more

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

See more

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

See more

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

See more

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

See more

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

See more

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

See more

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

See more

Related Courses

Course Reviews

(4.30 out of 5) Bernadette C [ 12 May, 2022 ]
This was an excellent course and covered many relevant topics. Mark was very knowledgeable and experienced. Covered many things that I will use in my role.
(4.40 out of 5) Miah W [ 12 May, 2022 ]
The Advanced SQL course is a great step up from the beginner course. It provided more complex functions that can assist with manipulating data in multiple ways. Like the previous course, Mark was a great teacher who speaks clearly and slow enough to absorb the concepts. He is always willing to unpack any questions I had.
(5.00 out of 5) Melissa T [ 09 May, 2022 ]
Mark made something I'd always found difficult to follow easy to understand. It really helped me being able to follow along and do the exercises myself. Mark is the best instructor I've ever had for an IT-related course. 10/10!
(4.80 out of 5) JIE C [ 21 April, 2022 ]
very experienced and knowledgeable instructor, highly recommended. If the course can be extended to more details would be great, of course if it depends on the students' level of experience. I personally would prefer to have further details on queries than programming part, although I still want to know more about programming information too.

Read all course reviews

Enquire Now

Fill in your details to have a training consultant contact you to discuss your training needs.

Your details

Other Ways To Get In Touch

You can also Book Online or call us on 1300 888 724

Back to Top