[Free] 2019(Nov) EnsurePass Microsoft 70-761 Dumps with VCE and PDF 31-40

Get Full Version of the Exam
http://www.EnsurePass.com/70-761.html

Question No.31

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 have a database that is denormalized. Users make frequent changes to data in a primary table.

You need to ensure that users cannot change the tables directly, and that changes made to the primary table also update any related tables.

What should you implement?

  1. the COALESCE function

  2. a view

  3. a table-valued function

  4. the TRY_PARSE function

  5. a stored procedure

  6. the ISNULL function

  7. a scalar function

  8. the TRY_CONVERT function

Correct Answer: B

Explanation:

Using an Indexed View would allow you to keep your base data in properly normalized tables and maintain data-integrity while giving you the denormalized quot;viewquot; of that data.

References: http://stackoverflow.com/questions/4789091/updating-redundant-denormalized-data- automatically-in-sql-server

Question No.32

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 Customer by running the following Transact-SQL statement:

image

You must insert the following data into the Customer table:

image

You need to ensure that both records are inserted or neither record is inserted. Solution: You run the following Transact-SQL statement:

image

Does the solution meet the goal?

  1. Yes

  2. No

Correct Answer: A

Explanation:

With the INSERT INTO..VALUES statement we can insert both values with just one statement. This ensures that both records or neither is inserted.

References: https://msdn.microsoft.com/en-us/library/ms174335.aspx

Question No.33

HOTSPOT

You have the following subqueries: Subquery1, Subquery2, and Subquery3.

You need to replace the three subqueries with named result sets or temporary tables. The following requirements must be met:

image

Which replacement techniques should you use?

To answer, select the appropriate options in the answer area.

image

Correct Answer:

image

Question No.34

DRAG DROP

You have a database that stored information about servers and application errors. The database contains the following tables.

Servers

image

Errors

image

You are building a webpage that shows the three most common errors for each server. You need to return the data for the webpage.

How should you complete the Transact-SQL statement?

To answer, drag the appropriate Transact-SQL segments to the correct location. 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.

image

Correct Answer:

image

Question No.35

DRAG DROP

You create three tables by running the following Transact-SQL statements:

image

For reporting purposes, you need to find the active user count for each role, and the total active user count. The result must be ordered by active user count of each role. You must use common table expressions (CTEs).

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.

image

Correct Answer:

image

Question No.36

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

image

Application.Cities

image

Sales.CustomerCategories

image

The company#39;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:

image

Does the solution meet the goal?

  1. Yes

  2. No

Correct Answer: A

Explanation:

As the result of the function will be used in an indexed view we should use schemabinding. References: https://sqlstudies.com/2014/08/06/schemabinding-what-why/

Question No.37

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 have a database that contains tables named Customer_CRMSystem and Customer_HRSystem. Both tables use the following structure:

image

The tables include the following records:

Customer_CRMSystem

image

Customer_HRSystem

image

Records that contain null values for CustomerCode can be uniquely identified by CustomerName. You need to display a list of customers that do not appear in the Customer_HRSystem table.

Which Transact-SQL statement should you run?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

  5. Option E

  6. Option F

  7. Option G

  8. Option H

Correct Answer: D

Explanation:

EXCEPT returns distinct rows from the left input query that aren#39;t output by the right input query. References: https://msdn.microsoft.com/en-us/library/ms188055.aspx

Question No.38

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:

image

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:

image

If the EndTime column has a value, make no changes to the record.

image

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.

image

Correct Answer:

image

Question No.39

CORRECT TEXT

You have a database that contains the following tables.

image

You need to create a query that lists the lowest-performing salespersons based on the current year-to-date sales period. The query must meet the following requirements:

image

Return a column named Fullname that includes the salesperson FirstName, a space, and then LastName.

image

Include the current year-to-date sales for each salesperson.

image

image

Display only data for the three salespersons with the lowest year-to-year sales values. Exclude salespersons that have no value for TerritoryID.

Construct the query using the following guidelines:

image

image

Use the first letter of a table name as the table alias. Use two-part column names.

image

image

Do not surround object names with square brackets. Do not use implicit joins.

image

image

Use only single quotes for literal text. Use aliases only if required.

image

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.

image

Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character position.

Correct Answer:

SELECT TOP 3

(p.FirstName amp;#39; amp;#39; p.LastName) AS FullName , s.SalesYTD FROM

Person AS p

INNER JOIN SalesPerson AS s ON p.PersonID = s.PersonID WHERE

Answer: TerritoryID IS NOT NULL ORDER BY

Answer: SalesYTD DESC

Question No.40

You have a database that contains the following tables:

Customer

image

CustomerAudit

image

Where the value of the CustomerID column equals 3, you need to update the value of the CreditLimit column to 1000 for the customer. You must ensure that the change to the record in the Customer table is recorded on the CustomerAudit table.

Which Transact-SQL statement should you run?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: D

Explanation:

The OUTPUT Clause returns information from, or expressions based on, each row affected by an INSERT, UPDATE, DELETE, or MERGE statement. These results can be returned to the processing application for use in such things as confirmation messages, archiving, and other such application requirements. The results can also be inserted into a table or table variable.

Additionally, you can capture the results of an OUTPUT clause in a nested INSERT, UPDATE, DELETE, or MERGE statement, and insert those results into a target table or view.

Note: If the column modified by the .RITE clause is referenced in an OUTPUT clause, the complete value of the column, either the before image in deleted.column_name or the after image in inserted.column_name, is returned to the specified column in the table variable.

Get Full Version of the Exam
70-761 Dumps
70-761 VCE and PDF

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.