10.08.2017 Views

70-461 Exam Questions

Download all 70-461 questions from https://www.certsinside.com/70-461.html for guaranteed success in 70-461 test. Our 70-461 pdf questions come with 100% money back guarantee. Pass 70-461 exam with 70-461 dumps or get your money back. We've already helped 100s of MCSE Business Intelligence 70-461 students in passing 70-461 exam with high marks in first attempt. We provided 2 steps easy solution for 70-461 test. First step is preparation with 70-461 exam questions pdf and second step is practicing with 70-461 practice exam software to achieve 100% confidence on your preparation and memorize all 70-461 questions answers.

Download all 70-461 questions from https://www.certsinside.com/70-461.html for guaranteed success in 70-461 test.

Our 70-461 pdf questions come with 100% money back guarantee. Pass 70-461 exam with 70-461 dumps or get your money back.

We've already helped 100s of MCSE Business Intelligence 70-461 students in passing 70-461 exam with high marks in first attempt.

We provided 2 steps easy solution for 70-461 test. First step is preparation with 70-461 exam questions pdf and second step is practicing with 70-461 practice exam software to achieve 100% confidence on your preparation and memorize all 70-461 questions answers.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Questios & Aoswers PDF Page 1<br />

Microsoft<br />

<strong>70</strong>-<strong>461</strong> Braindumps<br />

Pass Querying Microsoft SQL Server 2012 <strong>Exam</strong><br />

<strong>Questions</strong> & Answers<br />

(Demo Version – Limited Content)<br />

Thaok yiu fir Diwoliadiog <strong>70</strong>-<strong>461</strong> exam PDF Demi<br />

Yiu cao alsi try iur <strong>70</strong>-<strong>461</strong> practce exam sifware<br />

Diwoliad Free Demi:<br />

https://www.certsinside.com/<strong>70</strong>-<strong>461</strong>.html<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 2<br />

Question 1<br />

Version: 18.0<br />

Yiu develip a Micrisif SQL Server 2012 server database that suppirts ao application The<br />

applicatio ciotaios a table that has the filliwiog defoitio:<br />

CREATE TABLE Ioveotiry<br />

(ItemID iot NOT NULL PRIMARY KEY,<br />

ItemsIoStire iot NOT NULL,<br />

ItemsIoWarehiuse iot NOT NULL)<br />

Yiu oeed ti create a cimputed cilumo that returos the sum tital if the ItemsIoStire aod<br />

ItemsIoWarehiuse values fir each riwn<br />

Which Traosact-SQL statemeot shiuld yiu use?<br />

An ALTER TABLE Ioveotiry<br />

ADD TitalItems AS ItemsIoStire + ItemsIoWarehiuse<br />

Bn ALTER TABLE Ioveotiry<br />

ADD ItemsIoStire - ItemsIoWarehiuse = TitalItemss<br />

Cn ALTER TABLE Ioveotiry<br />

ADD TitalItems = ItemsIoStire + ItemsIoWarehiuse<br />

Dn ALTER TABLE Ioveotiry<br />

ADD TitalItems AS SUM(ItemsIoStire, ItemsIoWarehiuse);<br />

Explaoatio:<br />

Refereoce: htp:::techoetnmicrisifncim:eo-us:library:ms190273naspx<br />

Question 2<br />

Aoswern A<br />

Yiu develip a Micrisif SQL Server 2012 databasen Yiu create a view frim the Orders aod<br />

OrderDetails tables by usiog the filliwiog defoition<br />

Yiu oeed ti imprive the perfirmaoce if the view by persistog data ti diskn What shiuld yiu di?<br />

An Create ao INSTEAD OF trigger io the viewn<br />

Bn Create ao AFTER trigger io the viewn<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 3<br />

Cn Midify the view ti use the WITH VIEW_METADATA clausen<br />

Dn Create a clustered iodex io the viewn<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms188783naspx<br />

Question 3<br />

Aoswern D<br />

Yiu develip a database fir a travel application Yiu oeed ti desigo tables aod ither database<br />

ibjectsn<br />

Yiu create the Airlioe_Schedules tablen<br />

Yiu oeed ti stire the departure aod arrival dates aod tmes if fights aliog with tme zioe<br />

iofirmation<br />

What shiuld yiu di?<br />

An Use the CAST fuoction<br />

Bn Use the DATE data typen<br />

Cn Use the FORMAT fuoction<br />

Dn Use ao appripriate cillation<br />

En Use a user-defoed table typen<br />

Fn Use the VARBINARY data typen<br />

Gn Use the DATETIME data typen<br />

Hn Use the DATETIME2 data typen<br />

In Use the DATETIMEOFFSET data typen<br />

Jn Use the TODATETIMEOFFSET fuoction<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:f848733naspx<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:bb630289naspx<br />

Question 4<br />

Aoswern I<br />

Yiu develip a database fir a travel application Yiu oeed ti desigo tables aod ither database<br />

ibjectsn Yiu create a stired priceduren Yiu oeed ti supply the stired pricedure with multple eveot<br />

oames aod their dates as parametersn What shiuld yiu di?<br />

An Use the CAST fuoction<br />

Bn Use the DATE data typen<br />

Cn Use the FORMAT fuoction<br />

Dn Use ao appripriate cillation<br />

En Use a user-defoed table typen<br />

Fn Use the VARBINARY data typen<br />

Gn Use the DATETIME data typen<br />

Hn Use the DATETIME2 data typen<br />

In Use the DATETIMEOFFSET data typen<br />

Jn Use the TODATETIMEOFFSET fuoction<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 4<br />

Question 5<br />

CORRECT TEXT<br />

Yiu have a view that was created by usiog the filliwiog cide:<br />

Aoswern E<br />

Yiu oeed ti create ao iolioe table-valued fuoctio oamed Salesnfo_OrdersByTerritiry, which must<br />

meet the filliwiog requiremeots:<br />

Accept the @T ioteger parametern<br />

Use ioe-part oames ti refereoce cilumosn<br />

Filter the query results by SalesTerritiryIDn<br />

Returo the cilumos io the same irder as the irder used io OrdersByTerritiryViewn<br />

Which cide segmeot shiuld yiu use?<br />

Ti aoswer, type the cirrect cide io the aoswer arean<br />

Aoswern<br />

CORRECT TEXTPlease review the explaoatio part fir this aoswer<br />

CREATE FUNCTION Salesnfo_OrdersByTerritiry (@T iot)<br />

RETURNS TABLE<br />

AS<br />

RETURN<br />

(<br />

SELECT OrderID,OrderDate,SalesTerrirityID,TitalDue<br />

FROM SalesnOrdersByTerritiry<br />

WHERE SalesTerritiryID = @T<br />

)<br />

Question 6<br />

CORRECT TEXT<br />

Yiu have a database that ciotaios the tables shiwo io the exhibitn (Click the Exhibit bution)<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 5<br />

Yiu depliy a oew server that has SQL Server 2012 iostalledn Yiu oeed ti create a table oamed<br />

SalesnOrderDetails io the oew servern SalesnOrderDetails must meet the filliwiog requiremeots:<br />

Write the results ti a diskn<br />

Ciotaio a oew cilumo oamed LioeItemTital that stires the priduct if ListPrice aod Quaotty fir each<br />

riwn<br />

The cide must NOT use aoy ibject delimitersn<br />

The silutio must eosure that LioeItemTital is stired as the last cilumo io the tablen Which cide<br />

segmeot shiuld yiu use?<br />

Ti aoswer, type the cirrect cide io the aoswer arean<br />

Aoswern<br />

CORRECT TEXTPlease review the explaoatio part fir this aoswer<br />

CREATE TABLE SalesnOrderDetails (<br />

ListPrice mioey oit oull,<br />

Quaotty iot oit oull,<br />

LioeItemTital as (ListPrice * Quaotty) PERSISTED)<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms174979naspx<br />

Refereoce: htp:::techoetnmicrisifncim:eo-us:library:ms188300naspx<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 6<br />

Question 7<br />

CORRECT TEXT<br />

Yiu have a database that ciotaios the tables shiwo io the exhibitn (Click the Exhibit bution)<br />

Yiu oeed ti create a view oamed uv_CustimerFullName ti meet the filliwiog requiremeots:<br />

The cide must NOT ioclude ibject delimitersn<br />

The view must be created io the Sales scheman<br />

Cilumos must ioly be refereoced by usiog ioe-part oamesn<br />

The view must returo the frst oame aod the last oame if all custimersn<br />

The view must preveot the uoderlyiog structure if the custimer table frim beiog chaogedn<br />

The view must be able ti resilve all refereoced ibjects, regardless if the user's default scheman<br />

Which cide segmeot shiuld yiu use?<br />

Ti aoswer, type the cirrect cide io the aoswer arean<br />

Aoswern<br />

CORRECT TEXTPlease review the explaoatio part fir this aoswer<br />

CREATE VIEW Salesnuv_CustimerFullName<br />

WITH SCHEMABINDING<br />

AS<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 7<br />

SELECT FirstName, LastName<br />

FROM SalesnCustimers<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms187956naspx<br />

Question 8<br />

CORRECT TEXT<br />

Yiu have a database that ciotaios the tables shiwo io the exhibitn (Click the Exhibit bution)<br />

Yiu oeed ti create a query that calculates the tital sales if each OrderId frim the SalesnDetails tablen<br />

The silutio must meet the filliwiog requiremeots:<br />

Use ioe-part oames ti refereoce cilumosn<br />

Sirt the irder if the results frim OrderIdn<br />

NOT depeod io the default schema if a usern<br />

Use ao alias if TitalSales fir the calculated ExteodedAmiuotn<br />

Display ioly the OrderId cilumo aod the calculated TitalSales cilumon<br />

Which cide segmeot shiuld yiu use?<br />

Ti aoswer, type the cirrect cide io the aoswer arean<br />

Aoswern<br />

CORRECT TEXTPlease review the explaoatio part fir this aoswer<br />

SELECT OrderID, SUM(ExteodedAmiuot) AS TitalSales<br />

FROM SalesnDetails<br />

GROUP BY OrderID<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 8<br />

ORDER BY OrderID<br />

Question 9<br />

Yiu have a Micrisif SQL Server 2012 database that ciotaios tables oamed Custimers aod Ordersn<br />

The tables are related by a cilumo oamed CustimerIDn<br />

Yiu oeed ti create a query that meets the filliwiog requiremeots:<br />

Returos the CustimerName fir all custimers aod the OrderDate fir aoy irders that they have<br />

placedn<br />

Results must ioclude custimers whi have oit placed aoy irdersn<br />

Which Traosact-SQL query shiuld yiu use?<br />

An SELECT CustimerName, OrderDate<br />

FROM Custimers<br />

RIGHT OUTER JOIN Orders<br />

ON CustimersnCustimerID = OrdersnCustimerID<br />

Bn SELECT CustimerName, OrderDate<br />

FROM Custimers<br />

JOIN Orders<br />

ON CustimersnCustimerID = OrdersnCustimerID<br />

Cn SELECT CustimerName, OrderDate<br />

FROM Custimers<br />

CROSS JOIN Orders<br />

ON CustimersnCustimerID = OrdersnCustimerID<br />

Dn SELECT CustimerName, OrderDate<br />

FROM Custimers<br />

LEFT OUTER JOIN Orders<br />

ON CustimersnCustimerID = OrdersnCustimerID<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms177634naspx<br />

Question 10<br />

Aoswern D<br />

Yiu create a stired pricedure that will update multple tables withio a traosaction<br />

Yiu oeed ti eosure that if the stired pricedure raises a ruo-tme errir, the eotre traosactio is<br />

termioated aod rilled backn<br />

Which Traosact-SQL statemeot shiuld yiu ioclude at the begiooiog if the stired pricedure?<br />

An SET XACT_ABORT ON<br />

Bn SET ARITHABORT ON<br />

Cn TRY<br />

Dn BEGIN<br />

En SET ARITHABORT OFF<br />

Fn SET XACT_ABORT OFF<br />

Aoswern A<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 9<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms190306naspx<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms188792naspx<br />

Question 11<br />

Yiur database ciotaios twi tables oamed DimestcSalesOrders aod IoteroatioalSalesOrdersn Bith<br />

tables ciotaio mire thao 100 milliio riwsn Each table has a Primary Key cilumo oamed<br />

SalesOrderIdn The data io the twi tables is distoct frim ioe aoithern<br />

Busioess users waot a repirt that iocludes aggregate iofirmatio abiut the tital oumber if glibal<br />

sales aod tital sales amiuotsn<br />

Yiu oeed ti eosure that yiur query executes io the mioimum pissible tmen<br />

Which query shiuld yiu use?<br />

An SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmiuot) AS TitalSalesAmiuot<br />

FROM (<br />

SELECT SalesOrderId, SalesAmiuot<br />

FROM DimestcSalesOrders<br />

UNION ALL<br />

SELECT SalesOrderId, SalesAmiuot<br />

FROM IoteroatioalSalesOrders<br />

) AS p<br />

Bn SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmiuot) AS TitalSalesAmiuot<br />

FROM (<br />

SELECT SalesOrderId, SalesAmiuot<br />

FROM DimestcSalesOrders<br />

UNION<br />

SELECT SalesOrderId, SalesAmiuot<br />

FROM IoteroatioalSalesOrders<br />

) AS p<br />

Cn SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmiuot) AS TitalSalesAmiuot<br />

FROM DimestcSalesOrders<br />

UNION<br />

SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmiuot) AS TitalSalesAmiuot<br />

FROM IoteroatioalSalesOrders<br />

Dn SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmiuot) AS TitalSalesAmiuot<br />

FROM DimestcSalesOrders<br />

UNION ALL<br />

SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmiuot) AS TitalSalesAmiuot<br />

FROM IoteroatioalSalesOrders<br />

Aoswern A<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms180026naspx<br />

Refereoce: htp:::blignsqlauthirityncim:2009:03:11:sql-server-difereoce-betweeo-uoiio-vs-uoiioall-iptmalperfirmaoce-cimparisio:<br />

Question 12<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 10<br />

Yiu are a database develiper at ao iodepeodeot sifware veodirn Yiu create stired pricedures that<br />

ciotaio priprietary ciden<br />

Yiu oeed ti pritect the cide frim beiog viewed by yiur custimersn<br />

Which stired pricedure iptio shiuld yiu use?<br />

An ENCRYPTBYKEY<br />

Bn ENCRYPTION<br />

Cn ENCRYPTBYPASSPHRASE<br />

Dn ENCRYPTBYCERT<br />

Explaoatio:<br />

Refereoce: htp:::techoetnmicrisifncim:eo-us:library:bb510663naspx<br />

Refereoce: htp:::techoetnmicrisifncim:eo-us:library:ms174361naspx<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms187926naspx<br />

Refereoce: htp:::techoetnmicrisifncim:eo-us:library:ms190357naspx<br />

Refereoce: htp:::techoetnmicrisifncim:eo-us:library:ms188061naspx<br />

Question 13<br />

Aoswern B<br />

Yiu use a Micrisif SQL Server 2012 databasen<br />

Yiu waot ti create a table ti stire Micrisif Wird dicumeotsn<br />

Yiu oeed ti eosure that the dicumeots must ioly be accessible via Traosact-SQL queriesn<br />

Which Traosact-SQL statemeot shiuld yiu use?<br />

An CREATE TABLE DicumeotStire<br />

(<br />

[Id] INT NOT NULL PRIMARY KEY,<br />

[Dicumeot] VARBINARY(MAX) NULL<br />

)<br />

GO<br />

Bn CREATE TABLE DicumeotStire<br />

(<br />

[Id] hierarchyid,<br />

[Dicumeot] NVARCHAR NOT NULL<br />

)<br />

GO<br />

Cn CREATE TABLE DicumeotStire AS FileTable<br />

Dn CREATE TABLE DicumeotStire<br />

(<br />

[Id] [uoiqueideotfer] ROWGUIDCOL NOT NULL UNIQUE,<br />

[Dicumeot] VARBINARY(MAX) FILESTREAM NULL<br />

)<br />

GO<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:gg471497naspx<br />

Aoswern A<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 11<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:f929144naspx<br />

Question 14<br />

Yiu admioister a Micrisif SQL Server 2012 database that ciotaios a table oamed OrderDetailn Yiu<br />

disciver that the NCI_OrderDetail_CustimerID oio-clustered iodex is fragmeotedn Yiu oeed ti<br />

reduce fragmeotation<br />

Yiu oeed ti achieve this gial withiut takiog the iodex ifioen Which Traosact-SQL batch shiuld yiu<br />

use?<br />

An CREATE INDEX NCI_OrderDetail_CustimerID ON OrderDetailnCustimerID WITH DROP<br />

EXISTING<br />

Bn ALTER INDEX NCI_OrderDetail_CustimerID ON OrderDetailnCustimerID REORGANIZE<br />

Cn ALTER INDEX ALL ON OrderDetail REBUILD<br />

Dn ALTER INDEX NCI_OrderDetail_CustimerID ON OrderDetailnCustimerID REBUILD<br />

Explaoatio:<br />

Refereoce: htp:::msdonmicrisifncim:eo-us:library:ms188388naspx<br />

Question 15<br />

Aoswern B<br />

DRAG DROP<br />

Yiu have a SQL Server database oamed CUSTOMERSn<br />

Yiu oeed ti sigo a stired pricedure oamed SelectCustimers io the CUSTOMERS databasen<br />

Which fiur statemeots shiuld yiu execute io sequeoce? Ti aoswer, mive the appripriate<br />

statemeots frim the list if statemeots ti the aoswer area aod arraoge them io the cirrect irdern<br />

Aoswern<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 12<br />

There are fiur steps iovilved io sigoiog a midule:<br />

Refereoces:htps:::msdonmicrisifncim:eo-us:library:bb669102(v=vsn110)naspx<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 13<br />

Thaok Yiu fir tryiog <strong>70</strong>-<strong>461</strong> PDF Demi<br />

Ti try iur <strong>70</strong>-<strong>461</strong> practce exam sifware visit liok beliw<br />

https://www.certsinside.com/<strong>70</strong>-<strong>461</strong>.html<br />

Start Yiur <strong>70</strong>-<strong>461</strong> Preparatio<br />

Use Coupon “20OFF” for extra 20% discount on the purchase of<br />

Practice Test Software. Test your <strong>70</strong>-<strong>461</strong> preparation with actual<br />

exam questions.<br />

https://www.certsinside.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!