Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Microsoft

Write advanced Transact-SQL queries

Microsoft via Microsoft Learn

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
  • This content is a part of Create tables, views, and temporary objects.

    After completing this module, you should be able to:

    • Create and query tables using Transact-SQL

    • Create and query views using Transact-SQL

    • Create queries using Common Table Expressions (CTE)

    • Write queries that use derived tables

  • Combine query results with set operators using Transact-SQL.

    After completing this module, you’ll be able to:

    • Use the UNION operator.

    • Use the INTERSECT and EXCEPT operators.

    • Use the APPLY operator.

  • This content is a part of Write queries that use window functions.

    After completing this module, you’ll be able to:

    • Describe window functions.

    • Use the OVER clause.

    • Use RANK, AGGREGATE, and OFFSET functions.

  • This content is a part of Transform data by implementing pivot, unpivot, rollup, and cube.

    After completing this module, you'll be able to:

    • Write queries that pivot and unpivot result sets.

    • Write queries that specify multiple groups with GROUPING SET, CUBE, and ROLLUP.

Syllabus

  • Create tables, views, and temporary objects
    • Introduction
    • Create and query tables
    • Create and query views
    • Use temporary tables
    • Use Common Table Expressions
    • Write queries that use derived tables
    • Exercise: Create queries with table expressions
    • Module assessment
    • Summary
  • Combine query results with set operators
    • Introduction
    • Use the UNION operator
    • Use the INTERSECT and EXCEPT operators
    • Use the APPLY operator
    • Exercise: Combine query results with set operators
    • Module assessment
    • Summary
  • Write queries that use window functions
    • Introduction
    • Describe window functions
    • Use the OVER clause
    • Use RANK, AGGREGATE, and OFFSET functions
    • Exercise: Use window functions
    • Module assessment
    • Summary
  • Transform data by implementing pivot, unpivot, rollup, and cube
    • Introduction
    • Write queries that pivot and unpivot result sets
    • Write queries that specify multiple groupings with grouping sets
    • Exercise: Pivoting and grouping sets
    • Module assessment
    • Summary

Reviews

Start your review of Write advanced Transact-SQL queries

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.