Latest MCSE 70-461 Real Exam Download 1-5

Ensurepass

 

QUESTION 1

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.)

 

clip_image001[6]

 

You need to display rows from the Orders table for the Customers row having the CustomerId value set to1 in the following XML format:

 

<row OrderId=”1″ OrderDate=”2000-01-01T00:00:00″ Amount=”3400.00″ Name=”Customer A” Country=”Australia” />

<row OrderId=”2″ OrderDate=”2001-01-01T00:00:00″ Amount=”4300.00″ Name=”Customer A” Country=”Australia” />

 

Which Transact-SQL query should you use?

 

A.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML RAW

B.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML RAW, ELEMENTS

C.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML AUTO

D.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId – Customers.

CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

E.SELECT Name, Country, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId- 1

FOR XML AUTO

F.SELECT Name, Country, Orderld, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

G.SELECT Name AS ‘@Name’, Country AS ‘@Country’, OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)

H.SELECT Name AS ‘Customers/Name’, Country AS ‘Customers/Country’, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)


Correct Answer:A

 

 

QUESTION 2

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.)

 

clip_image002[12]

 

You need to display rows from the Orders table for the Customers row having the CustomerIdvalue set to 1 in the following XML format.

 

clip_image003[4]

 

Which Transact-SQL query should you use?

 

A.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML RAW

B.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers=CustomerId = 1

FOR XML RAW, ELEMENTS

C.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML AUTO

D.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

E.SELECT Name, Country, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO

F.SELECT Name, Country, Orderld, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

G.SELECT Name AS ‘@Name’, Country AS ‘@Country’, OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)

H.SELECT Name AS ‘Customers/Name’, Country AS ‘Customers/Country’, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)

 

Correct Answer:C

 

 

QUESTION 3

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.)

 

clip_image004[8]

 

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” Country=”Australia”>

<ORDERS OrderID=”1″ OrderDate=”2001-01-01″ Amount=”3400.00″ />

<ORDERS OrderID=”2″ OrderDate=”2002-01-01″ Amount=”4300.00″ />

</CUSTOMERS>

 

Which Transact-SQL query should you use?

 

A.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML RAW

B.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML RAW, ELEMENTS

C.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.CustomerId

WHERE Customers.CustomerId = 1

FOR XML AUTO

D.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId – Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

E.SELECT Name, Country, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO

F.SELECT Name, Country, Orderld, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

G.SELECT Name AS ‘@Name’, Country AS ‘@Country’, OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)

H.SELECT Name AS ‘Customers/Name’, Country AS ‘Customers/Country’, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)

 

Correct Answer:E

 

 

QUESTION 4

You administer a Microsoft SQL Server 2012 database named ContosoDb. Tables are defined as shown in the exhibit. (Click the Exhibit button.)

 

clip_image005[4]

 

You need to display rows from the Orders table for the Customers row having the CustomerId value set to1 in the following XML format.

 

clip_image006[4]

 

Which Transact-SQL query should you use?

 

A.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML RAW

B.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML RAW, ELEMENTS

C.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId = 1

FOR XML AUTO

D.SELECT OrderId, OrderDate, Amount, Name, Country

FROM Orders INNER JOIN Customers ON Orders.CustomerId = Customers.

CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

E.SELECT Name, Country, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId- 1

FOR XML AUTO

F.SELECT Name, Country, Orderld, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML AUTO, ELEMENTS

G.SELECT Name AS ‘@Name’, Country AS ‘@Country’, OrderId, OrderDate, Amount FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)

H.SELECT Name AS ‘Customers/Name’, Country AS ‘Customers/Country’, OrderId, OrderDate, Amount

FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId

WHERE Customers.CustomerId= 1

FOR XML PATH (‘Customers’)

 

Correct Answer:D

 

 

QUESTION 5

You develop a Microsoft SQL Server 2012 server database that supports an application. The application contains a table that has the following definition:

 

CREATE TABLE Inventory (

ItemID int NOT NULL PRIMARY KEY,

ItemsInStore int NOT NULL,

ItemsInWarehouse int NOT NULL)

 

You need to create a computed column that returns the sum total of the ItemsInStore and ItemsInWarehouse values for each row. The new column is expected to be queried heavily, and you need to be able to index the column. Which Transact-SQL statement should you use?

 

A.ALTER TABLE Inventory

ADD TotalItems AS ItemslnStore + ItemsInWarehouse

B.ALTER TABLE Inventory

ADD TotalItems AS ItemsInStore + ItemsInWarehouse PERSISTED

C.ALTER TABLE Inventory

ADD TotalItems AS SUM(ItemsInStore, ItemsInWarehouse) PERSISTED

D.ALTER TABLE Inventory

ADD TotalItems AS SUM(ItemsInStore, ItemsInWarehouse)

 

Correct Answer:B

Download Latest 70-461 Real Free Tests , help you to pass exam 100%.

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.