070-761 Exam Question 11

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 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:
* Include the average normalized readings and nearest mountain name.
* Exclude sensors for which no normalized reading exists.
* Exclude those sensors with value of zero for tremor.
Construct the query using the following guidelines:
* Use one part names to reference tables, columns and functions.
* Do not use parentheses unless required.
* Do not use aliases for column names and table names.
* 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.
SELECT SensorID, NearestMountain(Location)
FROM GroundSensors
WHERE TREMOR <> 0 AND NormalizedReading IS NOT NULL
GROUP BY SensorID, NearestMountain(Location)

070-761 Exam Question 12

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.
You run the following Transact-SQL statement:

You need to return the total annual revenue for all customers, followed by a row for each customer that shows the customer's name and annual revenue.
Which Transact-SQL statement should you run?
A:

B:

C:

D:

E:

F:

G:

H:
  • 070-761 Exam Question 13

    Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.
    You query a database that includes two tables: Project and Task. The Project table includes the following columns:


    Task level is defined using the following rules:

    You need to determine the task level for each task in the hierarchy.
    Which five Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order.

    070-761 Exam Question 14

    You need to create a table named Sales that meets the following requirements:

    Which Transact-SQL statement should you run?
  • 070-761 Exam Question 15

    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section. you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You have a database that tracks orders and deliveries for customers in North America. The database contains the following tables:
    Sales.Customers

    Application.Cities

    Sales.CustomerCategories

    The company's development team is designing a customer directory application. The application must list customers by the area code of their phone number. The area code is defined as the first three characters of the phone number.
    The main page of the application will be based on an indexed view that contains the area and phone number for all customers.
    You need to return the area code from the PhoneNumber field.
    Solution: You run the following Transact-SQL statement:

    Does the solution meet the goal?