Free 70-761 Dumps Questions 2021

Want to know features? Want to lear more about experience? Study . Gat a success with an absolute guarantee to pass Microsoft 70-761 (Querying Data with Transact-SQL (beta)) test on your first attempt.

Also have 70-761 free dumps questions for you:

NEW QUESTION 1
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: B

Explanation: References:
https://docs.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-2021 https://docs.microsoft.com/en-us/sql/t-sql/data-types/float-and-real-transact-sql?view=sql-server-2021

NEW QUESTION 2
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 hash index on the primary key column. Does this meet the goal?

  • A. Yes
  • B. No

Answer: B

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 create a table named Customer by running the following Transact-SQL statement:
70-761 dumps exhibit
You must insert the following data into the Customer table:
70-761 dumps exhibit
You need to ensure that both records are inserted or neither record is inserted. 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: As there are two separate INSERT INTO statements we cannot ensure that both or neither records is inserted.

NEW QUESTION 4
You have a project management application. The application uses a Microsoft SQL Server database to store data. You are developing a software bug tracking add-on for the application.
The add-on must meet the following requirements:
Allow case sensitive searches for product.
Filter search results based on exact text in the description.
Support multibyte Unicode characters.
You run the following Transact-SQL statement:
70-761 dumps exhibit
You need to display a comma separated list of all product bugs filed by a user named User1.
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: References: https://docs.microsoft.com/en-us/sql/t-sql/functions/string-split-transact-sql?view=sql-server-2021

    NEW QUESTION 5
    You must create a report that shows the regions that have a factory but do not have a shipping center. You need to create the query for the report.
    Which two Transact-SQL statements can you use? Each correct answer presents a complete solution.
    A)
    70-761 dumps exhibit
    B)
    70-761 dumps exhibit
    C)
    70-761 dumps exhibit

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

    Answer: BC

    NEW QUESTION 6
    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 develop a query that meets the following requirements:
    Output data by using a tree-like structure.
    Allow mixed content types.
    Use custom metadata attributes.
    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: F

    NEW QUESTION 7
    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

    Answer: A

    NEW QUESTION 8
    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:
    70-761 dumps exhibit
    70-761 dumps exhibit
    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.
    70-761 dumps exhibit

      Answer:

      Explanation: Box 1: UPDATE T SET T.EndTime = P.EndTime
      We are updating the EndTime column in the Task table. Box 2: FROM Task AS T
      Where are updating the task table.
      Box 3:INNER JOIN Project AS P on T.ProjectID = P.ProjectID
      We join with the Project table (on the ProjectID columnID column). Box 4: WHERE P.EndTime is NOT NULL AND T.EndTime is NULL
      We select the columns in the Task Table where the EndTime column in the Project table has a value (NOT NULL), but where it is NULL in the Task Table.
      References: https://msdn.microsoft.com/en-us/library/ms177523.aspx

      NEW QUESTION 9
      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
      You need to create a query that meets the following requirements:
      - For customers that are not on a credit hold, return the CustomerID and the latest recorded population for the delivery city that is associated with the customer.
      - For customers that are on a credit hold, return the CustomerID and the latest recorded population for the postal city that is associated with the customer.
      Which two Transact-SQL queries will achieve the goal? Each correct answer presents a complete solution.
      70-761 dumps exhibit

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

      Answer: AB

      Explanation: Using Cross Joins
      A cross join that does not have a WHERE clause produces the Cartesian product of the tables involved in the join. The size of a Cartesian product result set is the number of rows in the first table multiplied by the number of rows in the second table.
      However, if a WHERE clause is added, the cross join behaves as an inner join. B: You can use the IIF in the ON-statement.
      IIF returns one of two values, depending on whether the Boolean expression evaluates to true or false in SQL Server.
      References:
      https://technet.microsoft.com/en-us/library/ms190690(v=sql.105).aspx https://msdn.microsoft.com/en-us/library/hh213574.aspx

      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 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: ISNULL ( check_expression , replacement_value ) Arguments:
      check_expression
      Is the expression to be checked for NULL. check_expression can be of any type. replacement_value
      Is the expression to be returned if check_expression is NULL. replacement_value must be of a type that is implicitly convertible to the type of check_expresssion.
      References: https://docs.microsoft.com/en-us/sql/t-sql/functions/isnull-transact-sql

      NEW QUESTION 11
      You need to develop a function that returns a list of courses grouped by the total number of students in a course.
      The function must list only courses that have more than a specific number of students. The specific number of students is defined as an input variable for the function.
      How should you complete the function? 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 12
        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 13
          You have a database that contains a table named Users. The table is defined as follows:
          70-761 dumps exhibit
          You have the following Comma Separated Values (CSV) file:
          70-761 dumps exhibit
          You need to load data from the CSV file into the Users table while meeting the following requirements:
          If a field value is not provided in the file, insert a NULL value for the corresponding column
          Load all records into the table with the correct UserId from the file
          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: 70-761 dumps exhibit

            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 tracks orders and deliveries for customers in North America. The database contains the following tables:
            Sales.Customers
            70-761 dumps exhibit
            Application.Cities
            70-761 dumps exhibit
            Sales.CustomerCategories
            70-761 dumps exhibit
            Your company is developing a new social application that connects customers to each other based on the
            distance between their delivery locations.
            You need to write a query that returns the nearest customer. Solution: You run the following Transact-SQL statement:
            70-761 dumps exhibit
            The variable @custID is set to a valid customer. Does the solution meet the goal?

            • A. Yes
            • B. No

            Answer: B

            NEW QUESTION 15
            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

              NEW QUESTION 16
              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 function that accepts a CustomerID as a parameter and returns the following information:
              - all customer information for the customer
              - the total number of orders for the customer
              - the total price of all orders for the customer
              - the average quantity of items per order
              How should you complete the function definition? To answer, drag the appropriate Transact-SQL segment to the correct locations. 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.
              70-761 dumps exhibit

                Answer:

                Explanation: Box1: RETURNS TABLE
                The function should return the following information:
                - all customer information for the customer
                - the total number of orders for the customer
                - the total price of all orders for the customer
                - the average quantity of items per order Box 2: COUNT
                The function should return the total number of orders for the customer. Box 3: SUM
                The function should return the total price of all orders for the customer. Box 3. AVG
                The function should return the average quantity of items per order. Box 4: GROUP BY
                Need to use GROUP BY for the aggregate functions.
                References: https://msdn.microsoft.com/en-us/library/ms186755.aspx

                NEW QUESTION 17
                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 develop a query that meets the following requirements:
                * Output data by using a tree-like structure.
                * Allow mixed content types.
                * Use custom metadata attributes.
                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: F

                Explanation: In a FOR XML clause, you specify one of these modes: RAW, AUTO, EXPLICIT, and PATH.
                * The EXPLICIT mode allows more control over the shape of the XML. You can mix attributes and elements at will in deciding the shape of the XML. It requires a specific format for the resulting rowset that is generated because of query execution. This rowset format is then mapped into XML shape. The power of EXPLICIT mode is to mix attributes and elements at will, create wrappers and nested complex properties, create
                space-separated values (for example, OrderID attribute may have a list of order ID values), and mixed contents.
                * The PATH mode together with the nested FOR XML query capability provides the flexibility of the EXPLICIT mode in a simpler manner.
                References: https://msdn.microsoft.com/en-us/library/ms178107.aspx

                NEW QUESTION 18
                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 several connected tables. The tables contain sales data for customers in the United States only.
                You have the following partial query for the database. (Line numbers are included for reference only.)
                70-761 dumps exhibit
                You need to complete the query to generate the output shown in the following table.
                70-761 dumps exhibit
                Which statement clause should you add at line 3?

                • A. GROUP BY
                • B. MERGE
                • C. GROUP BY ROLLUP
                • D. LEFT JOIN
                • E. GROUP BY CUBE
                • F. CROSS JOIN
                • G. PIVOT
                • H. UNPIVOT

                Answer: E

                Explanation: Example of GROUP BY CUBE result set:
                In the following example, the CUBE operator returns a result set that has one grouping for all possible combinations of columns in the CUBE list and a grand total grouping.
                70-761 dumps exhibit
                References: https://technet.microsoft.com/en-us/library/bb522495(v=sql.105).aspx

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