Get in Touch
 Duration 14 hours

Course Outline

Review: SQL Functions and Expressions

  • Functions for characters, numbers, and dates/times
  • Explicit and implicit type conversions
  • Utilization of conversion functions
  • Nested function structures
  • Retrieving the current date and time using various functions
  • Implementation of CASE expressions

Data Aggregation via Aggregate Functions

  • Core aggregate functions
  • Handling NULL values in aggregation
  • The GROUP BY clause
  • Grouping data by different columns
  • Filtering aggregated results using the HAVING clause
  • Multi-dimensional grouping with ROLLUP and CUBE operators
  • Identifying rollup summaries using GROUPING
  • Application of the GROUPING SETS operator
  • Creating cross-tabulations using PIVOT

Data Retrieval from Multiple Tables

  • Various types of joins
  • Use of table aliases
  • INNER JOIN implementation
  • LEFT, RIGHT, and FULL OUTER JOINs

Set Operators

  • UNION
  • UNION ALL
  • INTERSECT
  • EXCEPT

Subqueries

  • Contexts for utilizing subqueries
  • Single-row versus multi-row subqueries
  • Operators for single-row subqueries
  • Incorporating aggregate functions within subqueries
  • Multi-row subquery operators (IN, ALL, ANY)
  • Recursive subqueries

Analytic Functions

  • Application scenarios
  • Window functions and window types
  • Partitioning
  • Ranking functions
  • LAG/LEAD functions
  • FIRST_VALUE/LAST_VALUE functions
  • The STRING_AGG function
  • Statistical functions

Requirements

Candidates are expected to possess a solid practical foundation in basic SQL and Microsoft SQL Server, demonstrated by the ability to:

  • Compose basic SELECT queries to extract data from single or multiple tables.
  • Employ WHERE clauses alongside standard filtering conditions.
  • Utilize common SQL functions, including those for character, numeric, and date operations.
  • Grasp fundamental data types and conversion processes.
  • Execute basic JOIN operations.
  • Apply aggregate functions such as COUNT, SUM, AVG, MIN, and MAX.
  • Interpret and implement GROUP BY and HAVING clauses.
  • Hold prior hands-on experience with database management, data analysis, or reporting.

As this is an advanced-level program, learners should be proficient in core SQL principles before tackling more intricate subjects like subqueries, complex aggregation, set operators, and analytic/window functions.

Audience

The curriculum is tailored for data analysts and developers of reporting applications.

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories