What should you do?

You develop a Microsoft SQL Server 2012 database. You create a view from the Orders and OrderDetails tables by using the following definition. You need to ensure that users are able to modify data by using the view. What should you do?A . Create an AFTER trigger on the view.B...

October 8, 2018 No Comments READ MORE +

Which Transact-SQL query should you use?

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.) You need to display rows from the Orders table for the Customers row having the CustomerId value set to 1 in the following XML format. <CUSTOMERS Name="Customer A"...

October 7, 2018 No Comments READ MORE +

Which Transact-SQL query should you use?

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.) You need to display rows from the Orders table for the Customers row having the CustomerId value set to 1 in the following XML format. Which Transact-SQL query...

October 6, 2018 No Comments READ MORE +

What should you do?

You develop a Microsoft SQL Server 2012 database. You create a view from the Orders and OrderDetails tables by using the following definition. You need to improve the performance of the view by persisting data to disk. What should you do?A . Create an INSTEAD OF trigger on the view.B...

October 5, 2018 No Comments READ MORE +

Which Transact-SQL statement or statements should you use?

You develop a Microsoft SQL Server 2012 database. You need to create and call a stored procedure that meets the following requirements: • Accepts a single input parameter for Customer ID. • Returns a single integer to the calling application. Which Transact-SQL statement or statements should you use? (Each correct...

October 4, 2018 No Comments READ MORE +

What should you do?

You use a Microsoft SQL Server 2012 database that contains two tables named SalesOrderHeader and SalesOrderDetail. The indexes on the tables are as shown in the exhibit. (Click the Exhibit button.) You write the following Transact-SQL query: You discover that the performance of the query is slow. Analysis of the...

October 2, 2018 No Comments READ MORE +

Which Transact- SQL statement should you use?

You are a database developer of a Microsoft SQL Server 2012 database. You are designing a table that will store Customer data from different sources. The table will include a column that contains the CustomerID from the source system and a column that contains the SourceID. A sample of this...

October 2, 2018 No Comments READ MORE +

What should you do?

You are developing a database application by using Microsoft SQL Server 2012. An application that uses a database begins to run slowly. Your investigation shows the root cause is a query against a read-only table that has a clustered index. The query returns the following six columns: • One column...

September 27, 2018 No Comments READ MORE +

Which Transact-SQL query should you use?

Your database contains a table named Purchases. The table includes a DATETIME column named PurchaseTime that stores the date and time each purchase is made. There is a non-clustered index on the PurchaseTime column. The business team wants a report that displays the total number of purchases made on the...

September 25, 2018 No Comments READ MORE +

Which Transact-SQL query should you use?

A table named Profits stores the total profit made each year within a territory. The Profits table has columns named Territory, Year, and Profit. You need to create a report that displays the profits made by each territory for each year and its preceding year. Which Transact-SQL query should you...

September 25, 2018 No Comments READ MORE +