Microsoft 70-761 Exam Dumps 2021

We provide which are the best for clearing 70-761 test, and to get certified by Microsoft Querying Data with Transact-SQL (beta). The covers all the knowledge points of the real 70-761 exam. Crack your Microsoft 70-761 Exam with latest dumps, guaranteed!

Free 70-761 Demo Online For Microsoft Certifitcation:

NEW QUESTION 1
You have a database that stores information about server and application errors. The database contains the following table:
Servers
70-761 dumps exhibit
Errors
70-761 dumps exhibit
You need to return all unique error log messages and the server where the error occurs most often. Which Transact-SQL statement should you run?
70-761 dumps exhibit

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: A

NEW QUESTION 2
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:
70-761 dumps exhibit
The database also contains a scalar value function named NearestMountain that accepts a parameter of type geography and 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:
Return the average normalized readings named AverageReading.
Return the nearest mountain name named Mountain.
Do not return any other columns.
Exclude sensors for which no normalized reading exists. Construct the query using the following guidelines:
Use one part names to reference tables, columns and functions.
Do not use parentheses unless required.
Define column headings using the AS keyword.
Do not surround object names with square brackets.
70-761 dumps exhibit
70-761 dumps exhibit
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.
70-761 dumps exhibit
Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character position.

    Answer:

    Explanation: 1 SELECT avg (normalizedreading) as AverageReading, location as Mountain
    2 FROM GroundSensors
    3 WHERE normalizedreading is not null
    Note: On line 1 change to AverageReading and change to Mountain.

    NEW QUESTION 3
    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 includes the tables shown in the exhibit (Click the Exhibit button.)
    70-761 dumps exhibit
    You need to create a Transact-SQL query that returns the following information:
    *the customer number
    * the customer contact name
    *the date the order was placed, with a name of DateofOrder
    *a column named Salesperson, formatted with the employee first name, a space, and the employee last name
    *orders for customers where the employee identifier equals 4
    The output must be sorted by order date, with the newest orders first. The solution must return only the most recent order for each customer. Solution: You run the following Transact-SQL statement:
    70-761 dumps exhibit
    Does the solution meet the goal?

    • A. Yes
    • B. No

    Answer: B

    Explanation: We should use a WHERE clause, not a HAVING clause. The HAVING clause would refer to aggregate data.

    NEW QUESTION 4
    You are developing a training management application. You run the following Transact-SQL statement:
    70-761 dumps exhibit
    You must create a report that returns course identifiers and the average evaluation score for each course. The result set must include only one score for each employee for each course.
    How should you complete the Transact-SQL statement? To answer, select the appropriate Transact-SQL segments in the answer area.
    NOTE: Each correct selection is worth one point.
    70-761 dumps exhibit

      Answer:

      Explanation: 70-761 dumps exhibit

      NEW QUESTION 5
      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:
      70-761 dumps exhibit
      You create a cursor by running the following Transact-SQL statement:
      70-761 dumps exhibit
      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:
      70-761 dumps exhibit
      Does the solution meet the goal?

      • A. YES
      • B. NO

      Answer: B

      NEW QUESTION 6
      You need to create a database object that meets the following requirements:
      accepts a product identifies 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 table-valued function
      • C. a user-defined stored procedure that has an OUTPUT parameter
      • D. a memory-optimized table that has updated statistics

      Answer: B

      NEW QUESTION 7
      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 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.
      70-761 dumps exhibit
      The following table describes the columns in Sales.Orders.
      70-761 dumps exhibit
      The following table describes the columns in Sales.OrderLines.
      70-761 dumps exhibit
      You need to create a stored procedure that inserts data into the Customers table. The stored procedure must meet the following requirements:
      - Data changes occur as a single unit of work.
      - Data modifications that are successful are committed and a value of 0 is returned.
      - Data modifications that are unsuccessful are rolled back. The exception severity level is set to 16 and a value of -1 is returned.
      - The stored procedure uses a built-it scalar function to evaluate the current condition of data modifications.
      - The entire unit of work is terminated and rolled back if a run-time error occurs during execution of the stored procedure.
      How should complete the stored procedure definition? To answer, drag the appropriate Transact-SQL segments to the correct targets. 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.
      70-761 dumps exhibit

        Answer:

        Explanation: Box 1: XACT_ABORT
        XACT_ABORT specifies whether SQL Server automatically rolls back the current transaction when a Transact-SQL statement raises a run-time error.
        When SET XACT_ABORT is ON, if a Transact-SQL statement raises a run-time error, the entire transaction is terminated and rolled back.
        Box 2: COMMIT
        Commit the transaction. Box 3: XACT_STATE
        Box 4: ROLLBACK
        Rollback the transaction Box 5: THROW
        THROW raises an exception and the severity is set to 16.
        Requirement: Data modifications that are unsuccessful are rolled back. The exception severity level is set to 16 and a value of -1 is returned.
        References:
        https://msdn.microsoft.com/en-us/library/ms188792.aspx https://msdn.microsoft.com/en-us/library/ee677615.aspx

        NEW QUESTION 8
        You create a table by running the following Transact-SQL statement:
        70-761 dumps exhibit
        You need to view all customer data.
        Which Transact-SQL statement should you run?
        70-761 dumps exhibit

        • A. Option A
        • B. Option B
        • C. Option C
        • D. Option D
        • E. Option E
        • F. Option F
        • G. Option G
        • H. Option H

        Answer: B

        Explanation: The FOR SYSTEM_TIME ALL clause returns all the row versions from both the Temporal and History table. References: https://msdn.microsoft.com/en-us/library/dn935015.aspx

        NEW QUESTION 9
        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:
        70-761 dumps exhibit
        The Products table includes the data shown in the following table:
        70-761 dumps exhibit
        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:
        70-761 dumps exhibit
        Does the solution meet the goal?

        • A. Yes
        • B. No

        Answer: A

        Explanation: COALESCE evaluates the arguments in order and returns the current value of the first expression that initially does not evaluate to NULL.
        References: https://docs.microsoft.com/en-us/sql/t-sql/language-elements/coalesce-transact-sql

        NEW QUESTION 10
        You have the following stored procedure:
        70-761 dumps exhibit
        You run the following Transact-SQL statements:
        70-761 dumps exhibit
        What is the result of each Transact-SQL statement? To answer, select the appropriate options in the answer area.
        70-761 dumps exhibit

          Answer:

          Explanation: Box 1: All transactions are rolled back.
          The first IF-statement, IF @CODE = 'C2323' AND @ApplicationID = 1, will be true, an error will be raised, the error will be caught in the CATCH block, and the only transaction that has been started will be rolled back.
          Box 2: Only Log1, Log2, and Log3 tables are updated.
          The second IF-statement, IF @Code = 'C2323', will be true, so the second transaction will be rolled back, but log1, log2, and log3 was updated before the second transaction.

          NEW QUESTION 11
          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 named Products that stores information about products your company sells. The table has a column named ListPrice that stores retail pricing information for products.
          Some products are used only internally by the company. Records for these products are maintained in the Products table for inventory purposes. The price for each of these products is $0.00. Customers are not permitted to order these products.
          You need to increase the list price for products that cost less than $100 by 10 percent. You must only increase pricing for products that customers are permitted to order.
          Solution: You run the following Transact-SQL statement:
          70-761 dumps exhibit
          Does the solution meet the goal?

          • A. Yes
          • B. No

          Answer: B

          Explanation: Mathematical equation will only return 10 % of the value.

          NEW QUESTION 12
          You have the following Transact-SQL statement: DELETE FROM Person
          WHERE PersonID = 5
          You need to implement error handling.
          How should you complete Transact-SQL statement? To answer, select the appropriate options in the answer area.
          NOTE: Each correct selection is worth one point.
          70-761 dumps exhibit

            Answer:

            Explanation: 70-761 dumps exhibit

            NEW QUESTION 13
            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 local temporary table in the stored procedure. Does this meet the goal?

            • A. Yes
            • B. No

            Answer: B

            NEW QUESTION 14
            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 includes the tables shown in the exhibit (Click the Exhibit button.)
            70-761 dumps exhibit
            You need to create a Transact-SQL query that returns the following information:
            - the customer number
            - the customer contact name
            - the date the order was placed, with a name of DateofOrder
            - a column named Salesperson, formatted with the employee first name, a space, and the employee last name
            - orders for customers where the employee identifier equals 4
            The output must be sorted by order date, with the newest orders first. The solution must return only the most recent order for each customer. Solution: You run the following Transact-SQL statement:
            70-761 dumps exhibit
            Does the solution meet the goal?

            • A. Yes
            • B. No

            Answer: A

            Explanation: The MAX(orderdate) in the SELECT statement makes sure we return only the most recent order. A WHERE o.empiD =4 clause is correctly used.
            GROUP BY is also required.

            NEW QUESTION 15
            You create a table to track sales persons by running the following Transact-SQL statement:
            70-761 dumps exhibit
            You need to create a report that shows the sales people within each territory for each year. The report must display sales people in order by highest sales amount.
            How should you complete the Transact-SQL statement? 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.
            70-761 dumps exhibit

              Answer:

              Explanation: 70-761 dumps exhibit

              NEW QUESTION 16
              You have a database that includes the tables shown in the exhibit. (Click the exhibit button.)
              70-761 dumps exhibit
              You need to create a list of all customers, the order ID for the last order that the customer placed, and the date that the order was placed. For customers who have not placed orders, you must substitute a zero for the order ID and 01/01/1990 for the date.
              Which Transact-SQL statement should you run?
              70-761 dumps exhibit

              • A. Option A
              • B. Option B
              • C. Option C
              • D. Option D

              Answer: A

              Explanation: ISNULL Syntax: ISNULL ( check_expression , replacement_value ) author:"Luxemburg, Rosa"
              The ISNULL function replaces NULL with the specified replacement value. The value of check_expression is returned if it is not NULL; otherwise, replacement_value is returned after it is implicitly converted to the type of check_expression.
              References: https://msdn.microsoft.com/en-us/library/ms184325.aspx

              NEW QUESTION 17
              You have a database that contains the following tables:
              70-761 dumps exhibit
              A delivery person enters an incorrect value for the CustomerID column in the Invoices table and enters the following text in the ConfirmedReceivedBy column: “Package signed for by the owner Tim.”
              You need to find the records in the Invoices table that contain the word Tim in the CustomerName field. How should you complete the Transact-SQL statement? 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.
              70-761 dumps exhibit

                Answer:

                Explanation: Box 1: SELECT CustomerID FROM Sales.Invoices
                Box 2: INNER JOIN Sales.Customers.CustomerID = Sales.Invoices.CustomerID Box 3: WHERE CustomerName LIKE '%tim%'
                Box 4: WHERE ConfirmedReceiveBy IN (SELECT CustomerName FROM Sales.Customers)

                NEW QUESTION 18
                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 named Products that stores information about products your company sells. The table has a column named ListPrice that stores retail pricing information for products.
                Some products are used only internally by the company. Records for these products are maintained in the Products table for inventory purposes. The price for each of these products is $0.00. Customers are not permitted to order these products.
                You need to increase the list price for products that cost less than $100 by 10 percent. You must only increase pricing for products that customers are permitted to order.
                Solution: You run the following Transact-SQL statement:
                70-761 dumps exhibit
                Does the solution meet the goal?

                • A. Yes
                • B. No

                Answer: A

                P.S. Surepassexam now are offering 100% pass ensure 70-761 dumps! All 70-761 exam questions have been updated with correct answers: https://www.surepassexam.com/70-761-exam-dumps.html (191 New Questions)