Get in Touch
 Duration 14 hours

Course Outline

Recap: SQL Functions and Expressions

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

Aggregating data using aggregate functions

  • Aggregate functions
  • Handling NULL values with aggregate functions
  • The GROUP BY clause
  • Grouping data by various columns
  • Filtering aggregated data using the HAVING clause
  • Multidimensional data grouping with ROLLUP and CUBE operators
  • Identifying summaries using GROUPING
  • The GROUPING SETS operator
  • Creating crosstabs using PIVOT

Retrieving data from multiple tables

  • Different types of joins
  • Table aliases
  • INNER JOIN
  • LEFT, RIGHT, and FULL OUTER JOINs

Set operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Applicable contexts for subqueries
  • Single-row and multi-row subqueries
  • Single-row subquery operators
  • Aggregate functions within subqueries
  • Multi-row subquery operators - IN, ALL, ANY
  • Recursive subqueries

Analytic functions

  • Purpose and usage
  • Window functions and window types
  • Partitions
  • Ranking functions
  • LAG and LEAD functions
  • FIRST_VALUE and LAST_VALUE functions
  • STRING_AGG function
  • Statistical functions

Requirements

Participants are expected to possess a solid working knowledge of fundamental SQL and Microsoft SQL Server, including the capability to:

  • Compose basic SELECT queries to extract data from single or multiple tables.
  • Employ WHERE clauses alongside standard filtering conditions.
  • Utilise common SQL functions, covering character, numeric, and date operations.
  • Understand fundamental data types and conversion processes.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Comprehend and utilise GROUP BY and HAVING.
  • Have hands-on experience in database management, data analysis, or reporting.

As an advanced-level course, participants should already be at ease with core SQL concepts before delving into more complex subjects like subqueries, advanced aggregation, set operators, and analytic or window functions.

Audience

This course is tailored for data analysts and reporting application developers.

Number of participants


Price per participant

Testimonials (4)

Provisional Upcoming Courses (Require 5+ participants)

Related Categories