651-905-3729 Microsoft Silver Learning Partner EC Counsel Reseller compTIA Authorized Partner

Querying Data with Transact-SQL Virtual Classroom Live April 21, 2025

Price: $1,295

This course runs for a duration of 3 Days.

The class will run daily from 10 AM ET to 5 PM ET.

Class Location: Virtual LIVE Instructor Led - Virtual Live Classroom.

Enroll today to reserve your spot!

Space is limited. Enroll today.

Enroll Now

Description

This intensive course will start with a quick overview of the SQL Server architecture, then dive right into using T-SQL. You will learn about batches and scripts, how to declare and use variables—including the inevitable data type conversions—and the rich supply of operators available. You will learn about some of the many built-in T-SQL functions for doing things like working with numbers and string manipulation, as well as global functions for getting state information. You will also learn about how to rank results using special functions and the OVER clause.

Course Overview

Introduction to Microsoft SQL Server

  • SQL Server Architecture
  • Editions and Versions
  • Overview of Relational Database Organization
  • SQL Server Tools
  • Management Studio

Introduction to T-SQL Querying

  • Components of T-SQL
    • Data Manipulation Language
    • Data Definition Language
    • Data Control Language
    • Transaction Control Language
  • Basic Syntax Rules
  • Specifying Objects
  • Query Batches
  • Generating Queries
  • Sets and Predicate Logic
  • Order of Operations in SELECT Statements

 Writing SELECT Queries

  • Simple SELECT Statements
  • Discovering Database Structures
  • Irregular Identifiers
  • Computations
  • Column and Table Aliases
  • CASE Expressions
  • Using DISTINCT to Eliminate Duplicates

Querying Multiple Tables

  • Table Joins
  • Joines as a Filter
  • Table Aliases
  • Join Types

Sorting and Filtering Data

  • Sorting Data
  • ORDER BY Details
  • Filtering Data with Predicates
  • Testing Equality and Inequality
  • Ranges of Values
  • Logical Operators
  • Work with Unknown Values

SQL Server Data Types

  • Available Data Types
  • Approximate and Exact Numerics
  • Date and Time Data
  • String Data Types
  • Type Coercion
  • Character Data Type
  • Collations and Overriding Collation
  • Concatenation
  • Substrings
  • The LIKE Predicate
  • Date/Time Functions
  • Extracting Date Parts
  • Calculating Dates

Using DML to Modify Data

  • Inserting Data
  • Modifying Data
  • Deleting Data
  • Update and Delete Strategies

Using Built-In Functions

  • Using Built-in Functions in Queries
  • Scalar and Aggregate Functions
  • Conversion Functions
  • Logical Functions

Grouping and Aggregating Data

  • Aggregate Functions
  • The GROUP BY Clause
  • Grouping and Aggregation Rules
  • Filtering Groups with HAVING

Using Subqueries

  • Selecting from Subqueries
  • Scalar Subqueries
  • Multi-Value Subqueries

Using Table Expressions

  • Database Views
  • Derived Tables
  • Inline Table-Valued Functions
  • Common Table Expressions

Using Set Operators

  • UNION Operator
  • INTERSECT and EXCEPT Operators
  • APPLY Operator

Ranking and Aggregate Functions

  • Creating Windows with OVER
  • ROW_NUMBER Function
  • RANK and DENSE_RANK
  • NTILE Function
  • Offset Functions

Pivoting and Grouping Sets

  • What is Pivoting?
  • Using PIVOT
  • Using UNPIVOT

Executing Stored Procedures

  • Querying Data with Stored Procedures
  • Passing Parameters to Stored Procedures
  • Creating Simple Stored Procedures
  • Working with Dynamic SQL

Programming with T-SQL

  • T-SQL Programming Elements
  • Using Variables
  • Conditionally Executing Statements

Error Handling

  • Errors
  • Structured Exception Handling
  • Exceptional Execution Flow

Transactions

  • How Transactions Work
  • Controlling Transactions
  • Nesting Transactions
  • Working with Grouping Sets

Prerequisites

This course assumes that you have at least a basic familiarity with the concept of relational databases and a basic understanding of what SQL Server is and the high-level tools in it, as well as how to create and manage objects using Management Studio. You should also have a basic understanding of how SQL Server implements security, including its authentication and authorization schemes, and how to assign permissions on securable objects to principals.

Other Available Dates for this Course

Virtual Classroom Live
January 22, 2025

$1,295.00
3 Days    10 AM ET - 5 PM ET
view class details and enroll
Virtual Classroom Live
February 19, 2025

$1,295.00
3 Days    10 AM ET - 5 PM ET
view class details and enroll
Virtual Classroom Live
March 19, 2025

$1,295.00
3 Days    10 AM ET - 5 PM ET
view class details and enroll
Virtual Classroom Live
May 19, 2025

$1,295.00
3 Days    10 AM ET - 5 PM ET
view class details and enroll
Virtual Classroom Live
June 24, 2025

$1,295.00
3 Days    10 AM ET - 5 PM ET
view class details and enroll