SQL QuestSQL Interview Questions › Aggregation & Grouping

Average Sensor Readings

EasyFreeQuerying BasicsAggregation & Grouping

Compute baseline averages across all operational data: avg_air_temp, avg_process_temp, avg_rpm, avg_torque (each rounded to 2 decimals). Returns one row.

Solve it in the browser editor →

Runs on SQLite in your browser, graded against the expected result, no signup. A wrong answer gets a diagnosis, not just "incorrect".

Schema

operational_data

udiair_temp_kprocess_temp_krotational_speed_rpmtorque_nm
5640302.6312.1166828.7
2171299.4309.1150043.3
228298.3308.5153936.1

Expected output: Single-row baseline

Hint

AVG(...) for each column. ROUND to 2 decimals.

Concepts

SELECT Aggregation AVG

Practise the topic: SQL practice questions · GROUP BY exercises

Related questions

Counting RowsEasy · FreeSUM, AVG, MIN, MAXEasy · FreeGROUP BY BasicsEasy · FreeMonthly Order CountEasy · FreeHow Many Genres Do We Cover? (DISTINCT)Easy · FreeFemale Survivor CountEasy · Free

Where would this cost you points in an interview?

Ten questions, no signup: a Skillmap across nine SQL skills and the one to fix first.

Take the readiness test