About course

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.

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 now
    Gift this course

    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

    5/5100.0 (6)

    Details

    5 Stars 100%
    4 Stars 0%
    3 Stars 0%
    2 Stars 0%
    1 Stars 0%
      Load more reviews

      Comments

      0