Microsoft 70-761 - Querying Data with Transact-SQL Exam

Question #11 (Topic: Topic 1)
HOTSPOT
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:
[Microsoft-70-761-1.0/xmlfile-21_1.png]
[Microsoft-70-761-1.0/xmlfile-21_2.png]
You need to identify the owner of each task by using the following rules:
? Return each task’s owner if the task has an owner.
? If a task has no owner, but is associated with a project that has an owner, return the project’s owner.
? Return the value-1for all other cases.
How should you complete the Transact-SQL statement? To answer, select the appropriate Transact-SQL segments in the answer area.
Hot Area:
[Microsoft-70-761-1.0/xmlfile-22_1.png]
Answer: [Microsoft-70-761-1.0/xmlfile-22_2.png]
Question #12 (Topic: Topic 1)
DRAG DROP
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:
[Microsoft-70-761-1.0/xmlfile-23_4.png]
[Microsoft-70-761-1.0/xmlfile-24_1.png]
Task level is defined using the following rules:
[Microsoft-70-761-1.0/xmlfile-24_2.png]
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.
Select and Place:
[Microsoft-70-761-1.0/xmlfile-25_1.jpg]
Answer: [Microsoft-70-761-1.0/xmlfile-26_1.jpg]
Question #13 (Topic: Topic 1)
DRAG DROP
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:
[Microsoft-70-761-1.0/xmlfile-27_1.png]
[Microsoft-70-761-1.0/xmlfile-27_2.png]
When running an operation, you updated a column named EndTime for several records in the Project table, but updates to the corresponding task records in the
Task table failed.
You need to synchronize the value of the EndTime column in the Task table with the value of the EndTime column in the project table. The solution must meet the
following requirements:
? If the EndTime column has a value, make no changes to the record.
? If the value of the EndTime column is null and the corresponding project record is marked as completed, update the record with the project finish time.
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:
[Microsoft-70-761-1.0/xmlfile-28_3.png]
Answer: [Microsoft-70-761-1.0/xmlfile-29_1.png]
Question #14 (Topic: Topic 1)
You need to create a database object that meets the following requirements:
? accepts a product identified as input
? calculates the total quantity of a specific product, including quantity on hand and quantity on order
? caches and reuses execution plan
? returns a value
? can be called from within a SELECT statement
? can be used in a JOIN clause
What should you create?
A. an extended stored procedure B. a user-defined scalar function C. a user-defined stored procedure that has an OUTPUT parameter D. a temporary table that has a columnstore index
Answer: B
Question #15 (Topic: Topic 1)
HOTSPOT
You have the following stored procedure:
[Microsoft-70-761-1.0/xmlfile-31_1.png]
You run the following Transact-SQL statements:
[Microsoft-70-761-1.0/xmlfile-31_2.png]
What is the result of each Transact-SQL statement? To answer, select the appropriate options in the answer area.
Hot Area:
[Microsoft-70-761-1.0/xmlfile-32_1.png]
Answer: [Microsoft-70-761-1.0/xmlfile-32_2.png]
Download Exam
Page: 3 / 41
Total 205 questions