Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Character, numeric, and DateTime functions
  • Explicit and implicit data conversion
  • Conversion functions
  • Nested function structures
  • Retrieving the current date and time using various functions
  • CASE expressions

Aggregating data with aggregate functions

  • Core aggregate functions
  • Handling aggregate functions with NULL values
  • The GROUP BY clause
  • Grouping data by varying columns
  • Filtering aggregated results using the HAVING clause
  • Multi-dimensional data grouping via ROLLUP and CUBE operators
  • Identifying summary rows with GROUPING
  • The GROUPING SETS operator
  • Creating crosstabs using PIVOT

Extracting data from multiple tables

  • Varieties of joins
  • Table aliasing
  • INNER JOIN operations
  • LEFT, RIGHT, and FULL OUTER JOIN operations

Set operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Scenarios and locations for using subqueries
  • Single-row and multi-row subqueries
  • Operators for single-row subqueries
  • Incorporating aggregate functions within subqueries
  • Multi-row subquery operators, including IN, ALL, and ANY
  • Recursive subqueries

Analytic functions

  • Purpose and application
  • Window functions and window types
  • Data partitions
  • Ranking functions
  • LAG/LEAD functions
  • FIRST_VALUE/LAST_VALUE functions
  • The STRING_AGG function
  • Statistical functions

Requirements

Candidates should possess a solid working knowledge of fundamental SQL and Microsoft SQL Server, demonstrating the ability to:

  • Construct basic SELECT statements to retrieve information from single or multiple tables.
  • Utilise WHERE clauses along with fundamental filtering conditions.
  • Employ standard SQL functions, including character, numeric, and date-related operations.
  • Comprehend basic data types and type conversion processes.
  • Implement basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Understand and apply the GROUP BY and HAVING clauses.
  • Have hands-on experience with databases, data analysis, or reporting tasks.

As this is an advanced-level course, participants are expected to be confident with core SQL concepts before delving into complex subjects such as subqueries, sophisticated aggregation, set operators, and analytic/window functions.

Target Audience

This course is tailored for data analysts and developers of reporting applications.

Testimonials (4)

Upcoming Courses

Related Categories