CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 20: 70-761: Querying Data with Transact-SQL

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 ac…

Nội dung câu hỏi

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.

Minh họa câu hỏi Minh họa câu hỏi Minh họa câu hỏi

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Please see explanation 1 SELECT avg (normalizedreading) as AverageReading, location as Mountain 2 FROM GroundSensors 3 WHERE normalizedreading is not null Note: On line 1 change to AverageReading and change to Mountain. — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề