SQL Language – Advanced Techniques and Programming in SQL Server (SQL2)

Databases, Microsoft SQL

This course extends your knowledge of advanced programmability in SQL Server. Using Transact-SQL (T-SQL) you will create and manage views, author user-defined functions, and build stored procedures and triggers to automate and secure data processing.

You will study advanced data techniques such as CTEs and recursive queries, window functions for scoring, and transaction control and locking to improve reliability and performance, with hands-on use of SQL Server Management Studio for debugging and tuning.

THIS TRAINING COURSE WILL HELP YOU:

  • Use advanced SQL techniques and program in SQL Server
  • Work efficiently with large datasets and optimize databases
  • Gain hands-on experience with Management Studio and T-SQL
  • Streamline database tasks to reduce time to results

WHO SHOULD ATTEND?

  • Intermediate to advanced database users wanting advanced SQL skills
  • DBAs and developers who manage and build SQL Server databases
  • IT professionals working in data administration, development, or analysis

COURSE LOCATION AND AVAILABLE DATES



Choose whether to attend in person in our classroom or join online. You can select your preferred format during registration. Learn more about hybrid training.

Public courses are usually delivered in Czech, but this course is also available in English. We can arrange private training for your team online, at your premises or in our classrooms, and tailor the content to your needs.

For groups of around 4 or more participants, private training can already be comparable in price to booking individual places on a public course. Send us your requirements and we’ll recommend the best format and provide an exact quote.

Request training in English

Course content:

Hide details
  • Variables and working with them
    1. Scalar variables
    2. Table-valued variables
    3. Temporary tables vs. table variables
    4. Data type conversion
    5. Dynamic SQL generation
  • Views
    1. Creating and modifying views, working with views
    2. Inserting data via views and integrity constraints
    3. Indexing views to speed processing
  • Common Table Expressions (CTE)
    1. Simplifying complex queries using CTEs
    2. Recursive queries
  • Flow-control statements
    1. Branching with IF and ELSE
    2. Loops using WHILE
    3. Script control (RETURN, BREAK, CONTINUE, GOTO)
    4. IIF and CASE functions
  • Stored procedures
    1. Stored procedure basics
    2. Parameterized stored procedures
    3. Using return values
    4. Stored procedure security
    5. Debugging stored procedures
  • User-defined functions
    1. Scalar functions
    2. Inline functions
    3. Table-valued functions
  • Query performance tuning
    1. Execution plans
    2. Using indexes
  • Data scoring
    1. Windowing and partitioning
    2. ROW_NUMBER function
    3. RANK and DENSE_RANK functions
    4. NTILE function
  • Transactions and locking
    1. Transaction processing fundamentals
    2. BEGIN, COMMIT, ROLLBACK, and SAVE TRANSACTION
    3. Nested transactions
    4. Locks and blocking, impact on concurrency
    5. Lock management and locking hints
    6. Transaction isolation levels
  • Error handling
    1. Using TRY...CATCH blocks
    2. RAISERROR and @@ERROR handling
    3. Debugging in SQL Server Management Studio
  • Triggers
    1. AFTER triggers
    2. INSTEAD OF triggers
    3. DDL and logon triggers
  • Cursors
    1. Introduction to cursor-based processing
    2. Impact of cursors on SQL Server performance
Prerequisites:
Basic SQL knowledge equivalent to an introductory SQL course (SQL1).
Recommended previous course:
SQL – Basics of Querying and Data Manipulation in SQL Server (SQL1)
Schedule:
3 days (9:00-17:00)
Price per person:
580.00 € ( 701.80 € incl. 21% VAT)

Training and learning environment