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 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.
DRAG DROP -You have a table named HR.Employees as shown in the exhibit. (Click the exhibit button.)You need to write a query that will change the value of the job title column to Customer Representative for any employee who lives in Seattle and has a job title ofSales Representative. If the employee does not have a manager defined, you must not change the title.Which three 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.Select and Place:
HOTSPOT -You have the following Transact-SQL query:What type of functions are used in the query? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
DRAG DROP -You have a database that includes the following tables:You need to create a list of all customer IDs and the date of the last order that each customer placed. If the customer has not placed any orders, you must return the date January 1, 1900. The column names must be CustomerID and LastOrderDate.Which four 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.Select and Place:
HOTSPOT -You run the following Transact-SQL statement:You need to ensure that you can insert data into the table.What are the characteristics of the data? To answer, select the appropriate options in the answer area.Hot Area:
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 create a table named Products by running the following Transact-SQL statement:You have the following stored procedure:You need to modify the stored procedure to meet the following new requirements:β Insert product records as a single unit of work.β Return error number 51000 when a product fails to insert into the database.β If a product record insert operation fails, the product information must not be permanently written to the database.Solution: You run the following Transact-SQL statement:Does the solution meet the goal?