Microsoft SQL Server with Transact-SQL

Course Code: TSQL

Duration: 5 days

 
 
 
 

Microsoft SQL Server with Transact-SQL Course Overview

The Microsoft SQL Server with Transact-SQL course covers the basics of the SQL language and more as implemented by Microsoft SQL Server. The course is designed to give delegates practical experience in writing Transact-SQL statements by hand using the SQL Server Management Studio (SSMS) development environment. The basic Transact-SQL statements, including the use of many built-in Transact-SQL functions will be covered along with more advanced coding techniques required by Database Administrators, Database Developers and BI professionals.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Course Objectives

To provide the Transact-SQL (T-SQL) coding skills needed to query and modify data held within a Microsoft SQL Server database.

Who will the Course Benefit?

Anyone who needs to access and work with a Microsoft SQL Server Database.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Writing SELECT queries
  • Sorting and filtering data
  • Using SQL aggregate functions
  • Using SET operators
  • Writing joins to query multiple tables
  • Using built-in functions
  • Using Subqueries
  • Inserting, updating, deleting and merging rows
  • Transaction control
  • Creating and using views
  • Using table expressions
  • Enhanced Grouping and Pivoting data
  • Using Windowing ranking, offset and ranking functions
  • Creating and managing Tables
  • Creating and using Sequences and Synonyms
  • Creating and managing Indexes
  • Obtaining schema metadata from data dictionary
  • Improving Query Performance

Microsoft SQL Server with Transact-SQL Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: DATABASE CONCEPTS

  • What is a database
  • Database management systems
  • Databases, Schemas, Tables, rows and columns
  • Indexes, primary keys, unique constraints and foreign keys
  • Supported data types
  • System Tables

Session 2: USING SQL SERVER MANAGEMENT STUDIO

  • Getting started with SQL Server Management Studio (SSMS)
  • Selecting a database
  • Entering and executing SQL statements
  • Creating, editing and executing SQL files

Session 3: WRITING SELECT QUERIES

  • Writing simple SQL SELECT statement
  • Using DISTINCT to remove duplicate data
  • Filtering Data with Predicates
  • Logical operators
  • The ORDER BY clause
  • Filtering with the TOP and OFFSET-FETCH
  • Using Column aliases
  • Arithmetic expressions
  • Precedence of operators

Session 4: USING SET OPERATORS

  • Writing Queries using the UNION operator
  • Using the INTERSECT operator
  • Using the EXCEPT operator
  • Introducing the APPLY operator

Session 5: GROUPING AND AGGREGATING DATA

  • Using aggregate functions
  • Using the GROUP BY clause
  • Using Rollup with GROUP BY
  • Filtering grouped data with the HAVING clause

Microsoft SQL Server with Transact-SQL Training Course

Session 6: QUERYING MULTIPLE TABLES

  • Understanding JOINS
  • CROSS Joins
  • Using INNER Joins
  • Using Table Aliases
  • Using OUTER Joins: LEFT, RIGHT and FULL
  • Using SELF JOINS

Session 7: NUMERIC AND CHARACTER FUNCTIONS

  • Function types
  • Testing functions
  • Numeric functions
  • Character functions

Session 8: DATE AND TIME FUNCTIONS

  • Date and time column types
  • Date and time formats
  • Functions to return Today's date and time
  • Functions to extract components of a date (Day, Month, Year)
  • Date time arithmetic
  • Displaying Dates in specific Date formats

Microsoft SQL Server with Transact-SQL Training Course

Session 9: CONVERSION AND MISCELLANEOUS FUNCTIONS

  • Converting a string to a date
  • Converting a string to a number
  • Converting a number to a string
  • Using Functions to work with NULL
  • Using CASE expressions

Session 10: USING SUBQUERIES

  • Using self contained subqueries
  • Using correlated subqueries
  • Using the EXISTS predicate with subqueries

Session 11: MANAGING DATA

  • Inserting rows
  • Updating rows
  • Deleting rows
  • Merging rows
  • The truncate statement
  • Transaction control

Microsoft SQL Server with Transact-SQL Training Course

Session 12: USING TABLE EXPRESSIONS

  • Creating and using Views
  • Using Inline Table-Valued Functions
  • Using Derived Tables
  • Using Common Table Expressions

Session 13: ENHANCED GROUPING AND PIVOTING

  • Working with GROUPING SETS
  • Using ROLLUP, CUBE,GROUPING and GROUPING_ID
  • Using PIVOT and UNPIVOT in Queries

Session 14: USING WINDOWING FUNCTIONS

  • Using Window AGGREGATE functions in Queries
  • Using Window RANK functions in Queries
  • Using Window OFFSET functions in Queries

Microsoft SQL Server with Transact-SQL Training Course

Session 15: CREATE AND MANAGE TABLES

  • Creating tables
  • Datatypes and Constraints
  • Altering and Dropping tables
  • Creating temporary tables
  • Copying tables
  • Creating and using Sequences and Synonyms
  • Obtaining metadata

Session 16: INDEXES

  • Index types
  • Creating indexes
  • Performance considerations
  • Filtered indexes
  • Indexes on View
  • Indexes with INCLUDE
  • Dropping indexes
  • Obtaining metadata

Session 17: METADATA

  • INFORMATION_SCHEMA views
  • Sys views
  • Comparison between INFORMATION_SCHEMA and sys views
  • Obtaining metadata in SSMS

Session 18: IMPROVING QUERY PERFORMANCE

  • Factors in Query Performance
  • Displaying Query Performance Data
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Requirements

There are no formal pre-requisites for the Microsoft SQL Server with Transact-SQL course, although an understanding of databases and exposure to information technology in general would be useful. This knowledge can be gained by attendance on the Relational Databases & Data Modelling Overview course.

Course Reviews

Thank you Kevin and John, the course has been incredibly informative and helpful.

Rebecca - Government

Course Content - Excellent Course Delivery - Excellent Kevin was great mentor and He covered all aspects of this course. He gave me enough time to do the workshop exercise and helped me whenever I struggled. Excellent communication and Gold Standard Training. Worth Attending and I already started using my Advance SQL knowledge at my work which helps me every single day from day one. Thank you Kevin and StayAhead team. Wonderful Learning Journey!

Darshita - IT

Very pleased with the course, lots of examples and learning through application. Kevin was an excellent teacher, would recommend to other students.

David - IT Director - Retail / Hire

Thoroughly enjoyed this course. Very helpful and extremely informative and very relevant to my work. The five day course was hugely beneficial and I am glad I completed the 3 day and 2 day course consecutively. The workshops broke the chapters up perfectly.

Amy - Utilities

Enjoyed the course - the trainer was very helpful & knows what he's talking about

Daniel - Data Analyst - Finance

Excellent, well-run course - delivered with enthusiasm by an excellent trainer. Good facilities too.

Mike - Government

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 5 days

Price: £2,150.00 exc. VAT 


Start Date Options Spaces  
15 Apr 2024
StayAhead Virtual Courses available 
Spaces Book Now 
20 May 2024
StayAhead Virtual Courses available 
Spaces Book Now 
24 Jun 2024
StayAhead Virtual Courses available 
Spaces Book Now 
29 Jul 2024
StayAhead Virtual Courses available 
Spaces Book Now 
09 Sep 2024
StayAhead Virtual Courses available 
Spaces Book Now 
21 Oct 2024
StayAhead Virtual Courses available 
Spaces Book Now 
25 Nov 2024
StayAhead Virtual Courses available 
Spaces Book Now 
06 Jan 2025
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy