Menu
Coddy logo textTech

Expand To Other Products

Part of the Fundamentals section of Coddy's SQL journey. Lesson 54 of 72.

challenge icon

Challenge

Easy

Available tables and columns:

  • <strong>enom_gilpane</strong>: <strong>part_id</strong>, <strong>rpm</strong>, <strong>watt</strong>, <strong>size</strong>

Keep only the parts (from the enom_gilpane table) that have a quality value greater than the average quality.

Return part_id and quality

Try it yourself

-- Name the query from the previous challenge so you can use it more than once
WITH enom_gilpane_quality AS (
    ____
)

SELECT *
FROM enom_gilpane_quality
-- Compare each row against the average taken over that same named block
WHERE ____

All lessons in Fundamentals

Practice on your own: SQL playground