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
SELECTstatements to retrieve information from single or multiple tables. - Utilise
WHEREclauses 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
JOINoperations. - Apply aggregate functions such as
COUNT,SUM,AVG,MIN, andMAX. - Understand and apply the
GROUP BYandHAVINGclauses. - 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)
data was personalised to our organisations
Vincent Long - ASSMANG PTY LTD
Course - T-SQL Fundamentals with SQL Server Training Course
personalised to our understanding and data
Vincent Long - ASSMANG PTY LTD
Course - Business Intelligence with SSAS
The training was well structured and interactive
kgotla Moncho - Martin Engineering Africa
Course - MS 20761 : Querying Data with Transact SQL
The instructor brought his A game again as he superbly took my staff through the customized training with expert timing, knowledge, support, and rapport with my staff.