Keep SQLtest alive: Help cover this month's $100 server costs to keep all lessons and the SQL playground online. Support the project →
SQL code copied to buffer
Task 36:

Penguin Averages View

SQLite
Based on the penguins table, create a view penguins_averages with the following fields:

- species: penguin species
- sex: penguin sex
- penguins_count: the number of individuals
- avg_bill_length_mm: average bill length in mm
- avg_bill_depth_mm: average bill depth in mm
- avg_flipper_length_mm: average flipper length in mm
- avg_body_mass_g: average body mass in grams, calculated by species and sex.
Expected result Columns: 7 · Rows: 6
species sex penguins_count avg_bill_length_mm avg_bill_depth_mm avg_flipper_length_mm avg_body_mass_g

Sample rows open after wrong checks: 0 of 2

Write your query below and click "Check it!". Tables are described in the right pane.

Tutorial
The query result will appear here. Ctrl+Enter - Run query

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.