Provided is a table of temperature devices called devices. Write a query that will return the average thermostat temperature from each room with more
Provided is a table of temperature devices called devices. Write a query that will return the average thermostat temperature from each room with more than 2 thermostats attached. The results should be listed in descending order based on the room name and should round to the nearest whole number without any decimals. Example TableName: DEVICES RoomName Kitchen Kitchen Kitchen Bedroom Bedroom Bedroom Output: Kitchen 72 Device Type Temperature Thermostat Thermostat Thermostat Thermostat Thermostat Temp Sensor 71 72 73 68 68 68
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To retrieve the average thermostat temperature from each room with more than 2 thermostats attached ...See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started