Menu
Coddy logo textTech

Calculate Product Quality

Part of the Fundamentals section of Coddy's SQL journey. Lesson 53 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>

Calculate the quality for each part using this formula: Quality = (rpm * adjusted_watt) / size.

Notice that we are using the adjusted_watt.

Return part_id and quality

Try it yourself

-- The outer query reads from a source table that you build below
SELECT part_id, ____ AS quality
____

All lessons in Fundamentals

Practice on your own: SQL playground