70-761 試験問題を無料オンラインアクセス
| 試験コード: | 70-761 |
| 試験名称: | Querying Data with Transact-SQL |
| 認定資格: | Microsoft |
| 無料問題数: | 205 |
| 更新日: | 2026-07-30 |
You have two tables named UserLogin and Employee respectively.
You need to create a Transact-SQL script that meets the following requirements:
* The script must update the value of the IsDeleted column for the UserLogin table to 1 if the value of the Id column for the UserLogin table is equal to 1.
* The script must update the value of the IsDeleted column of the Employee table to 1 if the value of the Id column is equal to 1 for the Employee table when an update to the UserLogin table throws an error.
* The error message "No tables updated!" must be produced when an update to the Employee table throws an error.
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.
You are a developing a solution to manage employee training records. You have the following Transact-SQL statement:
You need to create a stored procedure that returns the total number of participants for a specific course.
How should you complete the procedure? To answer, drag the appropriate Transact-SQL segments to the correct locations. Each Transact-SQL segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
You have a database that contains a table named Products in the sales schema. The table was created by running the following Transact-SQL statement:
The table includes the data shown below:
You are developing a report that displays the following values and column headers in the order listed below:
* average price of a product named Average
* the smallest number of products in stocK-named LowestNumber
* the highest product price named HighestPrice
You need to write a query to return the results for the report The query must meet the following requirements:
You need to write a query to return the results for the report. The query must meet the following requirements:
* Use built-in, aggregate anfa*mathematical functions.
* Use two-part names and tables.
* Use the table alias to qualify column names.
* Define the alias for all fields by using the AS keyword.
* Use the first letter of the table name as the table alias.
* Do not use the Row_number function.
* Do not surround object names with square brackets.
* Do not use variables.
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.
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.
Start of repeated scenario
You are developing a database to track customer orders. The database contains the following tables:
Sales.Customers, Sales.Orders, and Sales.OrderLines. The following table describes the columns in Sales.Customers.
The following table describes the columns in Sales.Orders.
The following table describes the columns in Sales.OrderLines.
End of repeated scenario
You need to create a common table expression (CTE) that returns the total number of orders per year for each customer.
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.
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 create a table by running the following Transact-SQL statement:
You are developing a report that aggregates customer data only for the year 2014. The report requires that the data be denormalized.
You need to return the data for the report.
Which Transact-SQL statement should you run?






