SQL Quest › SQL 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". Free accounts get 10 free challenge solves, and this can be one of them.

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

Read the concept: SQL GROUP BY tutorial

Related questions

Total Assessed ValueEasy · FreeCommon Building ClassesEasy · FreeQuality Grade DistributionEasy · FreeQuality Grades With 100+ ProductsEasy · FreeFailure Count by ModeEasy · FreeMonthly Spend Per AccountEasy · 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