| Exam Code/Number: | 70-461Join the discussion |
| Exam Name: | Querying Microsoft SQL Server 2012/2014 |
| Certification: | Microsoft |
| Question Number: | 252 |
| Publish Date: | Nov 30, 2026 |
|
Rating
100%
|
|
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?




You administer a Microsoft SQL Server 2012 server. You plan to deploy new features to an application. You need to evaluate existing and potential clustered and non-clustered indexes that will improve performance.
What should you do?
You administer a Microsoft SQL Server 2012 database that has Trustworthy set to On. You create a stored procedure that returns database-level information from Dynamic Management Views. You grant User1 access to execute the stored procedure. You need to ensure that the stored procedure returns the required information when User1 executes the stored procedure. You need to achieve this goal by granting the minimum permissions required. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
You have an XML schema collection named Sales.InvoiceSchema.
You need to declare a variable of the XML type named Invoice. The solution must ensure that the Invoice variable is validated against the Sales.InvoiceSchema schema.
Part of the correct Transact-SQL has been provided in the answer area below. Enter the Transact-SQL in the answer area that resolves the problem and meets the stated goals or requirements. You can add Transact-SQL within the Transact-SQL segment that has been provided as well as below it.

Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by line and character position.
You have a database that contains the tables shown in the exhibit. (Click the Exhibit button.)
You need to create a view named uv_CustomerFullName to meet the following requirements:
* The code must NOT include object delimiters.
* The view must be created in the Sales schema.
* Columns must only be referenced by using one-part names.
* The view must return the first name and the last name of all customers.
* The view must prevent the underlying structure of the customer table from being changed.
* The view must be able to resolve all referenced objects, regardless of the user's default schema.
Which code segment should you use?
To answer, type the correct code in the answer area.