Microsoft 70-461 Querying Microsoft SQL Server 2012 Online Training
Microsoft 70-461 Online Training
The questions for 70-461 were last updated at Dec 19,2024.
- Exam Code: 70-461
- Exam Name: Querying Microsoft SQL Server 2012
- Certification Provider: Microsoft
- Latest update: Dec 19,2024
You use a Microsoft SQL Server database that contains a table.
The table has records of web requests as shown in the exhibit. (Click the Exhibit button.)
Your network has three web servers that have the following IP addresses:
– 10.0.0.1
– 10.0.0.2
– 10.0.0.3
You need to create a query that displays the following information:
– The number of requests for each web page (UriStem) grouped by the web server (ServerIP) that served the request
– A column for each server
Which Transact-SQL query should you use?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
DRAG DROP
You develop a Microsoft SQL Server database for a sales ordering application.
You want to create a report that displays the increase of order quantities over the previous year for each product.
You need to write a query that displays:
– Product name,
– Year of sales order,
– Sales order quantity, and
– Increase of order quantity over the previous year.
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.
You develop a Microsoft SQL Server database that contains a table named Employee, defined as follows:
You need to create a view that contains two computed columns representing the month and the year of the [HireDate] of each Employee.
Which function should you use?
- A . DATENAME( )
- B . CONVERT( )
- C . TRYDATEDIFF( )
- D . MONTH( ) and YEAR( )
You administer a Microsoft SQL Server database named ContosoDb.
The database has the following schema collection:
The database has a table named ReceivedPurchaseOrders that includes an XML column named PurchaseOrder by using the above schema.
You need to set the requiresApproval attribute of the XML documents to false if they contain more than 50 items.
Which Transact-SQL query should you run?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
DRAG DROP
Your Microsoft SQL Server database contains tables as shown below.
You have tables that were created by running the following Transact-SQL statements:
The Product table contains 10,000 records. The maximum ProductID is 11,000.
There are 12 rows in the Category table. The maximum CategoryID is 12.
The Product table contains at least one product in every category.
Data in the tables was accidently modified. To correct this, you need to make some updates directly to the tables. You issue several statements.
Which result or results will you obtain for each Transact-SQL statement? To answer, drag the appropriate results to the correct Transact-SQL statements. Each result 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.
DRAG DROP
You develop an application that uses data from a Microsoft SQL Server database.
Your application experiences blocking problems.
You need to enable row versioning and you want connections to have row versioning enabled by default.
How should you complete the Transact-SQL statement? To answer, drag the appropriate command to the correct positions. Each command 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.
DRAG DROP
You are a developer for a Microsoft SQL Server database. You need to write a stored procedure that performs several operations in the most efficient way possible.
Which operator or operators should you use? To answer, drag the appropriate operators to the correct operations. Each operator 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.
You develop a database application for Microsoft SQL Server and Microsoft Azure SQL Database.
You need to raise an exception and transfer execution to a CATCH block.
You need to ensure that the exception returns output in the following format:
Msg 51000, Level 16, State 1, Line 1
The record does not exist.
Which Transact-SQL statement should you run?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
DRAG DROP
You develop a database application for Microsoft SQL Server 2012 and Microsoft Azure SQL Database.
You create a table named Purchasing.vVendorWithAddresses as shown in the following table.
You write the following Transact-SQL (Line numbers are included for reference only.) 01 CREATE PROCEDURE
You need to add Transact-SQL statements at line 08 to ensure that GetVendorInStateNeighbors returns the names of vendors that are located in all states where the vendor specified in the @vendorname parameter has a location.
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.
A local bank uses a SQL Server database to manage accounts. You are developing a stored procedure that contains multiple Transact-SQL INSERT statements. The stored procedure must use transaction management to handle errors. You need to ensure that the stored procedure rolls back the entire transaction if a run-time occurs.
Which Transact-SQL statement should you add to the stored procedure?
- A . SET ARITHABORT ON
- B . SET NOEXEC ON
- C . SET TRANSACTION ISOLATION LEVEL ON
- D . SET XACT_ABORT ON