READ Free Dumps For Microsoft- 70-461
Question ID 15128 | You have a database that contains the tables as shown below:
You have a stored procedure named Procedure1. Procedure1 retrieves all order ids after a
specific date. The rows for Procedure1 are not sorted. Procedure1 has a single parameter
named Parameter1. Parameter1 uses the varchar type and is configured to pass the
specific date to Procedure1. A database administrator discovers that OrderDate is not
being compared correctly to Parameter1 after the data type of the column is changed to
datetime. You need to update the SELECT statement to meet the following requirements:
✑ The code must NOT use aliases.
✑ The code must NOT use object delimiters.
✑ The objects called in Procedure1 must be able to be resolved by all users.
✑ OrderDate must be compared to Parameter1 after the data type of Parameter1 is
changed to datetime.
Which SELECT statement should you use?
To answer, type the correct code in the answer area.
|
Option A | Answer : Please review the explanation part for this answer
|
Correct Answer | A |
Explanation Explanation: SELECT Orders.OrderID FROM Orders WHERE Orders.OrderDate>CONVERT(datetime,@Parameter1)
Question ID 15129 | You have a database that contains the tables shown in the exhibit. (Click the Exhibit
button.)
You deploy a new server that has SQL Server 2012 installed. You need to create a table
named
Sales.OrderDetails on the new server. Sales.OrderDetails must meet the following
requirements:
✑ Write the results to a disk.
✑ Contain a new column named LineItemTotal that stores the product of ListPrice
and Quantity for each row.
✑ The code must NOT use any object delimiters.
The solution must ensure that LineItemTotal is stored as the last column in the table. Which
code segment should you use?
To answer, type the correct code in the answer area.
|
Option A | Answer : Please review the explanation part for this answer
|
Correct Answer | A |
Explanation Explanation: CREATE TABLE Sales.OrderDetails ( ListPrice money not null, Quantity int not null, LineItemTotal as (ListPrice * Quantity) PERSISTED)