Which SET session options are useful for query optimization? (Choose all that apply.)
A. SET STATISTICS IOWhich form of the proximity term defines the distance and the order?
A. NEAR((SearchWord1, SearchWord2), 5, TRUE)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)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()Which node type test can be used to retrieve all nodes of an XML instance?
A. Asterisk (*)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:

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.Which of the following is an example of a scalar subquery?
A. select max(price) from productsHOTSPOT
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:

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.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.