Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close

Description

Common Table Expressions (CTEs), often simply called WITH clauses, are essentially just named subqueries. They are a fairly new feature of SQL; with CTEs, you can break a long query into smaller chunks, which makes it more readable. Unlike SQL subqueries, CTEs can be recursive, allowing the traversal of hierarchical models of enormous depth.

About the Common Table Expressions in SQL Course
This course will cover simple CTEs, nested CTEs, and recursive CTEs. You will learn how to manage your SQL queries with CTEs, how and when to nest CTEs, and how to use recursive CTEs to move through hierarchical data models.

SQL keywords and database icons floating

This course is intended for intermediate users. We assume the user knows the basics of SQL, including:

  • How to select from a single table, including writing complex WHERE conditions
  • How to JOIN tables
  • How GROUP BY and HAVING work
  • How SQL subqueries work

What Are the Requirements?

  • A web browser
  • Knowledge of basic SQL, including JOINs and GROUP BY clauses

What Am I Going To Get from This SQL Course?

You will discover how to:
  • Understand and use basic Common Table Expressions
  • Split long SQL queries with simple and nested CTEs
  • Deploy recursive CTEs
  • Write recursive CTEs that traverse a hierarchical data model

Who Should Take This Course?

  • Beginning database analysts
  • Developers who want to keep their knowledge of SQL current
  • Students taking classes in relational databases
  • Anyone who wants to learn Common Table Expressions in SQL
    Start for free
    Gift this course

    Bundle deals

    86%
    off

    Reg. price
    $1442

    One to Rule 'Em All

    Includes 36 courses Python Basics. Part 1, Python Basics. Part 2, Python Basics. Part 3, Python Data Structures in Practice, Built-in Algorithms in Python, Working with Strings in Python, SQL Basics, SQL Practice Set, SQL JOINs, Standard SQL Functions, Creating Basic SQL Reports, Window Functions, Revenue Trend Analysis in SQL, How to INSERT, UPDATE, and DELETE Data in SQL, Recursive Queries, Creating Tables in SQL, Statistics 101, SQL Basics in MS SQL Server, How to Insert, Update, or Delete Data in MS SQL Server, Common Functions in MS SQL Server, Revenue Trend Analysis in SQL Server, Creating Basic SQL Reports in SQL Server, Window Functions in MS SQL Server, Recursive Queries in MS SQL Server, GROUP BY Extensions in MS SQL Server, Introduction to Python for Data Science, How to Read and Write CSV Files in Python, How to Read and Write JSON Files in Python, SQL Basics in PostgreSQL, PostgreSQL JOINs, SQL Practice Set in PostgreSQL, Window Functions in PostgreSQL, Recursive Queries in PostgreSQL, Writing User-Defined Functions in PostgreSQL, PostGIS, How to Read and Write Excel Files in Python

    Bundle price $199

    37 hours left at this price!

    Buy bundle

    67%
    off

    Reg. price
    $369

    SQL Complete Track

    Includes 9 courses SQL Basics, SQL Practice Set, SQL JOINs, Standard SQL Functions, Window Functions, How to INSERT, UPDATE, and DELETE Data in SQL, Recursive Queries, Creating Tables in SQL, PostGIS

    Bundle price $119

    37 hours left at this price!

    Buy bundle

    44%
    off

    Reg. price
    $143

    SQL Advanced Kit

    Includes 3 courses Standard SQL Functions, Window Functions, Recursive Queries

    Bundle price $79

    37 hours left at this price!

    Buy bundle

    Table of contents

    Progress: 0% completed 0 of 114 exercises done

    1. Intro Quiz

    Test your knowledge of SQL

    More details Less
    Start now

    0% completed 0 of 14 exercises done

    2. CTE syntax

    Your first encounter with Common Table Expressions

    More details Less
    Start now

    0% completed 0 of 17 exercises done

    3. Nested CTE

    You'll get to know how to use nested CTEs

    More details Less
    Start now

    0% completed 0 of 15 exercises done

    4. Recursive CTE

    You'll find out what recursion is and how to use it in SQL queries

    More details Less
    Start now

    0% completed 0 of 36 exercises done

    5. CTE with INSERT, DELETE, UPDATE

    You'll get to know how to use INSERT, DELETE, UPDATE statements with CTEs

    More details Less
    Start now

    0% completed 0 of 18 exercises done

    6. Final quiz

    Test your knowledge in this final quiz

    More details Less
    Start now

    0% completed 0 of 14 exercises done

    Reviews

    Average rating

    4.6/592.72727272727273 (11)

    Details

    5 Stars 91%
    4 Stars 0%
    3 Stars 0%
    2 Stars 0%
    1 Stars 9%
      Load more reviews

      Comments

      0