Course : SQL Server, advanced SQL programming

versions 2022 to 2012

Practical course - 2d - 14h00 - Ref. PAV
Price : 1600 CHF E.T.

SQL Server, advanced SQL programming

versions 2022 to 2012


Required course

In this course, you'll learn about advanced SQL expressions and operators, and how to use them effectively to solve complex data extraction problems. You'll learn how to group, analyze, sample and retrieve hierarchical data.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class
Disponible en anglais, à la demande

Ref. PAV
  2d - 14h00
1600 CHF E.T.




In this course, you'll learn about advanced SQL expressions and operators, and how to use them effectively to solve complex data extraction problems. You'll learn how to group, analyze, sample and retrieve hierarchical data.


Teaching objectives
At the end of the training, the participant will be able to:
Writing subqueries and combined queries
Use decision grouping functions
Implement analytical and windowing functions
Writing recursive queries
Use complex update commands with the MERGE instruction

Intended audience
Developers, administrators and advanced users who need to implement complex SQL Server queries.

Prerequisites
Good knowledge of the basics of the SQL language, or knowledge equivalent to that provided by the course " SQL Server, SQL programming " (ref. PSQ).

Practical details
Hands-on work
This course alternates the presentation of concepts and syntax with numerous application exercises.
Teaching methods
Participants will be able to retrieve the examples and practical exercises, as well as the common thread. Web and bibliographical references are provided for further information on each topic.

Course schedule

1
Reminder of multi-table queries

  • Set operators UNION, INTERSECT and EXCEPT.
  • Reminder of internal and external joints.
  • Master subqueries in different parts of SQL statements.
  • Nested query correlations.
  • Intra-join operations with APPLY (CROSS, OUTER) for XML functions and fragments.
Hands-on work
Case studies of queries involving several tables.

2
Individual operators

  • Usefulness of the Cartesian product (CROSS JOIN).
  • Relational division.
  • Decision-making grouping with CUBE, ROLLUP and GROUPING SET.
  • Analytical and windowing functions: scheduling and aggregation with OVER and WINDOW clauses.
  • Crosstabs with PIVOT and UNPIVOT.
  • Sample data with TABLESAMPLE.
Hands-on work
Solving relational split cases. Use of decision grouping functions. Use analytical functions.

3
Table expressions

  • Common Table Expression (CTE) or non-persistent view.
  • Use of the WITH keyword to specify a CTE.
  • The different tree querying techniques.
  • Solving graph problems with recursive queries.
  • Use tally tables to solve complex queries.
Hands-on work
Express queries in the form of recursive CTE.

4
Writing data

  • Update and delete data with subqueries.
  • Use of extended update and delete syntax with joins.
  • Insert, update or delete operations based on the results of a join, the MERGE operator.
  • Retrieve added, modified or deleted data, using the OUTPUT clause.
Hands-on work
Write complex update commands using the MERGE statement and subqueries.


Customer reviews
4,2 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.
MICKAEL N.
25/06/26
3 / 5

The content is dense and there’s little opportunity for practical work, as everything has already been done and we don’t get to do the exercises ourselves.
MICHEL S.
25/06/26
5 / 5

Very good
LEA H.
25/06/26
3 / 5

I think it’s a real shame we don’t do more exercises. The exercises have already been done, which means we don’t get a chance to practise (30 minutes of free practice).What’s more, the course is very intensive: lots of features are covered (some better known than others), leaving little time to take in the new material.




This programme is an original creation, developed by the teaching teams at ORSYS Formation. Any reproduction, representation, adaptation or use, in whole or in part, without the prior written authorisation of ORSYS, is strictly prohibited. ORSYS reserves the right to take any action necessary to protect its intellectual property rights.

Dates and locations

Dernières places
Date garantie en présentiel ou à distance
Session garantie
From 27 to 28 August 2026 *
FR
Remote class
Registration
From 29 to 30 October 2026 *
FR
Remote class
Registration
From 17 to 18 December 2026
FR
Remote class
Registration
From 18 to 19 March 2027
FR
Remote class
Registration
From 18 to 19 March 2027
EN
Remote class
Registration
From 20 to 21 May 2027
FR
Remote class
Registration
From 20 to 21 May 2027
EN
Remote class
Registration
From 17 to 18 June 2027
FR
Remote class
Registration
From 26 to 27 August 2027
FR
Remote class
Registration
From 26 to 27 August 2027
EN
Remote class
Registration
From 4 to 5 November 2027
FR
Remote class
Registration
From 2 to 3 December 2027
FR
Remote class
Registration
From 2 to 3 December 2027
EN
Remote class
Registration

REMOTE CLASS
2026 : 27 Aug., 29 Oct., 17 Dec.

2027 : 18 Mar., 18 Mar., 20 May, 20 May, 17 June, 26 Aug., 26 Aug., 4 Nov., 2 Dec., 2 Dec.



This programme is an original creation, developed by the teaching teams at ORSYS Formation. Any reproduction, representation, adaptation or use, in whole or in part, without the prior written authorisation of ORSYS, is strictly prohibited. ORSYS reserves the right to take any action necessary to protect its intellectual property rights.