70-461 Exam Details

  • Exam Code
    :70-461
  • Exam Name
    :Querying Microsoft SQL Server 2012/2014
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :446 Q&As
  • Last Updated
    :Jan 17, 2022

Microsoft 70-461 Online Questions & Answers

  • Question 111:

    Which SET session options are useful for query optimization? (Choose all that apply.)

    A. SET STATISTICS IO
    B. SET STATISTICS EXECUTION_DETAILS
    C. SET IDENTITY_INSERT
    D. SET STATISTICS TIME

  • Question 112:

    Which form of the proximity term defines the distance and the order?

    A. NEAR((SearchWord1, SearchWord2), 5, TRUE)
    B. NEAR((SearchWord1, SearchWord2), CLOSE, ORDER)
    C. NEAR((SearchWord1, SearchWord2), 5)
    D. NEAR(SearchWord1, SearchWord2)

  • Question 113:

    You support a database structure shown in the exhibit.

    You need to write a query that displays the following details:

    1.

    Total sales made by sales people, year, city, and country

    2.

    Sub totals only at the city level and country level

    3.

    A grand total of the sales amount

    Which Transact-SQL query should you use?

    A. SELECT SalesPerson.Name, Country, City,DatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS TotalFROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonId = SalesPerson.SalesPersonId GROUP BY SalesPerson.Name, Country, City,DatePart(yyyy, SaleDate)
    B. SELECT SalesPerson.Name, Country, City,DatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS TotalFROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonId = SalesPerson.SalesPersonId GROUP BY ROLLUP(SalesPerson.Name, Country, City,DatePart(yyyy, SaleDate))
    C. SELECT SalesPerson.Name, Country, City,DatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS TotalFROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonId = SalesPerson.SalesPersonId GROUP BY ROLLUP(SalesPerson.Name, DatePart(yyyy, SaleDate),City, Country)ON Sale.SalesPersonID = SalesPerson.SalesPersonID GROUP BY CUBE(SalesPerson.Name, DatePart(yyyy, SaleDate), City, Country)
    D. SELECT SalesPerson.Name, Country, City,DatePart(yyyy, SaleDate), Sum(Amount)FROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonId = SalesPerson.SalesPersonId GROUP BY SalesPerson.Name, Country, City,DatePart(yyyy, SaleDate),GROUPING SETS((Country, City, DatePart(yyyy, SaleDate)),( Country, City) (Country),())

  • Question 114:

    You are working with a table that has an XML column that contains information about books. Each book may have an associated price.

    You need to write a query that returns each author on a separate row in XML format.

    Which XML method should you use?

    A. Value()
    B. Nodes()
    C. Query()
    D. Exist()

  • Question 115:

    Which node type test can be used to retrieve all nodes of an XML instance?

    A. Asterisk (*)
    B. comment()
    C. node()
    D. text()

  • Question 116:

    DRAG DROP

    You use a Microsoft Azure SQL Database instance named ContosoDb. ContosoDb contains a table named Products that has existing records.

    The Products table has columns named Code and QuantityOnHand.

    You need to create a new column in the Products table named Category that allows null values and sets the value of the Category column to General for all existing records.

    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.

    Select and Place:

  • Question 117:

    You work as a SQL Server 2012 database developer at ABC.com. You are developing a stored procedure that updates rows in several tables.

    You want the entire transaction to be rolled back should the stored procedure cause a run-time error.

    How would you accomplish this?

    A. You should make use of the SET XACT_ABORT ON statement in the stored procedure.
    B. You should have the stored procedure run in the SERIALIZABLE ISOLATION LEVEL.
    C. You should make use of a LOOP hint in the stored procedure.
    D. You should have the stored procedure run in the SNAPSHOT ISOLATION LEVEL.
    E. You should make use of an INSTEAD OF UPDATE trigger in the stored procedure.
    F. You should make use of RAISERROR in the stored procedure.

  • Question 118:

    Which of the following is an example of a scalar subquery?

    A. select max(price) from products
    B. select sum(price) from products
    C. select min(price) from products
    D. All of these

  • Question 119:

    HOTSPOT

    You are designing an order entry system that uses an SQL Server database. The following tables exist in the Purchasing database:

    You create the following trigger. Line numbers are included for reference only.

    For each of the following statements, select Yes if the statement is true. Otherwise, select No.

    Hot Area:

  • Question 120:

    How do the COMMIT and ROLLBACK commands work with nested transactions in T-SQL? (Choose all that apply.)

    A. A single COMMIT commits the entire nested transaction.
    B. A single ROLLBACK rolls back the entire nested transaction.
    C. A single COMMIT commits only one level of the nested transaction.
    D. A single ROLLBACK rolls back only one level of the nested transaction.

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-461 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.