70-761 Exam Details

  • Exam Code
    :70-761
  • Exam Name
    :Querying Data with Transact-SQL
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :228 Q&As
  • Last Updated
    :Jan 21, 2022

Microsoft 70-761 Online Questions & Answers

  • Question 161:

    HOTSPOT

    You are a database administrator for an online retail store. You create a table to track orders by running the following Transact-SQL statement:

    You are developing a query that will be used as a JSON data source for a web application. The web application requires JSON in the following format:

    You need to build the query to return the data for the web application.

    How should you complete the Transact-SQL statement? To answer, select the appropriate Transact-SQL segments in the answer area.

    Hot Area:

  • Question 162:

    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:

    1.

    Insert product records as a single unit of work.

    2.

    Return error number 51000 when a product fails to insert into the database.

    3.

    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?

    A. Yes
    B. No

  • Question 163:

    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:

    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:

  • Question 164:

    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 are building a stored procedure that will be used by hundreds of users concurrently.

    You need to store rows that will be processed later by the stored procedure. The object that stores the rows must meet the following requirements:

    Be indexable

    Contain up-to-date statistics

    Be able to scale between 10 and 100,000 rows

    The solution must prevent users from accessing one another's data.

    Solution: You create a global temporary table in the stored procedure.

    Does this meet the goal?

    A. Yes
    B. No

  • Question 165:

    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. Option A
    B. Option B
    C. Option C
    D. Option D
    E. Option E
    F. Option F
    G. Option G
    H. Option H

  • Question 166:

    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:

    1.

    Insert product records as a single unit of work.

    2.

    Return error number 51000 when a product fails to insert into the database.

    3.

    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?

    A. Yes
    B. No

  • Question 167:

    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 table that was created by running the following Transact-SQL statement:

    The Products table includes the data shown in the following table:

    TotalUnitPrice is calculated by using the following formula:

    TotalUnitPrice = UnitPrice * (UnitsInStock + UnitsOnOrder)

    You need to ensure that the value returned for TotalUnitPrice for ProductB is equal to 600.00.

    Solution: You run the following Transact-SQL statement:

    Does the solution meet the goal?

    A. Yes
    B. No

  • Question 168:

    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:

    You create a cursor by running the following Transact-SQL statement:

    If the credit limit is zero, you must delete the customer record while fetching data. You need to add the DELETE statement.

    Solution: You add the following Transact-SQL statement:

    Does the solution meet the goal?

    A. Yes
    B. No

  • Question 169:

    SIMULATION

    You create a table named Sales.Orders by running the following Transact-SQL statement:

    You need to write a query that removes orders from the table that have a Status of Canceled.

    Construct the query using the following guidelines: use one-part column names and two-part table names use single quotes around literal values do not use functions do not surround object names with square brackets do not use variables do not use aliases for column names and table names 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.

    A. Check the answer below

  • Question 170:

    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:

    You must insert the following data into the Customer table:

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

    Does the solution meet the goal?

    A. Yes
    B. No

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-761 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.