2026 New 70-761 Exam Dumps with PDF and VCE Free: https://www.2passeasy.com/dumps/70-761/

Proper study guides for 70-761 Querying Data with Transact-SQL (beta) certified begins with preparation products which designed to deliver the by making you pass the 70-761 test at your first time. Try the free right now.

Free demo questions for Microsoft 70-761 Exam Dumps Below:

NEW QUESTION 1
You have a database that includes the following tables. HumanResources.Employee
70-761 dumps exhibit
Sales.SalesPerson
70-761 dumps exhibit
The HumanResources.Employee table has 2,500 rows, and the Sales.SalesPerson table has 2,000 rows.
You review the following Transact-SQL statement:
70-761 dumps exhibit
You need to determine the performance impact of the query.
How many times will a lookup occur on the primary key index on the Sales.SalesPerson table?

  • A. 200
  • B. 2,000
  • C. 2,500
  • D. 5,500

Answer: C

NEW QUESTION 2
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 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 named DB1 that contains two tables named Sales.Customers and Sales.Orders. Sales.Customers has a foreign key relationship to a column named CustomerID in Sales.Orders.
    You need to recommend a query that returns all the customers. The query must also return the number of orders that each customer placed in 2021.
    Solution: You recommend the following query:
    70-761 dumps exhibit
    Does this meet the goal?

    • A. Yes
    • B. No

    Answer: B

    NEW QUESTION 4
    You run the following Transact-SQL statements:
    70-761 dumps exhibit
    You need to create a query that returns the total number of attendees for each combination of CourseID, CourseDate, and the following locations: Lisbon, London, and Seattle. The result set should resemble the following:
    70-761 dumps exhibit
    Which Transact-SQL code segment should you run?

    • A. SELECT *FROM CourseParticipants PIVOT(SUM(NumParticipants) FOR LocationDescription IN (Lisbon, London, Seattle))
    • B. SELECT *FROM CourseParticipants PIVOT(SUM(NumParticipants) FOR LocationDescription IN (Lisbon, London, Seattle)) as PVTTable
    • C. SELECT *FROM CourseParticipants UNPIVOT(SUM(NumParticipants) FOR LocationDescription IN (Lisbon, London, Seattle)
    • D. SELECT *FROM CourseParticipants UNPIVOT(SUM(NumParticipants) FOR LocationDescription IN (Lisbon, London, Seattle) AS PVTTable

    Answer: B

    Explanation: References: https://www.techonthenet.com/sql_server/pivot.php

    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 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: Products with a price between $0.00 and $100 will be increased, while products with a price of $0.00 would not be increased.

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

    • A. Yes
    • B. No

    Answer: B

    NEW QUESTION 7
    You have a table named HR.Employees as shown in the exhibit. (Click the exhibit button.)
    70-761 dumps exhibit
    You need to write a query that will change the value of the job title column to Customer Representative for any employee who lives in Seattle and has a job title of Sales Representative. If the employee does not have a manager defined, you must not change the title.
    Which three 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.
    70-761 dumps exhibit

      Answer:

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

      NEW QUESTION 8
      You have a database named DB1 that contains a temporal table named Sales.Customers.
      You need to create a query that returns the credit limit that was available to each customer in DB1 at the beginning of 2021.
      Which query should you execute?
      70-761 dumps exhibit
      70-761 dumps exhibit

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

      Answer: B

      NEW QUESTION 9
      You run the following Transact SQL statement:
      70-761 dumps exhibit
      You use the table to store data about training courses: when they finished, the location, and the number of participants in the courses. You need to display a result set that shows aggregates for all possible combination of the number of participants. Which Transact-SQL statement should you run?
      A)
      70-761 dumps exhibit
      B)
      70-761 dumps exhibit
      C)
      70-761 dumps exhibit
      D)
      70-761 dumps exhibit

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

      Answer: A

      NEW QUESTION 10
      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 contains a single table named tblVehicleRegistration. The table is defined as follows:
      70-761 dumps exhibit
      You run the following query:
      70-761 dumps exhibit
      The query output window displays the following error message: “Conversion failed when converting the varchar value ‘AB012’ to data type int.”
      You need to resolve the error.
      Solution: You modify the Transact-SQL statement as follows:
      70-761 dumps exhibit
      Does the solution meet the goal?

      • A. Yes
      • B. No

      Answer: B

      NEW QUESTION 11
      You have two tables as shown in the following image:
      70-761 dumps exhibit
      You need to analyze the following query. (Line numbers are included for reference only.)
      70-761 dumps exhibit
      Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
      NOTE: Each correct selection is worth one point.
      70-761 dumps exhibit

        Answer:

        Explanation: To compare char(5) and nchar(5) an implicit conversion has to take place. Explicit conversions use the CAST or CONVERT functions, as in line number 6.
        References:
        https://docs.microsoft.com/en-us/sql/t-sql/data-types/data-type-conversion-database-engine#implicit-and-explici

        NEW QUESTION 12
        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 contains a single table named tblVehicleRegistration. The table is defined as follows:
        70-761 dumps exhibit
        You run the following query:
        70-761 dumps exhibit
        The query output window displays the following error message: “Conversion failed when converting the varchar value ‘AB012’ to data type int.”
        You need to resolve the error.
        Solution: You modify the Transact-SQL statement as follows:
        70-761 dumps exhibit
        Does the solution meet the goal?

        • A. Yes
        • B. No

        Answer: B

        Explanation: https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2021

        NEW QUESTION 13
        You have a table named Cities that has the following two columns: CityID and CityName. The CityID column uses the int data type, and CityName uses nvarchar(max).
        You have a table named RawSurvey. Each row includes an identifier for a question and the number of persons that responded to that question from each of four cities. The table contains the following representative data:
        70-761 dumps exhibit
        A reporting table named SurveyReport has the following columns: CityID, QuestionID, and RawCount, where RawCount is the value from the RawSurvey table.
        You need to write a Transact-SQL query to meet the following requirements:
        - Retrieve data from the RawSurvey table in the format of the SurveyReport table.
        - The CityID must contain the CityID of the city that was surveyed.
        - The order of cities in all SELECT queries must match the order in the RawSurvey table.
        - The order of cities in all IN statements must match the order in the RawSurvey table. Construct the query using the following guidelines:
        - Use one-part names to reference tables and columns, except where not possible.
        - ALL SELECT statements must specify columns.
        - Do not use column or table aliases, except those provided.
        - 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: UNPIVOT must be used to rotate columns of the Rawsurvey table into column values. References: https://technet.microsoft.com/en-us/library/ms177410(v=sql.105).aspx

          NEW QUESTION 14
          You need to create a table named Sales that meets the following requirements:
          70-761 dumps exhibit
          Which Transact-SQL statement should you run?
          70-761 dumps exhibit

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

          Answer: D

          Explanation: datetime2 Defines a date that is combined with a time of day that is based on 24-hour clock. datetime2 can be considered as an extension of the existing datetime type that has a larger date range, a larger default fractional precision, and optional user-specified precision.

          NEW QUESTION 15
          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:
          70-761 dumps exhibit
          You need to return normalized data for all customers that were added in the year 2014. Which Transact-SQL statement should you run?
          70-761 dumps exhibit
          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: G

          NEW QUESTION 16
          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 creating indexes in a data warehouse.
          You have a dimension table named Table1 that has 10,000 rows. The rows are used to generate several reports. The reports join a column that is the primary key.
          The execution plan contains bookmark lookups for Table1. You discover that the reports run slower than expected.
          You need to reduce the amount of time it takes to run the reports.
          Solution: You create a nonclustered index on the primary key column that does NOT include columns. Does this meet the goal?

          • A. YES
          • B. NO

          Answer: A

          Explanation: References:
          https://docs.microsoft.com/en-us/sql/relational-databases/indexes/clustered-and-nonclustered-indexes-described?

          NEW QUESTION 17
          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 on this series.
          You have a database that tracks orders and deliveries for customers in North America. System versioning is enabled for all tables. The database contains the Sales.Customers, Application.Cities, and Sales.CustomerCategories tables.
          Details for the Sales.Customers table are shown in the following table:
          70-761 dumps exhibit
          Details for the Application.Cities table are shown in the following table:
          70-761 dumps exhibit
          Details for the Sales.CustomerCategories table are shown in the following table:
          70-761 dumps exhibit
          The marketing department is performing an analysis of how discount affect credit limits. They need to know the average credit limit per standard discount percentage for customers whose standard discount percentage is between zero and four.
          You need to create a query that returns the data for the analysis.
          How should you complete the Transact-SQL statement? To answer, drag the appropriate Transact-SQL segments to the correct locations. Each Transact-SQL segments 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.
          70-761 dumps exhibit

            Answer:

            Explanation: Box 1: 0, 1, 2, 3, 4
            Pivot example:
            -- Pivot table with one row and five columns
            SELECT 'AverageCost' AS Cost_Sorted_By_Production_Days, [0], [1], [2], [3], [4]
            FROM
            (SELECT DaysToManufacture, StandardCost FROM Production.Product) AS SourceTable PIVOT
            (
            AVG(StandardCost)
            FOR DaysToManufacture IN ([0], [1], [2], [3], [4])
            ) AS PivotTable; Box 2: [CreditLimit]
            Box 3: PIVOT
            You can use the PIVOT and UNPIVOT relational operators to change a table-valued expression into another table. PIVOT rotates a table-valued expression by turning the unique values from one column in the expression into multiple columns in the output, and performs aggregations where they are required on any remaining column values that are wanted in the final output.
            Box 4: 0, 1, 2, 3, 4
            The IN clause determines whether a specified value matches any value in a subquery or a list. Syntax: test_expression [ NOT ] IN ( subquery | expression [ ,...n ] )
            Where expression[ ,... n ]
            is a list of expressions to test for a match. All expressions must be of the same type as test_expression. References: https://technet.microsoft.com/en-us/library/ms177410(v=sql.105).aspx

            Recommend!! Get the Full 70-761 dumps in VCE and PDF From Surepassexam, Welcome to Download: https://www.surepassexam.com/70-761-exam-dumps.html (New 191 Q&As Version)