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 31:

    SIMULATION

    You have a database that contains the following tables.

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

    Return the LastName and SalesYTD for the three salespersons with the highest year-to-date sales values.

    Exclude salespersons that have no value for TerritoryID.

    Construct the query using the following guidelines:

    Use the first letter of a table name as the table alias.

    Use two-part column names.

    Do not surround object names with square brackets.

    Do not use implicit joins.

    Use only single quotes for literal text.

    Use aliases only if required.

    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.

    1 SELECT top 3 lastname,salesYTD 2 FROM Person AS p INNER JOIN SalesPerson AS s 3 ON p.PersonID = s.SalesPersonID 4 WHERE territoryid is null 5 order by salesytd dsec

    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 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 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 33:

    DRAG DROP

    You have a database that includes the following tables:

    You need to create a list of all customer IDs and the date of the last order that each customer placed. If the customer has not placed any orders, you must return the date January 1, 1900. The column names must be CustomerID and LastOrderDate.

    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.

    Select and Place:

  • Question 34:

    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:

    The tables include the following records: Customer_CRMSystem

    Customer_HRSystem

    Records that contain null values for CustomerCode can be uniquely identified by CustomerName. You need to display a Cartesian product, combining both tables.

    Which Transact-SQL statement should you run?

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

  • Question 35:

    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:

    Insert product records as a single unit of work.

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

    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 this meet the goal?

    A. Yes
    B. No

  • Question 36:

    You have a disk-based table that contains 15 columns.

    You query the table for the number of new rows created during the current day.

    You need to create an index for the query. The solution must generate the smallest possible index.

    Which type of index should you create?

    A. clustered
    B. filtered nonclustered with a getdate() predicate in the WHERE statement clause
    C. hash
    D. nonclustered with compression enabled

  • Question 37:

    You have a database that contains the following tables:

    You need to write a query that returns a list of all customers who have not placed orders. Which Transact-SQL statement should you run?

    A. SELECT c.custid FROM Sales.Customers c INNER JOIN Sales.Order oON c.custid = o.custid
    B. SELECT custid FROM Sales.Customers INTERSECTSELECT custid FROM Sales.Orders
    C. SELECTc.custid FROM Sales.Customers c LEFT OUTER Sales.Order oON c.custid = o.custid
    D. SELECT c.custid FROM Sales.Customers c LEFT OUTER JOIN Sales.Order oON c.custid = o.custid WHERE orderid IS NULL
    E. SELECT custid FROM Sales.Customers UNION ALL SELECT custid FROM Sales.Orders
    F. SELECT custid FROM Sales.Customers UNION SELECT custid FROM Sales.Orders
    G. SELECT c.custid FROM Sales.Customers c RIGHT OUTER JOIN Sales.Orders o ON c.custid = o.custid

  • Question 38:

    You need to create a table named Sales that meets the following requirements:

    Which Transact-SQL statement should you run?

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

  • Question 39:

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

    You need to view all customer data.

    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 40:

    HOTSPOT

    You need to develop a Transact-SQL statement that meets the following requirements:

    The statement must return a custom error when there are problems updating a table.

    The error number must be the value 50555.

    The error severity level must be 14.

    A Microsoft SQL Server alert must be triggered when the error condition occurs.

    Which Transact-SQL segment should you use for each requirement? To answer, select the appropriate Transact-SQL segments in the answer area.

    Hot Area:

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.