SIMULATION -
You work for an organization that monitors seismic activity around volcanos. You have a table named GroundSensors. The table stored data collected from seismic sensors. It includes the columns describes in the following table:
The database also contains a scalar value function named NearestMountain that accepts a parameter of type geography and returns the name of the mountain that is nearest to the sensor.
You need to create a query that shows the average of the normalized readings from the sensors for each mountain. The query must meet the following requirements:
✑ Return the average normalized readings named AverageReading.
✑ Return the nearest mountain name named Mountain.
✑ Do not return any other columns.
✑ Exclude sensors for which no normalized reading exists.
Construct the query using the following guidelines:
✑ Use one part names to reference tables, columns and functions.
✑ Do not use parentheses unless required.
Define column headings using the AS keyword.
Do not surround object names with square brackets.
Part of the correct Transact-SQL has been provided in the answer area below. Enter the code in the answer area that resolves the problem and meets the stated goals or requirements. You can add code within the code that has been provided as well as below it.
Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character position.
vermeilyn
Highly Voted 4 years, 11 months agosafiullah
Highly Voted 5 years, 8 months agoDieter
5 years, 8 months agoAshleyLiang
5 years, 8 months agoimran
5 years, 6 months agoJiacheng
5 years, 2 months agoAnette
4 years, 11 months agodaniel_yes23
5 years agoAnette
4 years, 11 months agoVermonster
Most Recent 4 years, 4 months agovramky
4 years, 4 months agokiri2020
4 years, 6 months agoCristianCruz
4 years, 9 months agoMichael93
4 years, 8 months agomamarach
4 years, 10 months agoAlinaS
5 years agomlourinho
5 years, 5 months agoM4x
5 years, 8 months agoanonimdom
5 years, 3 months ago