Let’s make it work for you
Overview
This course provides more advanced T-SQL knowledge for those who’ve already attended QATSQL. This is not a beginner’s course, and a foundational knowledge of writing T-SQL queries is required. For those without a basic level of T-SQL for reporting, please complete the QATSQL course first.
Prerequisites
Participants should have:
- Experience of writing SQL queries using SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY, and INNER and OUTER JOIN statements.
Target audience
This course is designed for IT professionals writing queries for use with Microsoft SQL Server from SQL 2005 onwards. Non-technical 'power users' will also benefit from the course if they’re comfortable using sophisticated software tools like SQL Server Management Studio.
Learning Outcomes
By the end of this course, learners will be able to:
- Use various table expressions to write queries in a modular way.
- Use advanced forms of GROUP BY, including PIVOT, UNPIVOT, GROUPING SETS, and GROUPING_ID.
- Use window functions to perform ranking operations and to perform comparisons between rows within result sets.
- Use batches, variables, control of flow, loops, conditional operations, and dynamic SQL appropriately.
- Use error handling statements.
- Use transactions and isolation levels in code.
Course Outline
Using Table Expressions
- This module introduces T-SQL expressions which return a valid relational table, typically for further use in the query. You’ll discuss views, inline table-valued functions, multi-statement table-valued functions, derived tables, common table expressions, and temporary tables.
Pivoting and Advanced Grouping
- This module discusses techniques for pivoting data in T-SQL and introduces fundamentals of the GROUPING SETS clause. It also covers the use of GROUP BY ROLLUP and GROUP BY CUBE syntax in SQL Server.
Window Functions
- This module introduces window functions, including ranking, aggregate, and offset functions. It also covers using T-SQL functions, such as ROW_NUMBER, RANK, DENSE_RANK, NTILE, LAG, LEAD, FIRST_VALUE, and LAST_VALUE, to perform calculations against a set, or window, of rows.
Programming with T-SQL
- This module provides a basic introduction to T-SQL programming concepts and objects. It discusses batches, variables, control of flow elements such as loops and conditional operations, and how to create and execute dynamic SQL statements.
Implementing Error Handling
- This module introduces the use of error handlers in T-SQL code, including the difference between compile errors and run-time errors and how errors affect batches. It also examines how to control error handling using TRY/CATCH blocks, the use of the ERROR class of functions, and the use of the new THROW statement.
Transactions and Isolation Levels
- This module introduces the concepts of transaction management in SQL Server. It provides a high-level overview of transaction properties, covering the basics of marking transactions with BEGIN, COMMIT, and ROLLBACK.
Appendix: Subqueries
- This module is provided for additional post-course reading and gives a brief introduction to the concept of subqueries in SQL.
Appendix: Using Set Operators
- This module is provided for additional post-course reading, and introduces the set operators UNION, INTERSECT, and EXCEPT to compare rows between two input sets, along with the APPLY operator, which can be used to execute a user-defined function against every row returned by a query.
Exams and assessments
There are no formal exams included in this course. Participants will complete interactive labs and knowledge checks to reinforce learning outcomes.
Hands-on learning
This course includes:
- Hands-on labs to apply key concepts in a real-world environment.
Frequently asked questions
How can I create an account on myQA.com?
There are a number of ways to create an account. If you are a self-funder, simply select the "Create account" option on the login page.
If you have been booked onto a course by your company, you will receive a confirmation email. From this email, select "Sign into myQA" and you will be taken to the "Create account" page. Complete all of the details and select "Create account".
If you have the booking number you can also go here and select the "I have a booking number" option. Enter the booking reference and your surname. If the details match, you will be taken to the "Create account" page from where you can enter your details and confirm your account.
Find more answers to frequently asked questions in our FAQs: Bookings & Cancellations page.
How do QA’s virtual classroom courses work?
Our virtual classroom courses allow you to access award-winning classroom training, without leaving your home or office. Our learning professionals are specially trained on how to interact with remote attendees and our remote labs ensure all participants can take part in hands-on exercises wherever they are.
We use the WebEx video conferencing platform by Cisco. Before you book, check that you meet the WebEx system requirements and run a test meeting to ensure the software is compatible with your firewall settings. If it doesn’t work, try adjusting your settings or contact your IT department about permitting the website.
How do QA’s online courses work?
QA online courses, also commonly known as distance learning courses or elearning courses, take the form of interactive software designed for individual learning, but you will also have access to full support from our subject-matter experts for the duration of your course.
Once you have purchased the Online course and have completed your registration, you will receive the necessary details to enable you to immediately access it through our e-learning platform and you can start to learn straight away, from any compatible device. Access to the online learning platform is valid for one year from the booking date.
All courses are built around case studies and presented in an engaging format, which includes storytelling elements, video, audio and humour. Every case study is supported by sample documents and a collection of Knowledge Nuggets that provide more in-depth detail on the wider processes.
When will I receive my joining instructions?
Joining instructions for QA courses are sent two weeks prior to the course start date, or immediately if the booking is confirmed within this timeframe. For course bookings made via QA but delivered by a third-party supplier, joining instructions are sent to attendees prior to the training course, but timescales vary depending on each supplier’s terms. Read more FAQs.
When will I receive my certificate?
Certificates of Achievement are issued at the end the course, either as a hard copy or via email. Read more here.