{"id":3972,"date":"2019-07-05T05:50:58","date_gmt":"2019-07-05T05:50:58","guid":{"rendered":"https:\/\/www.dumpsbase.com\/freedumps\/?p=3972"},"modified":"2019-07-05T05:51:06","modified_gmt":"2019-07-05T05:51:06","slug":"updated-microsoft-sql-certification-70-461-exam-dumps","status":"publish","type":"post","link":"https:\/\/www.dumpsbase.com\/freedumps\/updated-microsoft-sql-certification-70-461-exam-dumps.html","title":{"rendered":"Updated Microsoft SQL Certification 70-461 Exam Dumps"},"content":{"rendered":"\n<p>70-461 Querying Microsoft SQL Server 2012 is one of the three exams(70-461,<a href=\"https:\/\/www.dumpsbase.com\/freedumps\/updated-mcsa-sql-server-2012-2014-70-462-exam-dumps.html\"><strong>70-462<\/strong><\/a>,<a href=\"https:\/\/www.dumpsbase.com\/freedumps\/free-online-test-for-sql-server-2012-2014-70-463-exam.html\"><strong>70-463<\/strong><\/a>) for MCSA: SQL Server 2012\/2014 certification, which validates your skills and knowledge in writing queries. We have updated Microsoft SQL Certification 70-461 Exam Dumps with 232 exam questions and answers to ensure you complete Microsoft SQL Certification 70-461 exam successfully.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>Check free demo<\/strong><\/span> of Updated Microsoft SQL Certification 70-461 Exam Dumps now. You will find the most updated 70-461 exam dumps is valuable.<\/p>\n<script>\n\t  window.fbAsyncInit = function() {\n\t    FB.init({\n\t      appId            : '622169541470367',\n\t      autoLogAppEvents : true,\n\t      xfbml            : true,\n\t      version          : 'v3.1'\n\t    });\n\t  };\n\t\n\t  (function(d, s, id){\n\t     var js, fjs = d.getElementsByTagName(s)[0];\n\t     if (d.getElementById(id)) {return;}\n\t     js = d.createElement(s); js.id = id;\n\t     js.src = \"https:\/\/connect.facebook.net\/en_US\/sdk.js\";\n\t     fjs.parentNode.insertBefore(js, fjs);\n\t   }(document, 'script', 'facebook-jssdk'));\n\t<\/script><script type=\"text\/javascript\" >\ndocument.addEventListener(\"DOMContentLoaded\", function(event) { \nif(!window.jQuery) alert(\"The important jQuery library is not properly loaded in your site. Your WordPress theme is probably missing the essential wp_head() call. You can switch to another theme and you will see that the plugin works fine and this notice disappears. If you are still not sure what to do you can contact us for help.\");\n});\n<\/script>  \n  \n<div  id=\"watupro_quiz\" class=\"quiz-area single-page-quiz\">\n<p id=\"submittingExam3948\" style=\"display:none;text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/plugins\/watupro\/img\/loading.gif\" width=\"16\" height=\"16\"><\/p>\n\n<div class=\"watupro-exam-description\" id=\"description-quiz-3948\"><\/div>\n\n<form action=\"\" method=\"post\" class=\"quiz-form\" id=\"quiz-3948\"  enctype=\"multipart\/form-data\" >\n<div class='watu-question ' id='question-1' style=';'><div id='questionWrap-1'  class='   watupro-question-id-120493'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>1. <\/span>You use a Microsoft SQL Server database that contains a table. <br \/>\r<br>The table has records of web requests as shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=537 height=525 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image002.jpg\" v:shapes=\"_x0000_i1025\"><br><br \/>\r<br>Your network has three web servers that have the following IP addresses: <br \/>\r<br>- 10.0.0.1 <br \/>\r<br>- 10.0.0.2 <br \/>\r<br>- 10.0.0.3 <br \/>\r<br>You need to create a query that displays the following information: <br \/>\r<br>- The number of requests for each web page (UriStem) grouped by the web server (ServerIP) that served the request <br \/>\r<br>- A column for each server <br \/>\r<br>Which Transact-SQL query should you use? <br \/>\r<br><br><img decoding=\"async\" width=650 height=279 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image004.jpg\" v:shapes=\"_x0000_i1026\"><br><br \/>\r<br><br><img decoding=\"async\" width=637 height=310 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image006.jpg\" v:shapes=\"_x0000_i1027\"><br><br \/>\r<br><br><img decoding=\"async\" width=650 height=240 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image008.jpg\" v:shapes=\"_x0000_i1028\"><br><br \/>\r<br><br><img decoding=\"async\" width=610 height=359 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image010.jpg\" v:shapes=\"_x0000_i1029\"><br><br \/>\r<br><br \/>\r<br><br><img decoding=\"async\" width=583 height=290 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image012.jpg\" v:shapes=\"_x0000_i1030\"><br><\/div><input type='hidden' name='question_id[]' id='qID_1' value='120493' \/><input type='hidden' id='answerType120493' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120493[]' id='answer-id-495404' class='answer   answerof-120493 ' value='495404'   \/><label for='answer-id-495404' id='answer-label-495404' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120493[]' id='answer-id-495406' class='answer   answerof-120493 ' value='495406'   \/><label for='answer-id-495406' id='answer-label-495406' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120493[]' id='answer-id-495408' class='answer   answerof-120493 ' value='495408'   \/><label for='answer-id-495408' id='answer-label-495408' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120493[]' id='answer-id-495409' class='answer   answerof-120493 ' value='495409'   \/><label for='answer-id-495409' id='answer-label-495409' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-2' style=';'><div id='questionWrap-2'  class='   watupro-question-id-120495'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>2. <\/span>DRAG DROP <br \/>\r<br>You develop a Microsoft SQL Server database for a sales ordering application. <br \/>\r<br>You want to create a report that displays the increase of order quantities over the previous year for each product. <br \/>\r<br>You need to write a query that displays: <br \/>\r<br>- Product name, <br \/>\r<br>- Year of sales order, <br \/>\r<br>- Sales order quantity, and <br \/>\r<br>- Increase of order quantity over the previous year. <br \/>\r<br>Which three Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=649 height=426 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image014.jpg\" v:shapes=\"_x0000_i1031\"><br><\/div><input type='hidden' name='question_id[]' id='qID_2' value='120495' \/><input type='hidden' id='answerType120495' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120495[]' id='textarea_q_120495' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-3' style=';'><div id='questionWrap-3'  class='   watupro-question-id-120496'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>3. <\/span>You develop a Microsoft SQL Server database that contains a table named Employee, defined as follows: <br \/>\r<br><br><img decoding=\"async\" width=268 height=182 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image018.jpg\" v:shapes=\"_x0000_i1033\"><br><br \/>\r<br>You need to create a view that contains two computed columns representing the month and the year of the [HireDate] of each Employee. <br \/>\r<br>Which function should you use?<\/div><input type='hidden' name='question_id[]' id='qID_3' value='120496' \/><input type='hidden' id='answerType120496' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120496[]' id='answer-id-495415' class='answer   answerof-120496 ' value='495415'   \/><label for='answer-id-495415' id='answer-label-495415' class=' answer'><span>DATENAME( )<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120496[]' id='answer-id-495417' class='answer   answerof-120496 ' value='495417'   \/><label for='answer-id-495417' id='answer-label-495417' class=' answer'><span>CONVERT( )<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120496[]' id='answer-id-495419' class='answer   answerof-120496 ' value='495419'   \/><label for='answer-id-495419' id='answer-label-495419' class=' answer'><span>TRYDATEDIFF( )<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120496[]' id='answer-id-495421' class='answer   answerof-120496 ' value='495421'   \/><label for='answer-id-495421' id='answer-label-495421' class=' answer'><span>MONTH( ) and YEAR( )<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-4' style=';'><div id='questionWrap-4'  class='   watupro-question-id-120498'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>4. <\/span>You administer a Microsoft SQL Server database named ContosoDb. <br \/>\r<br>The database has the following schema collection: <br \/>\r<br><br><img decoding=\"async\" width=637 height=567 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image020.jpg\" v:shapes=\"_x0000_i1034\"><br><br \/>\r<br>The database has a table named ReceivedPurchaseOrders that includes an XML column named PurchaseOrder by using the above schema. <br \/>\r<br>You need to set the requiresApproval attribute of the XML documents to false if they contain more than 50 items. <br \/>\r<br>Which Transact-SQL query should you run? <br \/>\r<br><br><img decoding=\"async\" width=647 height=473 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image022.jpg\" v:shapes=\"_x0000_i1035\"><br><br \/>\r<br><br><img decoding=\"async\" width=650 height=468 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image024.jpg\" v:shapes=\"_x0000_i1036\"><br><\/div><input type='hidden' name='question_id[]' id='qID_4' value='120498' \/><input type='hidden' id='answerType120498' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120498[]' id='answer-id-495425' class='answer   answerof-120498 ' value='495425'   \/><label for='answer-id-495425' id='answer-label-495425' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120498[]' id='answer-id-495427' class='answer   answerof-120498 ' value='495427'   \/><label for='answer-id-495427' id='answer-label-495427' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120498[]' id='answer-id-495429' class='answer   answerof-120498 ' value='495429'   \/><label for='answer-id-495429' id='answer-label-495429' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120498[]' id='answer-id-495431' class='answer   answerof-120498 ' value='495431'   \/><label for='answer-id-495431' id='answer-label-495431' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-5' style=';'><div id='questionWrap-5'  class='   watupro-question-id-120501'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>5. <\/span>DRAG DROP <br \/>\r<br>Your Microsoft SQL Server database contains tables as shown below. <br \/>\r<br>You have tables that were created by running the following Transact-SQL statements: <br \/>\r<br><br><img decoding=\"async\" width=636 height=520 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image026.jpg\" v:shapes=\"_x0000_i1037\"><br><br \/>\r<br>The Product table contains 10,000 records. The maximum ProductID is 11,000. <br \/>\r<br>There are 12 rows in the Category table. The maximum CategoryID is 12. <br \/>\r<br>The Product table contains at least one product in every category. <br \/>\r<br>Data in the tables was accidently modified. To correct this, you need to make some updates directly to the tables. You issue several statements. <br \/>\r<br>Which result or results will you obtain for each Transact-SQL statement? To answer, drag the appropriate results to the correct Transact-SQL statements. Each result may be used once. More than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=649 height=482 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image028.jpg\" v:shapes=\"_x0000_i1038\"><br><\/div><input type='hidden' name='question_id[]' id='qID_5' value='120501' \/><input type='hidden' id='answerType120501' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120501[]' id='textarea_q_120501' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-6' style=';'><div id='questionWrap-6'  class='   watupro-question-id-120502'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>6. <\/span>DRAG DROP <br \/>\r<br>You develop an application that uses data from a Microsoft SQL Server database. <br \/>\r<br>Your application experiences blocking problems. <br \/>\r<br>You need to enable row versioning and you want connections to have row versioning enabled by default. <br \/>\r<br>How should you complete the Transact-SQL statement? To answer, drag the appropriate command to the correct positions. Each command may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=645 height=507 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image032.jpg\" v:shapes=\"_x0000_i1040\"><br><\/div><input type='hidden' name='question_id[]' id='qID_6' value='120502' \/><input type='hidden' id='answerType120502' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120502[]' id='textarea_q_120502' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-7' style=';'><div id='questionWrap-7'  class='   watupro-question-id-120504'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>7. <\/span>DRAG DROP <br \/>\r<br>You are a developer for a Microsoft SQL Server database. You need to write a stored procedure that performs several operations in the most efficient way possible. <br \/>\r<br>Which operator or operators should you use? To answer, drag the appropriate operators to the correct operations. Each operator may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=650 height=671 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image036.jpg\" v:shapes=\"_x0000_i1042\"><br><\/div><input type='hidden' name='question_id[]' id='qID_7' value='120504' \/><input type='hidden' id='answerType120504' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120504[]' id='textarea_q_120504' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-8' style=';'><div id='questionWrap-8'  class='   watupro-question-id-120506'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>8. <\/span>You develop a database application for Microsoft SQL Server and Microsoft Azure SQL Database. <br \/>\r<br>You need to raise an exception and transfer execution to a CATCH block. <br \/>\r<br>You need to ensure that the exception returns output in the following format: <br \/>\r<br>Msg 51000, Level 16, State 1, Line 1 <br \/>\r<br>The record does not exist. <br \/>\r<br>Which Transact-SQL statement should you run? <br \/>\r<br><br><img decoding=\"async\" width=650 height=457 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image040.jpg\" v:shapes=\"_x0000_i1044\"><br><\/div><input type='hidden' name='question_id[]' id='qID_8' value='120506' \/><input type='hidden' id='answerType120506' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120506[]' id='answer-id-495444' class='answer   answerof-120506 ' value='495444'   \/><label for='answer-id-495444' id='answer-label-495444' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120506[]' id='answer-id-495445' class='answer   answerof-120506 ' value='495445'   \/><label for='answer-id-495445' id='answer-label-495445' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120506[]' id='answer-id-495446' class='answer   answerof-120506 ' value='495446'   \/><label for='answer-id-495446' id='answer-label-495446' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120506[]' id='answer-id-495447' class='answer   answerof-120506 ' value='495447'   \/><label for='answer-id-495447' id='answer-label-495447' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-9' style=';'><div id='questionWrap-9'  class='   watupro-question-id-120508'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>9. <\/span>DRAG DROP <br \/>\r<br>You develop a database application for Microsoft SQL Server 2012 and Microsoft Azure SQL Database. <br \/>\r<br>You create a table named Purchasing.vVendorWithAddresses as shown in the following table. <br \/>\r<br><br><img decoding=\"async\" width=650 height=554 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image042.jpg\" v:shapes=\"_x0000_i1045\"><br><br \/>\r<br>You write the following Transact-SQL (Line numbers are included for reference only.) 01 CREATE PROCEDURE <br \/>\r<br><br><img decoding=\"async\" width=344 height=137 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image044.jpg\" v:shapes=\"_x0000_i1046\"><br><br \/>\r<br>You need to add Transact-SQL statements at line 08 to ensure that GetVendorInStateNeighbors returns the names of vendors that are located in all states where the vendor specified in the @vendorname parameter has a location. <br \/>\r<br>Which three Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=618 height=576 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image046.jpg\" v:shapes=\"_x0000_i1047\"><br><\/div><input type='hidden' name='question_id[]' id='qID_9' value='120508' \/><input type='hidden' id='answerType120508' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120508[]' id='textarea_q_120508' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-10' style=';'><div id='questionWrap-10'  class='   watupro-question-id-120510'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>10. <\/span>A local bank uses a SQL Server database to manage accounts. You are developing a stored procedure that contains multiple Transact-SQL INSERT statements. The stored procedure must use transaction management to handle errors. You need to ensure that the stored procedure rolls back the entire transaction if a run-time occurs. <br \/>\r<br>Which Transact-SQL statement should you add to the stored procedure?<\/div><input type='hidden' name='question_id[]' id='qID_10' value='120510' \/><input type='hidden' id='answerType120510' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120510[]' id='answer-id-495457' class='answer   answerof-120510 ' value='495457'   \/><label for='answer-id-495457' id='answer-label-495457' class=' answer'><span>SET ARITHABORT ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120510[]' id='answer-id-495458' class='answer   answerof-120510 ' value='495458'   \/><label for='answer-id-495458' id='answer-label-495458' class=' answer'><span>SET NOEXEC ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120510[]' id='answer-id-495459' class='answer   answerof-120510 ' value='495459'   \/><label for='answer-id-495459' id='answer-label-495459' class=' answer'><span>SET TRANSACTION ISOLATION LEVEL ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120510[]' id='answer-id-495460' class='answer   answerof-120510 ' value='495460'   \/><label for='answer-id-495460' id='answer-label-495460' class=' answer'><span>SET XACT_ABORT ON<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-11' style=';'><div id='questionWrap-11'  class='   watupro-question-id-120512'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>11. <\/span>DRAG DROP <br \/>\r<br>You are the administrator for a heavily-used OLTP Microsoft SQL Server database. <br \/>\r<br>You are troubleshooting performance issues seen when using stored procedures in the database. The database stores millions of orders across thousands of customers. Some of the customers have large numbers of orders, while others have only one order. You update the statistics and perform defragmentation of all tables and indexes, but two stored procedures still have issues when accessing data. <br \/>\r<br>p_GetCustomer accepts @companyID as a parameter. From the results of profiling, you know that 90 percent of the calls use the @companyid value of 5, while the other 10 percent of calls are evenly distributed across another 10000 values. While viewing the execution plan, you discover that a non-clustered index seek is used. <br \/>\r<br>p_GetShipDate accepts @orderID as a parameter and returns the ship date for that order. You discover that the execution plan is performing a scan on a non-clustered index that has orderID as the index key. <br \/>\r<br>You need to add appropriate query hints to each stored procedure to improve the performance. <br \/>\r<br>What should you do? To answer, drag the appropriate procedures to the correct hints. Each procedure may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=649 height=356 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image050.jpg\" v:shapes=\"_x0000_i1049\"><br><\/div><input type='hidden' name='question_id[]' id='qID_11' value='120512' \/><input type='hidden' id='answerType120512' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120512[]' id='textarea_q_120512' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-12' style=';'><div id='questionWrap-12'  class='   watupro-question-id-120514'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>12. <\/span>You use Microsoft SQL Server to develop a database application. Your application sends data to a VARCHAR (50) variable named @var. You need to write a Transact-SQL statement that will return information on a successful or <br \/>\r<br>unsuccessful cast to an integer in a table. <br \/>\r<br>Which Transact-SQL statement should you run? <br \/>\r<br><br><img decoding=\"async\" width=401 height=755 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image054.jpg\" v:shapes=\"_x0000_i1051\"><br><\/div><input type='hidden' name='question_id[]' id='qID_12' value='120514' \/><input type='hidden' id='answerType120514' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120514[]' id='answer-id-495466' class='answer   answerof-120514 ' value='495466'   \/><label for='answer-id-495466' id='answer-label-495466' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120514[]' id='answer-id-495467' class='answer   answerof-120514 ' value='495467'   \/><label for='answer-id-495467' id='answer-label-495467' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120514[]' id='answer-id-495468' class='answer   answerof-120514 ' value='495468'   \/><label for='answer-id-495468' id='answer-label-495468' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120514[]' id='answer-id-495469' class='answer   answerof-120514 ' value='495469'   \/><label for='answer-id-495469' id='answer-label-495469' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-13' style=';'><div id='questionWrap-13'  class='   watupro-question-id-120516'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>13. <\/span>DRAG DROP <br \/>\r<br>You are developer for a Microsoft Azure SQL Database instance. <br \/>\r<br>You are creating a new stored procedure. The procedure must perform the following tasks in this order: -1. Update a table named OrderHistory. -2. Delete rows from a table named Orders. -3. Delete rows from a table named Customers. -4. Insert rows into a table named ProcessHistory. <br \/>\r<br>You need to ensure that the procedure meets the following requirements: <br \/>\r<br>-If either DELETE operation fails, the rest of operation must continue. -If either the UPDATE operation or the INSERT operation fails, the whole procedure should fail and no changes should be retained. <br \/>\r<br>Which four Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=620 height=437 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image056.jpg\" v:shapes=\"_x0000_i1052\"><br><\/div><input type='hidden' name='question_id[]' id='qID_13' value='120516' \/><input type='hidden' id='answerType120516' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120516[]' id='textarea_q_120516' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-14' style=';'><div id='questionWrap-14'  class='   watupro-question-id-120518'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>14. <\/span>CORRECT TEXT <br \/>\r<br>You have a SQL Server database that contains all of the sales data for your company. <br \/>\r<br>You need to create a query that returns the customers who represent the top five percent of the total actual sales. <br \/>\r<br>Part of the correct Transact-SQL has been provided in the answer area below. Enter the code in the answer area that resolves the problem and meets the stated goals or requirements. You can add code within the code that has been provided as well as below it. <br \/>\r<br><br><img decoding=\"async\" width=525 height=42 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image060.jpg\" v:shapes=\"_x0000_i1054\"><br><br \/>\r<br><br><img decoding=\"async\" width=650 height=908 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image062.jpg\" v:shapes=\"_x0000_i1055\"><br><br \/>\r<br>Use the Check Syntax button to verify your work. Any syntax or spelling errors will be reported by <br \/>\r<br>line and character position.<\/div><input type='hidden' name='question_id[]' id='qID_14' value='120518' \/><input type='hidden' id='answerType120518' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120518[]' id='textarea_q_120518' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-15' style=';'><div id='questionWrap-15'  class='   watupro-question-id-120520'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>15. <\/span>CORRECT TEXT <br \/>\r<br>You plan to deploy a stored procedure for a database named TICKETS. <br \/>\r<br>You need to implement error handling for the stored procedure to ensure that the system-defined error messages are returned if an error occurs upon insert. Part of the correct Transact-SQL has been provided in the answer are below. Enter the code in the answer area that resolves the problem and meets the stated goals or requirements. <br \/>\r<br>You can add code within the code that has been provided as well as below it. <br \/>\r<br><br><img decoding=\"async\" width=437 height=371 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image064.jpg\" v:shapes=\"_x0000_i1056\"><br><br \/>\r<br><br><img decoding=\"async\" width=650 height=908 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image062.jpg\" v:shapes=\"_x0000_i1057\"><br><br \/>\r<br>Use the \u2018Check Syntax\u2019 button to verify your work. Any syntax or spelling errors will be reported by line and character position.<\/div><input type='hidden' name='question_id[]' id='qID_15' value='120520' \/><input type='hidden' id='answerType120520' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120520[]' id='textarea_q_120520' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-16' style=';'><div id='questionWrap-16'  class='   watupro-question-id-120522'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>16. <\/span>Note: This question is part of a series of questions that use the same set of answer choices. An answer choice may be correct for more than one question in the series. <br \/>\r<br>You develop a database for a travel application. You create a view that displays details of events and <br \/>\r<br>attractions. The names of the event and attractions are sorted alphabetically. <br \/>\r<br>You need to sort the names in a case-sensitive, dictionary order. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_16' value='120522' \/><input type='hidden' id='answerType120522' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495482' class='answer   answerof-120522 ' value='495482'   \/><label for='answer-id-495482' id='answer-label-495482' class=' answer'><span>Use the CAST function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495483' class='answer   answerof-120522 ' value='495483'   \/><label for='answer-id-495483' id='answer-label-495483' class=' answer'><span>Use the DATE data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495485' class='answer   answerof-120522 ' value='495485'   \/><label for='answer-id-495485' id='answer-label-495485' class=' answer'><span>Use the FORMAT function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495487' class='answer   answerof-120522 ' value='495487'   \/><label for='answer-id-495487' id='answer-label-495487' class=' answer'><span>Use an appropriate collation.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495489' class='answer   answerof-120522 ' value='495489'   \/><label for='answer-id-495489' id='answer-label-495489' class=' answer'><span>Use a user-defined table type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495490' class='answer   answerof-120522 ' value='495490'   \/><label for='answer-id-495490' id='answer-label-495490' class=' answer'><span>Use the VARBINARY data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495491' class='answer   answerof-120522 ' value='495491'   \/><label for='answer-id-495491' id='answer-label-495491' class=' answer'><span>Use the DATETIME data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495492' class='answer   answerof-120522 ' value='495492'   \/><label for='answer-id-495492' id='answer-label-495492' class=' answer'><span>Use the DATETIME2 data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495493' class='answer   answerof-120522 ' value='495493'   \/><label for='answer-id-495493' id='answer-label-495493' class=' answer'><span>Use the DATETIMEOFFSET data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120522[]' id='answer-id-495494' class='answer   answerof-120522 ' value='495494'   \/><label for='answer-id-495494' id='answer-label-495494' class=' answer'><span>Use the TODATETIMEOFFSET function.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-17' style=';'><div id='questionWrap-17'  class='   watupro-question-id-120525'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>17. <\/span>Note: This question is part of a series of questions that use the same set of answer choices. An <br \/>\r<br>answer choice may be correct for more than one question in the series. <br \/>\r<br>You develop a database for a travel application. You need to design tables and other database objects. <br \/>\r<br>You create the Historical_Events table. <br \/>\r<br>You need to store dates by using the smallest possible storage size. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_17' value='120525' \/><input type='hidden' id='answerType120525' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495499' class='answer   answerof-120525 ' value='495499'   \/><label for='answer-id-495499' id='answer-label-495499' class=' answer'><span>Use the CAST function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495500' class='answer   answerof-120525 ' value='495500'   \/><label for='answer-id-495500' id='answer-label-495500' class=' answer'><span>Use the DATE data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495501' class='answer   answerof-120525 ' value='495501'   \/><label for='answer-id-495501' id='answer-label-495501' class=' answer'><span>Use the FORMAT function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495502' class='answer   answerof-120525 ' value='495502'   \/><label for='answer-id-495502' id='answer-label-495502' class=' answer'><span>Use an appropriate collation.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495503' class='answer   answerof-120525 ' value='495503'   \/><label for='answer-id-495503' id='answer-label-495503' class=' answer'><span>Use a user-defined table type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495504' class='answer   answerof-120525 ' value='495504'   \/><label for='answer-id-495504' id='answer-label-495504' class=' answer'><span>Use the VARBINARY data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495505' class='answer   answerof-120525 ' value='495505'   \/><label for='answer-id-495505' id='answer-label-495505' class=' answer'><span>Use the DATETIME data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495506' class='answer   answerof-120525 ' value='495506'   \/><label for='answer-id-495506' id='answer-label-495506' class=' answer'><span>Use the DATETIME2 data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495507' class='answer   answerof-120525 ' value='495507'   \/><label for='answer-id-495507' id='answer-label-495507' class=' answer'><span>Use the DATETIMEOFFSET data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120525[]' id='answer-id-495508' class='answer   answerof-120525 ' value='495508'   \/><label for='answer-id-495508' id='answer-label-495508' class=' answer'><span>Use the TODATETIMEOFFSET function.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-18' style=';'><div id='questionWrap-18'  class='   watupro-question-id-120527'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>18. <\/span>DRAG DROP <br \/>\r<br>You develop a Microsoft SQL Server Database. <br \/>\r<br>The database contains a table named Status that is defined by the following Transact-SQL statement: <br \/>\r<br><br><img decoding=\"async\" width=376 height=186 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image068.jpg\" v:shapes=\"_x0000_i1059\"><br><br \/>\r<br>There are thousands of rows in the Status table, with significant duplication of data in the Color column. Ninety percent of the rows in the table have Color=&quot;Red&quot;, and the remaining 10 percent have Color=&quot;Green&quot;. <br \/>\r<br>You want to normalize the Color information in this table. <br \/>\r<br>You create a table named Colors that is defined by the following DDL: <br \/>\r<br><br><img decoding=\"async\" width=346 height=92 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image070.jpg\" v:shapes=\"_x0000_i1060\"><br><br \/>\r<br>You populate the new Colors table by using the following Transact-SQL statement: <br \/>\r<br>INSERT Colors (ColorName) SELECT DISTINCT Color FROM Status <br \/>\r<br>You need to ensure that the following requirements are met: <br \/>\r<br>- The Status table uses only colors that exist in the Colors table. <br \/>\r<br>- Data redundancy in the Status table is reduced. <br \/>\r<br>- Data integrity is enforced during the normalization process. <br \/>\r<br>Which three Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segment from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=638 height=370 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image072.jpg\" v:shapes=\"_x0000_i1061\"><br><\/div><input type='hidden' name='question_id[]' id='qID_18' value='120527' \/><input type='hidden' id='answerType120527' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120527[]' id='textarea_q_120527' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-19' style=';'><div id='questionWrap-19'  class='   watupro-question-id-120529'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>19. <\/span>DRAG DROP <br \/>\r<br>You use Microsoft SQL Server client tool to develop a Microsoft Azure SQL Database instance to support an e-commerce application. <br \/>\r<br>The database consists of a Product table, a Store table, and a StoreProduct table as shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br>You need to write a trigger that meets the following requirements: <br \/>\r<br>- Stores are not physically deleted, but are marked as deleted. <br \/>\r<br>- When a store is deleted, the products that are sold in that store are marked as discontinued. <br \/>\r<br>Which four Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br>Exhibit <br \/>\r<br><br><img decoding=\"async\" width=588 height=270 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image076.jpg\" v:shapes=\"_x0000_i1063\"><br><br \/>\r<br><br><img decoding=\"async\" width=621 height=550 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image078.jpg\" v:shapes=\"_x0000_i1064\"><br><\/div><input type='hidden' name='question_id[]' id='qID_19' value='120529' \/><input type='hidden' id='answerType120529' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120529[]' id='textarea_q_120529' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-20' style=';'><div id='questionWrap-20'  class='   watupro-question-id-120531'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>20. <\/span>HOTSPOT <br \/>\r<br>You have a database that contains the following related tables: <br \/>\r<br><br><img decoding=\"async\" width=428 height=166 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image082.jpg\" v:shapes=\"_x0000_i1066\"><br><br \/>\r<br>You create a view named OrderSummary by using the following Transact-SQL statement: For each of the following statements, select Yes if the statement is true. Otherwise, select No. <br \/>\r<br><br><img decoding=\"async\" width=380 height=333 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image084.jpg\" v:shapes=\"_x0000_i1067\"><br><br \/>\r<br><br><img decoding=\"async\" width=597 height=142 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image086.jpg\" v:shapes=\"_x0000_i1068\"><br><\/div><input type='hidden' name='question_id[]' id='qID_20' value='120531' \/><input type='hidden' id='answerType120531' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120531[]' id='textarea_q_120531' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-21' style=';'><div id='questionWrap-21'  class='   watupro-question-id-120533'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>21. <\/span>You use a Microsoft Azure SQL DataBase instance. The instance contains a table named Customers that has columns named Id, Name, and IsPriority. <br \/>\r<br>You need to create a view named VwPriorityCustomers that: <br \/>\r<br>- returns rows from Customer that have a value of True in the IsPriority column, and <br \/>\r<br>- does not allow columns to be altered or dropped in the underlying table. <br \/>\r<br>Which Transact-SQL statement shoul you run?<\/div><input type='hidden' name='question_id[]' id='qID_21' value='120533' \/><input type='hidden' id='answerType120533' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120533[]' id='answer-id-495519' class='answer   answerof-120533 ' value='495519'   \/><label for='answer-id-495519' id='answer-label-495519' class=' answer'><span>CREATE VIEW VwPriorityCustomers \r\nAS \r\nSELECT Id, Name FROM dbo.Customers WHERE IsPriority=1 \r\nWITH CHECK OPTION<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120533[]' id='answer-id-495521' class='answer   answerof-120533 ' value='495521'   \/><label for='answer-id-495521' id='answer-label-495521' class=' answer'><span>CREATE VIEW VwPriorityCustomers \r\nWITH VIEW_METADATA \r\nAS \r\nSELECT Id, Name FROM dbo.Customers WHERE IsPriority=1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120533[]' id='answer-id-495522' class='answer   answerof-120533 ' value='495522'   \/><label for='answer-id-495522' id='answer-label-495522' class=' answer'><span>CREATE VIEW VwPriorityCustomers \r\nWITH ENCRYPTION \r\nAS \r\nSELECT Id, Name FROM dbo.Customers WHERE IsPriority=1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120533[]' id='answer-id-495523' class='answer   answerof-120533 ' value='495523'   \/><label for='answer-id-495523' id='answer-label-495523' class=' answer'><span>CREATE VIEW VwPriorityCustomers \r\nWITH SCHEMABINDING \r\nAS \r\nSELECT Id, Name FROM dbo.Customers WHERE IsPriority=1<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-22' style=';'><div id='questionWrap-22'  class='   watupro-question-id-120535'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>22. <\/span>DRAG DROP <br \/>\r<br>You use a Microsoft Azure SQL Database instance named ContosoDb. ContosoDb contains a table named Customers that has existing records. <br \/>\r<br>The Customers table has columns named Id and Name. <br \/>\r<br>You need to create a new column in the Customer table named Status that allows null values and sets the value of the Status column to Silver for all existing records. <br \/>\r<br>Which three Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the anwer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=650 height=328 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image090.jpg\" v:shapes=\"_x0000_i1070\"><br><\/div><input type='hidden' name='question_id[]' id='qID_22' value='120535' \/><input type='hidden' id='answerType120535' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120535[]' id='textarea_q_120535' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-23' style=';'><div id='questionWrap-23'  class='   watupro-question-id-120537'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>23. <\/span>You administer a Microsoft SQL Server instance that will support several databases. <br \/>\r<br>You need to ensure that every new database created has a data type named postalcode that contains the <br \/>\r<br>same attributes. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_23' value='120537' \/><input type='hidden' id='answerType120537' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120537[]' id='answer-id-495535' class='answer   answerof-120537 ' value='495535'   \/><label for='answer-id-495535' id='answer-label-495535' class=' answer'><span>Create a user-defined type on the model database.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120537[]' id='answer-id-495536' class='answer   answerof-120537 ' value='495536'   \/><label for='answer-id-495536' id='answer-label-495536' class=' answer'><span>Create a user-defined type on the master database.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120537[]' id='answer-id-495537' class='answer   answerof-120537 ' value='495537'   \/><label for='answer-id-495537' id='answer-label-495537' class=' answer'><span>Create a user-defined data type on the master database.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120537[]' id='answer-id-495538' class='answer   answerof-120537 ' value='495538'   \/><label for='answer-id-495538' id='answer-label-495538' class=' answer'><span>Create a user-defined data type on the model database.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-24' style=';'><div id='questionWrap-24'  class='   watupro-question-id-120539'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>24. <\/span>DRAG DROP <br \/>\r<br>You administer a SQL Server database that tracks sales that are made by sales persons. <br \/>\r<br>The database contains a table that is defined by the following Transact-SQL statements: <br \/>\r<br><br><img decoding=\"async\" width=433 height=165 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image094.jpg\" v:shapes=\"_x0000_i1072\"><br><br \/>\r<br>You have the following requirements: <br \/>\r<br>- accept a datetime value for the query month <br \/>\r<br>- return a list of salespeople IDs who have sales in the query month or before the query month <br \/>\r<br>- compare sales with sales quota for salespeople who have a sales quota <br \/>\r<br>- display year-to-date sales for salespeople that do not have a sales quota <br \/>\r<br>How should you complete the stored procedure? To answer, drag the appropriate Transact-SQL segments to the correct locations. Each Transact-SQL segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=650 height=169 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image096.jpg\" v:shapes=\"_x0000_i1073\"><br><\/div><input type='hidden' name='question_id[]' id='qID_24' value='120539' \/><input type='hidden' id='answerType120539' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120539[]' id='textarea_q_120539' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-25' style=';'><div id='questionWrap-25'  class='   watupro-question-id-120541'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>25. <\/span>DRAG DROP <br \/>\r<br>You are creating queries for a shopping cart application. <br \/>\r<br><br><img decoding=\"async\" width=205 height=213 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image100.jpg\" v:shapes=\"_x0000_i1075\"><br><br \/>\r<br>You have the following requirements: <br \/>\r<br>- Query1 must list products where less than 100 units have been sold in total. <br \/>\r<br>- Query2 must list products where more than 10 units have been sold in a single order. <br \/>\r<br>You need to identify the correct sub-queries to complete the outer queries that you have written. <br \/>\r<br>Which Transact-SQL statement or statements should you use? To answer, drag the appropriate SQL statements to the correct locations. Each SQL statement may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=578 height=220 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image102.jpg\" v:shapes=\"_x0000_i1076\"><br><\/div><input type='hidden' name='question_id[]' id='qID_25' value='120541' \/><input type='hidden' id='answerType120541' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120541[]' id='textarea_q_120541' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-26' style=';'><div id='questionWrap-26'  class='   watupro-question-id-120542'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>26. <\/span>You are working with a table that has an XML column that contains information about books. Each book may have an associated price. You need to write a query that returns each author on a separate row in XML format. <br \/>\r<br>Which XML method should you use?<\/div><input type='hidden' name='question_id[]' id='qID_26' value='120542' \/><input type='hidden' id='answerType120542' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120542[]' id='answer-id-495547' class='answer   answerof-120542 ' value='495547'   \/><label for='answer-id-495547' id='answer-label-495547' class=' answer'><span>Value()<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120542[]' id='answer-id-495549' class='answer   answerof-120542 ' value='495549'   \/><label for='answer-id-495549' id='answer-label-495549' class=' answer'><span>Nodes()<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120542[]' id='answer-id-495551' class='answer   answerof-120542 ' value='495551'   \/><label for='answer-id-495551' id='answer-label-495551' class=' answer'><span>Query()<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120542[]' id='answer-id-495553' class='answer   answerof-120542 ' value='495553'   \/><label for='answer-id-495553' id='answer-label-495553' class=' answer'><span>Exist()<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-27' style=';'><div id='questionWrap-27'  class='   watupro-question-id-120544'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>27. <\/span>DRAG DROP <br \/>\r<br>A database contains tables as shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=412 height=219 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image106.jpg\" v:shapes=\"_x0000_i1078\"><br><br \/>\r<br>Customer who are inactive are moved from the Customers table to the InactiveCustomers table. Any orders for inactive customers are removed from the Orders table. <br \/>\r<br>You write the following SELECT statement to return all the inactive customers: <br \/>\r<br>SELECT CustomerId FROM InactiveCustomers <br \/>\r<br>You need to extend the SELECT statement to include customers who do not have any orders. <br \/>\r<br>Which four Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=639 height=387 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image108.jpg\" v:shapes=\"_x0000_i1079\"><br><\/div><input type='hidden' name='question_id[]' id='qID_27' value='120544' \/><input type='hidden' id='answerType120544' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120544[]' id='textarea_q_120544' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-28' style=';'><div id='questionWrap-28'  class='   watupro-question-id-120546'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>28. <\/span>You develop a Microsoft SQL Server database. <br \/>\r<br>The database contains a table defined by the following Transact-SQL statement: <br \/>\r<br><br><img decoding=\"async\" width=276 height=126 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image112.jpg\" v:shapes=\"_x0000_i1081\"><br><br \/>\r<br>All regions have more than one employee. <br \/>\r<br>You need to write a query to find the employee with the highest SalesYTD in each region with the following result set: <br \/>\r<br>- First Name <br \/>\r<br>- Last Name <br \/>\r<br>- Region <br \/>\r<br>- Sales YTD <br \/>\r<br>Which Transact-SQL query should you run? <br \/>\r<br>A) <br \/>\r<br><br><img decoding=\"async\" width=584 height=183 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image114.jpg\" v:shapes=\"_x0000_i1082\"><br><br \/>\r<br>B) <br \/>\r<br><br><img decoding=\"async\" width=623 height=184 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image116.jpg\" v:shapes=\"_x0000_i1083\"><br><br \/>\r<br>C) <br \/>\r<br><br><img decoding=\"async\" width=585 height=225 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image118.jpg\" v:shapes=\"_x0000_i1084\"><br><br \/>\r<br>D) <br \/>\r<br><br><img decoding=\"async\" width=584 height=227 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image120.jpg\" v:shapes=\"_x0000_i1085\"><br><\/div><input type='hidden' name='question_id[]' id='qID_28' value='120546' \/><input type='hidden' id='answerType120546' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120546[]' id='answer-id-495567' class='answer   answerof-120546 ' value='495567'   \/><label for='answer-id-495567' id='answer-label-495567' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120546[]' id='answer-id-495568' class='answer   answerof-120546 ' value='495568'   \/><label for='answer-id-495568' id='answer-label-495568' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120546[]' id='answer-id-495569' class='answer   answerof-120546 ' value='495569'   \/><label for='answer-id-495569' id='answer-label-495569' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120546[]' id='answer-id-495570' class='answer   answerof-120546 ' value='495570'   \/><label for='answer-id-495570' id='answer-label-495570' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-29' style=';'><div id='questionWrap-29'  class='   watupro-question-id-120548'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>29. <\/span>You administer a Microsoft SQL Server database that contains a table named Products. <br \/>\r<br>In a bit column named Discontinued, a value of 1 indicates a product is inactive, and a value of 0 <br \/>\r<br>indicates the product is active. <br \/>\r<br>You need to create a view that returns a column with a full product status description. <br \/>\r<br>Which expression should you use to define the column?<\/div><input type='hidden' name='question_id[]' id='qID_29' value='120548' \/><input type='hidden' id='answerType120548' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120548[]' id='answer-id-495575' class='answer   answerof-120548 ' value='495575'   \/><label for='answer-id-495575' id='answer-label-495575' class=' answer'><span>IF(Discontinued = 0, \u2018Active\u2019, \u2018Inactive\u2019)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120548[]' id='answer-id-495576' class='answer   answerof-120548 ' value='495576'   \/><label for='answer-id-495576' id='answer-label-495576' class=' answer'><span>CASE Discontinued \r\nWHEN 0 THEN \u2018Active\u2019 \r\nWHEN 1 THEN \u2018Inactive\u2019 \r\nEND<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120548[]' id='answer-id-495577' class='answer   answerof-120548 ' value='495577'   \/><label for='answer-id-495577' id='answer-label-495577' class=' answer'><span>IF Discontinued = 0 \r\n\u2018 Active\u2019 \r\nELSE \r\n\u2018 Inactive\u2019<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120548[]' id='answer-id-495578' class='answer   answerof-120548 ' value='495578'   \/><label for='answer-id-495578' id='answer-label-495578' class=' answer'><span>DECODE (Discontinued, 0, \u2018Active\u2019, 1, \u2018Inactive\u2019, \u2018Unknown\u2019)<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-30' style=';'><div id='questionWrap-30'  class='   watupro-question-id-120550'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>30. <\/span>DRAG DROP <br \/>\r<br>You develop a Microsoft SQL Server database that supports an e-commerce website. <br \/>\r<br>You create a table defined by the following Transact-SQL statement: <br \/>\r<br><br><img decoding=\"async\" width=264 height=194 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image122.jpg\" v:shapes=\"_x0000_i1086\"><br><br \/>\r<br>You need to create a reusable function that will remove all carriage return characters from all the text values. <br \/>\r<br>Which four Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=650 height=378 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image124.jpg\" v:shapes=\"_x0000_i1087\"><br><\/div><input type='hidden' name='question_id[]' id='qID_30' value='120550' \/><input type='hidden' id='answerType120550' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120550[]' id='textarea_q_120550' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-31' style=';'><div id='questionWrap-31'  class='   watupro-question-id-120552'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>31. <\/span>You administer a Microsoft SQL Server database named Orders. Orders is highly active OLTP system used for e-commerce. <br \/>\r<br>Performance on the database has degraded over the past few months as the volume of data has increased, and now users report the application is unusable. <br \/>\r<br><br><img decoding=\"async\" width=371 height=451 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image128.jpg\" v:shapes=\"_x0000_i1089\"><br><br \/>\r<br>You need to identify the cause of the performance problem. <br \/>\r<br>Which Transact-SQL statement should you run?<\/div><input type='hidden' name='question_id[]' id='qID_31' value='120552' \/><input type='hidden' id='answerType120552' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120552[]' id='answer-id-495594' class='answer   answerof-120552 ' value='495594'   \/><label for='answer-id-495594' id='answer-label-495594' class=' answer'><span>SET STATISTICS TIME ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120552[]' id='answer-id-495595' class='answer   answerof-120552 ' value='495595'   \/><label for='answer-id-495595' id='answer-label-495595' class=' answer'><span>SET FORCEPLAN ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120552[]' id='answer-id-495596' class='answer   answerof-120552 ' value='495596'   \/><label for='answer-id-495596' id='answer-label-495596' class=' answer'><span>SET STATISTICS IO ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120552[]' id='answer-id-495597' class='answer   answerof-120552 ' value='495597'   \/><label for='answer-id-495597' id='answer-label-495597' class=' answer'><span>DBCC CHECKCONTRAINTS<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-32' style=';'><div id='questionWrap-32'  class='   watupro-question-id-120554'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>32. <\/span>DRAG DROP <br \/>\r<br>You need to create a cursor that meets the following requirements: <br \/>\r<br>- Executes as quickly as possible. <br \/>\r<br>- Reflects all data changes made to the table while scrolling. <br \/>\r<br>Which five Transact-SQL statements should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer are and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=644 height=515 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image130.jpg\" v:shapes=\"_x0000_i1090\"><br><\/div><input type='hidden' name='question_id[]' id='qID_32' value='120554' \/><input type='hidden' id='answerType120554' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120554[]' id='textarea_q_120554' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-33' style=';'><div id='questionWrap-33'  class='   watupro-question-id-120555'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>33. <\/span>DRAG DROP <br \/>\r<br>You administer a Microsoft Azure SQL Database instance. <br \/>\r<br>You are troubleshooting a number of stored procedures that use transactions. <br \/>\r<br>-p_ModifyCustomer modifies customer records in the database. Processes that uses these records must receive a copy of the record as it exists at the beginning of the transaction, and the procedure must not block these processes. <br \/>\r<br>-p_GetOrders is used to retrieve orders for a customer. While the transaction is running, no other process should be able to read the same data, and no other transaction should be able to modify the data until the transaction completes. <br \/>\r<br>-p_ShipOrders is run once per day to batch orders into shipping criteria. While this transaction is running, no other transaction should be allowed to insert data into the range of orders being modified. <br \/>\r<br>You need to choose the appropriate transaction isolation level for each stored procedure. The transaction must meet the need while providing the highest level of concurrency and performance. <br \/>\r<br>Which isolation levels should you use? To answer, drag the appropriate isolation levels to correct stored procedures. Each isolation level may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=629 height=187 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image134.jpg\" v:shapes=\"_x0000_i1092\"><br><\/div><input type='hidden' name='question_id[]' id='qID_33' value='120555' \/><input type='hidden' id='answerType120555' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120555[]' id='textarea_q_120555' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-34' style=';'><div id='questionWrap-34'  class='   watupro-question-id-120557'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>34. <\/span>DRAG DROP <br \/>\r<br>You administer a Microsoft SQL Server database that contains a table named Customer defined by the following Transact-SQL statement: <br \/>\r<br><br><img decoding=\"async\" width=359 height=114 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image138.jpg\" v:shapes=\"_x0000_i1094\"><br><br \/>\r<br>The SalesRep column contains the SQL Login name of the user designated as the customer\u2019s sales rep. <br \/>\r<br>You need to create at trigger that meets the following requirements: <br \/>\r<br>- A customer\u2019s CreditLimit can only be changed by the customer\u2019s SalesRep. <br \/>\r<br>- CreditLimit cannot be increased by more than 50 percent in any single update. <br \/>\r<br>If an UPDATE statement causes either of these business rules to be violated, the entire UPDATE statement should be rolled back. <br \/>\r<br>In addition, the trigger must handle single-row and multi-row update statements and should execute in the most efficient manner possible. <br \/>\r<br>How should you complete the trigger? To answer, drag the appropriate Transact-SQL segments to the correct locations. Each Transact-SQL segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. <br \/>\r<br><br><img decoding=\"async\" width=650 height=344 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image140.jpg\" v:shapes=\"_x0000_i1095\"><br><\/div><input type='hidden' name='question_id[]' id='qID_34' value='120557' \/><input type='hidden' id='answerType120557' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120557[]' id='textarea_q_120557' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-35' style=';'><div id='questionWrap-35'  class='   watupro-question-id-120559'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>35. <\/span>You develop a Microsoft SQL Server database that contains tables as shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=598 height=374 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image144.jpg\" v:shapes=\"_x0000_i1097\"><br><br \/>\r<br>You need to retrieve a list of clients for whom there is no corresponding information in the Projects table. <br \/>\r<br>Which Transact-SQL statements should you run? <br \/>\r<br>A) <br \/>\r<br><br><img decoding=\"async\" width=535 height=75 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image146.jpg\" v:shapes=\"_x0000_i1098\"><br><br \/>\r<br>B) <br \/>\r<br><br><img decoding=\"async\" width=525 height=75 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image148.jpg\" v:shapes=\"_x0000_i1099\"><br><br \/>\r<br>C) <br \/>\r<br><br><img decoding=\"async\" width=525 height=75 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image150.jpg\" v:shapes=\"_x0000_i1100\"><br><br \/>\r<br>D) <br \/>\r<br><br><img decoding=\"async\" width=535 height=75 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image152.jpg\" v:shapes=\"_x0000_i1101\"><br><\/div><input type='hidden' name='question_id[]' id='qID_35' value='120559' \/><input type='hidden' id='answerType120559' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120559[]' id='answer-id-495610' class='answer   answerof-120559 ' value='495610'   \/><label for='answer-id-495610' id='answer-label-495610' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120559[]' id='answer-id-495611' class='answer   answerof-120559 ' value='495611'   \/><label for='answer-id-495611' id='answer-label-495611' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120559[]' id='answer-id-495612' class='answer   answerof-120559 ' value='495612'   \/><label for='answer-id-495612' id='answer-label-495612' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120559[]' id='answer-id-495613' class='answer   answerof-120559 ' value='495613'   \/><label for='answer-id-495613' id='answer-label-495613' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-36' style=';'><div id='questionWrap-36'  class='   watupro-question-id-120561'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>36. <\/span>Note: This question is part of series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in the series. Information and details provided in a question apply only to that question. <br \/>\r<br>You administer a Microsoft SQL Server database. <br \/>\r<br>The database contains a table named Employee. <br \/>\r<br>Part of the Employee table is shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=348 height=342 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image154.jpg\" v:shapes=\"_x0000_i1102\"><br><br \/>\r<br>Unless stated above, no columns in the Employee table reference other tables. <br \/>\r<br>Confidential information about the employees is stored in a separate table named EmployeeData. <br \/>\r<br>One record exists within EmployeeData for each record in the Employee table. <br \/>\r<br><br><img decoding=\"async\" width=613 height=274 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image156.jpg\" v:shapes=\"_x0000_i1103\"><br><br \/>\r<br>You need to assign the appropriate constraints and table properties to ensure data integrity and <br \/>\r<br>visibility. <br \/>\r<br>Which column in the Employee table should be referenced in a one-to-one relationship by the EmployeeData table?<\/div><input type='hidden' name='question_id[]' id='qID_36' value='120561' \/><input type='hidden' id='answerType120561' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495618' class='answer   answerof-120561 ' value='495618'   \/><label for='answer-id-495618' id='answer-label-495618' class=' answer'><span>DateHired<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495619' class='answer   answerof-120561 ' value='495619'   \/><label for='answer-id-495619' id='answer-label-495619' class=' answer'><span>DepartmentID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495620' class='answer   answerof-120561 ' value='495620'   \/><label for='answer-id-495620' id='answer-label-495620' class=' answer'><span>EmployeeID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495622' class='answer   answerof-120561 ' value='495622'   \/><label for='answer-id-495622' id='answer-label-495622' class=' answer'><span>EmployeeNum<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495624' class='answer   answerof-120561 ' value='495624'   \/><label for='answer-id-495624' id='answer-label-495624' class=' answer'><span>FirstName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495626' class='answer   answerof-120561 ' value='495626'   \/><label for='answer-id-495626' id='answer-label-495626' class=' answer'><span>JobTitle<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495628' class='answer   answerof-120561 ' value='495628'   \/><label for='answer-id-495628' id='answer-label-495628' class=' answer'><span>LastName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495629' class='answer   answerof-120561 ' value='495629'   \/><label for='answer-id-495629' id='answer-label-495629' class=' answer'><span>MiddleName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120561[]' id='answer-id-495630' class='answer   answerof-120561 ' value='495630'   \/><label for='answer-id-495630' id='answer-label-495630' class=' answer'><span>ReportsToID<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-37' style=';'><div id='questionWrap-37'  class='   watupro-question-id-120564'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>37. <\/span>You use a Microsoft SQL Server database. <br \/>\r<br>You want to create a table to store files. <br \/>\r<br>You need to ensure that the following requirements are met: <br \/>\r<br>- The files must include information about the directory structure. <br \/>\r<br>- The files must be accessible in SQL Server. <br \/>\r<br>- The files must be in a folder that is accessible directly by using Windows Explorer. <br \/>\r<br>Which Transact-SQL statement should you run? <br \/>\r<br>A) <br \/>\r<br><br><img decoding=\"async\" width=303 height=114 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image158.jpg\" v:shapes=\"_x0000_i1104\"><br><br \/>\r<br>B) <br \/>\r<br><br><img decoding=\"async\" width=487 height=115 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image160.jpg\" v:shapes=\"_x0000_i1105\"><br><br \/>\r<br>C) <br \/>\r<br><br><img decoding=\"async\" width=346 height=114 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image162.jpg\" v:shapes=\"_x0000_i1106\"><br><br \/>\r<br>D) <br \/>\r<br><br><img decoding=\"async\" width=377 height=11 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image164.jpg\" v:shapes=\"_x0000_i1107\"><br><\/div><input type='hidden' name='question_id[]' id='qID_37' value='120564' \/><input type='hidden' id='answerType120564' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120564[]' id='answer-id-495632' class='answer   answerof-120564 ' value='495632'   \/><label for='answer-id-495632' id='answer-label-495632' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120564[]' id='answer-id-495634' class='answer   answerof-120564 ' value='495634'   \/><label for='answer-id-495634' id='answer-label-495634' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120564[]' id='answer-id-495636' class='answer   answerof-120564 ' value='495636'   \/><label for='answer-id-495636' id='answer-label-495636' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120564[]' id='answer-id-495638' class='answer   answerof-120564 ' value='495638'   \/><label for='answer-id-495638' id='answer-label-495638' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-38' style=';'><div id='questionWrap-38'  class='   watupro-question-id-120566'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>38. <\/span>DRAG DROP <br \/>\r<br>You administer a Microsoft SQL Server database named ContosoDb. ContosoDb contains a table named Suppliers and an indexed view named VWLocalSuppliers, both of which were created by using the following Transact-SQL statement: You need to change the data type of the Code column in the Suppliers table to nvarchar(50). <br \/>\r<br><br><img decoding=\"async\" width=506 height=331 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image166.jpg\" v:shapes=\"_x0000_i1108\"><br><br \/>\r<br>Which four Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=650 height=398 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image168.jpg\" v:shapes=\"_x0000_i1109\"><br><\/div><input type='hidden' name='question_id[]' id='qID_38' value='120566' \/><input type='hidden' id='answerType120566' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120566[]' id='textarea_q_120566' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-39' style=';'><div id='questionWrap-39'  class='   watupro-question-id-120567'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>39. <\/span>You develop a Microsoft SQL Server database named ContosoDb. ContosoDb contains a table named Employess that was created by using the following Transact-SQL statement: <br \/>\r<br><br><img decoding=\"async\" width=381 height=159 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image172.jpg\" v:shapes=\"_x0000_i1111\"><br><br \/>\r<br>You need to create a view that allows the insertion of new records into the Employees table by using the view. <br \/>\r<br><br><img decoding=\"async\" width=544 height=329 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image174.jpg\" v:shapes=\"_x0000_i1112\"><br><\/div><input type='hidden' name='question_id[]' id='qID_39' value='120567' \/><input type='hidden' id='answerType120567' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120567[]' id='answer-id-495644' class='answer   answerof-120567 ' value='495644'   \/><label for='answer-id-495644' id='answer-label-495644' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120567[]' id='answer-id-495645' class='answer   answerof-120567 ' value='495645'   \/><label for='answer-id-495645' id='answer-label-495645' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120567[]' id='answer-id-495646' class='answer   answerof-120567 ' value='495646'   \/><label for='answer-id-495646' id='answer-label-495646' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120567[]' id='answer-id-495647' class='answer   answerof-120567 ' value='495647'   \/><label for='answer-id-495647' id='answer-label-495647' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-40' style=';'><div id='questionWrap-40'  class='   watupro-question-id-120569'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>40. <\/span>The Agent table of a Microsoft SQL Server database contains several million rows. The database uses the SQL_Latin1_General_Cp1_CS_AS collation. <br \/>\r<br>You need to ensure that the following requirements are met: <br \/>\r<br>- The values of the StateRefID column conform to the pattern of 3 uppercase letters followed by 5 numeric digits, such as \u201cABC12345\u201d. <br \/>\r<br>- The StateRefID values are unique within the Agent table. <br \/>\r<br>- The values of all records that will be inserted or updated in the Agent table are correctly formatted. <br \/>\r<br>- Exisitng rows are ignored <br \/>\r<br>Which Transact-SQL statement should you run? <br \/>\r<br><br><img decoding=\"async\" width=644 height=412 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image176.jpg\" v:shapes=\"_x0000_i1113\"><br><\/div><input type='hidden' name='question_id[]' id='qID_40' value='120569' \/><input type='hidden' id='answerType120569' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120569[]' id='answer-id-495652' class='answer   answerof-120569 ' value='495652'   \/><label for='answer-id-495652' id='answer-label-495652' class=' answer'><span>Option A<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120569[]' id='answer-id-495653' class='answer   answerof-120569 ' value='495653'   \/><label for='answer-id-495653' id='answer-label-495653' class=' answer'><span>Option B<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120569[]' id='answer-id-495654' class='answer   answerof-120569 ' value='495654'   \/><label for='answer-id-495654' id='answer-label-495654' class=' answer'><span>Option C<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120569[]' id='answer-id-495655' class='answer   answerof-120569 ' value='495655'   \/><label for='answer-id-495655' id='answer-label-495655' class=' answer'><span>Option D<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-41' style=';'><div id='questionWrap-41'  class='   watupro-question-id-120571'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>41. <\/span>DRAG DROP <br \/>\r<br>You are a Microsoft SQL Server client tools to develop a Microsoft Azure SQL Database database that supports an e-learning application. <br \/>\r<br>The database consists of a Course table, a Subject table, and a CourseSubject table as shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=533 height=225 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image178.jpg\" v:shapes=\"\u56fe\u7247_x0020_258\"><br><br \/>\r<br>You need to write a trigger that meets the following requirements: Subjects are not physically deleted, but are marked as deleted. When a subject is deleted, the courses that offer that subject are marked as discontinued. <br \/>\r<br>Which four Transact-SQL segments should you use to develop the solution? To answer, move the <br \/>\r<br>appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area <br \/>\r<br>and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=650 height=530 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image180.jpg\" v:shapes=\"_x0000_i1115\"><br><\/div><input type='hidden' name='question_id[]' id='qID_41' value='120571' \/><input type='hidden' id='answerType120571' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120571[]' id='textarea_q_120571' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-42' style=';'><div id='questionWrap-42'  class='   watupro-question-id-120573'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>42. <\/span>DRAG DROP <br \/>\r<br>A database contains tables as shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=536 height=246 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image184.jpg\" v:shapes=\"_x0000_i1117\"><br><br \/>\r<br>Products that are discontinued are moved from the Products table to the DiscontinuedProducts table. Any orders for discontinued products are removed from the Orders table. You write the following SELECT statement to return all the discontinued products: SELECT ProductId FROM DiscontinuedProducts You need to extend the SELECT statement to include products who do not have any orders. <br \/>\r<br>Which four Transact-SQL segments should you use to develop the solution? To answer, move the <br \/>\r<br>appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order. <br \/>\r<br><br><img decoding=\"async\" width=650 height=264 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image186.jpg\" v:shapes=\"_x0000_i1118\"><br><\/div><input type='hidden' name='question_id[]' id='qID_42' value='120573' \/><input type='hidden' id='answerType120573' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120573[]' id='textarea_q_120573' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-43' style=';'><div id='questionWrap-43'  class='   watupro-question-id-120575'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>43. <\/span>You are working with a table that has an XML column that contains information about books. Each <br \/>\r<br>book may have an associated price. <br \/>\r<br>You need to write with a query that returns the price of each book as a non-xml value. <br \/>\r<br>Which XML method should you use?<\/div><input type='hidden' name='question_id[]' id='qID_43' value='120575' \/><input type='hidden' id='answerType120575' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120575[]' id='answer-id-495670' class='answer   answerof-120575 ' value='495670'   \/><label for='answer-id-495670' id='answer-label-495670' class=' answer'><span>Exist()<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120575[]' id='answer-id-495673' class='answer   answerof-120575 ' value='495673'   \/><label for='answer-id-495673' id='answer-label-495673' class=' answer'><span>Nodes()<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120575[]' id='answer-id-495675' class='answer   answerof-120575 ' value='495675'   \/><label for='answer-id-495675' id='answer-label-495675' class=' answer'><span>Query()<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120575[]' id='answer-id-495677' class='answer   answerof-120575 ' value='495677'   \/><label for='answer-id-495677' id='answer-label-495677' class=' answer'><span>Value()<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-44' style=';'><div id='questionWrap-44'  class='   watupro-question-id-120578'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>44. <\/span>You develop a Microsoft SQL Server 2012 server database that supports an application. The application contains a table that has the following definition: <br \/>\r<br>CREATE TABLE Inventory <br \/>\r<br>(ItemID int NOT NULL PRIMARY KEY, <br \/>\r<br>ItemsInStore int NOT NULL, <br \/>\r<br>ItemsInWarehouse int NOT NULL) <br \/>\r<br>You need to create a computed column that returns the sum total of the ItemsInStore and ItemsInWarehouse values for each row. <br \/>\r<br>Which Transact-SQL statement should you use?<\/div><input type='hidden' name='question_id[]' id='qID_44' value='120578' \/><input type='hidden' id='answerType120578' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120578[]' id='answer-id-495679' class='answer   answerof-120578 ' value='495679'   \/><label for='answer-id-495679' id='answer-label-495679' class=' answer'><span>ALTER TABLE Inventory \r\nADD TotalItems AS ItemsInStore + ItemsInWarehouse<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120578[]' id='answer-id-495681' class='answer   answerof-120578 ' value='495681'   \/><label for='answer-id-495681' id='answer-label-495681' class=' answer'><span>ALTER TABLE Inventory \r\nADD ItemsInStore - ItemsInWarehouse = TotalItemss<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120578[]' id='answer-id-495683' class='answer   answerof-120578 ' value='495683'   \/><label for='answer-id-495683' id='answer-label-495683' class=' answer'><span>ALTER TABLE Inventory \r\nADD TotalItems = ItemsInStore + ItemsInWarehouse<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120578[]' id='answer-id-495685' class='answer   answerof-120578 ' value='495685'   \/><label for='answer-id-495685' id='answer-label-495685' class=' answer'><span>ALTER TABLE Inventory \r\nADD TotalItems AS SUM(ItemsInStore, ItemsInWarehouse);<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-45' style=';'><div id='questionWrap-45'  class='   watupro-question-id-120580'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>45. <\/span>You develop a Microsoft SQL Server 2012 database. <br \/>\r<br>You create a view from the Orders and OrderDetails tables by using the following definition. <br \/>\r<br><br><img decoding=\"async\" width=414 height=217 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image190.jpg\" alt=image001 v:shapes=\"\u56fe\u7247_x0020_169\"><br><br \/>\r<br>You need to improve the performance of the view by persisting data to disk. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_45' value='120580' \/><input type='hidden' id='answerType120580' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120580[]' id='answer-id-495687' class='answer   answerof-120580 ' value='495687'   \/><label for='answer-id-495687' id='answer-label-495687' class=' answer'><span>Create an INSTEAD OF trigger on the view.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120580[]' id='answer-id-495689' class='answer   answerof-120580 ' value='495689'   \/><label for='answer-id-495689' id='answer-label-495689' class=' answer'><span>Create an AFTER trigger on the view.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120580[]' id='answer-id-495691' class='answer   answerof-120580 ' value='495691'   \/><label for='answer-id-495691' id='answer-label-495691' class=' answer'><span>Modify the view to use the WITH VIEW_METADATA clause.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120580[]' id='answer-id-495693' class='answer   answerof-120580 ' value='495693'   \/><label for='answer-id-495693' id='answer-label-495693' class=' answer'><span>Create a clustered index on the view.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-46' style=';'><div id='questionWrap-46'  class='   watupro-question-id-120582'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>46. <\/span>You develop a database for a travel application. You need to design tables and other database objects. <br \/>\r<br>You create the Airline_Schedules table. <br \/>\r<br>You need to store the departure and arrival dates and times of flights along with time zone information. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_46' value='120582' \/><input type='hidden' id='answerType120582' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495694' class='answer   answerof-120582 ' value='495694'   \/><label for='answer-id-495694' id='answer-label-495694' class=' answer'><span>Use the CAST function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495696' class='answer   answerof-120582 ' value='495696'   \/><label for='answer-id-495696' id='answer-label-495696' class=' answer'><span>Use the DATE data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495698' class='answer   answerof-120582 ' value='495698'   \/><label for='answer-id-495698' id='answer-label-495698' class=' answer'><span>Use the FORMAT function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495700' class='answer   answerof-120582 ' value='495700'   \/><label for='answer-id-495700' id='answer-label-495700' class=' answer'><span>Use an appropriate collation.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495702' class='answer   answerof-120582 ' value='495702'   \/><label for='answer-id-495702' id='answer-label-495702' class=' answer'><span>Use a user-defined table type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495703' class='answer   answerof-120582 ' value='495703'   \/><label for='answer-id-495703' id='answer-label-495703' class=' answer'><span>Use the VARBINARY data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495704' class='answer   answerof-120582 ' value='495704'   \/><label for='answer-id-495704' id='answer-label-495704' class=' answer'><span>Use the DATETIME data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495705' class='answer   answerof-120582 ' value='495705'   \/><label for='answer-id-495705' id='answer-label-495705' class=' answer'><span>Use the DATETIME2 data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495706' class='answer   answerof-120582 ' value='495706'   \/><label for='answer-id-495706' id='answer-label-495706' class=' answer'><span>Use the DATETIMEOFFSET data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120582[]' id='answer-id-495707' class='answer   answerof-120582 ' value='495707'   \/><label for='answer-id-495707' id='answer-label-495707' class=' answer'><span>Use the TODATETIMEOFFSET function.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-47' style=';'><div id='questionWrap-47'  class='   watupro-question-id-120584'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>47. <\/span>You develop a database for a travel application. You need to design tables and other database objects. You create a stored procedure. You need to supply the stored procedure with multiple event names and their dates as parameters. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_47' value='120584' \/><input type='hidden' id='answerType120584' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495712' class='answer   answerof-120584 ' value='495712'   \/><label for='answer-id-495712' id='answer-label-495712' class=' answer'><span>Use the CAST function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495713' class='answer   answerof-120584 ' value='495713'   \/><label for='answer-id-495713' id='answer-label-495713' class=' answer'><span>Use the DATE data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495714' class='answer   answerof-120584 ' value='495714'   \/><label for='answer-id-495714' id='answer-label-495714' class=' answer'><span>Use the FORMAT function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495715' class='answer   answerof-120584 ' value='495715'   \/><label for='answer-id-495715' id='answer-label-495715' class=' answer'><span>Use an appropriate collation.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495716' class='answer   answerof-120584 ' value='495716'   \/><label for='answer-id-495716' id='answer-label-495716' class=' answer'><span>Use a user-defined table type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495717' class='answer   answerof-120584 ' value='495717'   \/><label for='answer-id-495717' id='answer-label-495717' class=' answer'><span>Use the VARBINARY data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495718' class='answer   answerof-120584 ' value='495718'   \/><label for='answer-id-495718' id='answer-label-495718' class=' answer'><span>Use the DATETIME data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495719' class='answer   answerof-120584 ' value='495719'   \/><label for='answer-id-495719' id='answer-label-495719' class=' answer'><span>Use the DATETIME2 data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495720' class='answer   answerof-120584 ' value='495720'   \/><label for='answer-id-495720' id='answer-label-495720' class=' answer'><span>Use the DATETIMEOFFSET data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120584[]' id='answer-id-495721' class='answer   answerof-120584 ' value='495721'   \/><label for='answer-id-495721' id='answer-label-495721' class=' answer'><span>Use the TODATETIMEOFFSET function.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-48' style=';'><div id='questionWrap-48'  class='   watupro-question-id-120586'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>48. <\/span>CORRECT TEXT <br \/>\r<br>You have a view that was created by using the following code: <br \/>\r<br><br><img decoding=\"async\" width=338 height=146 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image192.jpg\" v:shapes=\"_x0000_i1121\"><br><br \/>\r<br>You need to create an inline table-valued function named Sales.fn_OrdersByTerritory, which must meet the following requirements: <br \/>\r<br>&#8226; Accept the @T integer parameter. <br \/>\r<br>&#8226; Use one-part names to reference columns. <br \/>\r<br>&#8226; Filter the query results by SalesTerritoryID. <br \/>\r<br>&#8226; Return the columns in the same order as the order used in OrdersByTerritoryView. <br \/>\r<br>Which code segment should you use? To answer, type the correct code in the answer area.<\/div><input type='hidden' name='question_id[]' id='qID_48' value='120586' \/><input type='hidden' id='answerType120586' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120586[]' id='textarea_q_120586' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-49' style=';'><div id='questionWrap-49'  class='   watupro-question-id-120588'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>49. <\/span>CORRECT TEXT <br \/>\r<br>You have a database that contains the tables shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=364 height=572 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image194.jpg\" v:shapes=\"_x0000_i1122\"><br><br \/>\r<br>You deploy a new server that has SQL Server 2012 installed. <br \/>\r<br>You need to create a table named Sales.OrderDetails on the new server. Sales.OrderDetails must meet the following requirements: <br \/>\r<br>&#8226; Write the results to a disk. <br \/>\r<br>&#8226; Contain a new column named LineItemTotal that stores the product of ListPrice and Quantity for each row. <br \/>\r<br>&#8226; The code must NOT use any object delimiters. <br \/>\r<br>The solution must ensure that LineItemTotal is stored as the last column in the table. <br \/>\r<br>Which code segment should you use? To answer, type the correct code in the answer area.<\/div><input type='hidden' name='question_id[]' id='qID_49' value='120588' \/><input type='hidden' id='answerType120588' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120588[]' id='textarea_q_120588' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-50' style=';'><div id='questionWrap-50'  class='   watupro-question-id-120590'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>50. <\/span>CORRECT TEXT <br \/>\r<br>You have a database that contains the tables shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=364 height=572 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image194.jpg\" v:shapes=\"_x0000_i1123\"><br><br \/>\r<br>You need to create a view named uv_CustomerFullName to meet the following requirements: <br \/>\r<br>&#8226; The code must NOT include object delimiters. <br \/>\r<br>&#8226; The view must be created in the Sales schema. <br \/>\r<br>&#8226; Columns must only be referenced by using one-part names. <br \/>\r<br>&#8226; The view must return the first name and the last name of all customers. <br \/>\r<br>&#8226; The view must prevent the underlying structure of the customer table from being changed. <br \/>\r<br>&#8226; The view must be able to resolve all referenced objects, regardless of the user's default schema. <br \/>\r<br>Which code segment should you use? To answer, type the correct code in the answer area.<\/div><input type='hidden' name='question_id[]' id='qID_50' value='120590' \/><input type='hidden' id='answerType120590' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120590[]' id='textarea_q_120590' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-51' style=';'><div id='questionWrap-51'  class='   watupro-question-id-120592'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>51. <\/span>CORRECT TEXT <br \/>\r<br>You have a database that contains the tables shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=523 height=479 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image196.jpg\" v:shapes=\"_x0000_i1124\"><br><br \/>\r<br>You need to create a query that calculates the total sales of each OrderId from the Sales.Details table. <br \/>\r<br>The solution must meet the following requirements: <br \/>\r<br>&#8226; Use one-part names to reference columns. <br \/>\r<br>&#8226; Sort the order of the results from OrderId. <br \/>\r<br>&#8226; NOT depend on the default schema of a user. <br \/>\r<br>&#8226; Use an alias of TotalSales for the calculated ExtendedAmount. <br \/>\r<br>&#8226; Display only the OrderId column and the calculated TotalSales column. <br \/>\r<br>Which code segment should you use? To answer, type the correct code in the answer area.<\/div><input type='hidden' name='question_id[]' id='qID_51' value='120592' \/><input type='hidden' id='answerType120592' value='textarea'><!-- end question-content--><\/div><div class='question-choices '><p><textarea name='answer-120592[]' id='textarea_q_120592' class='watupro-textarea-medium' rows='5' cols='80'><\/textarea>\n<\/p><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-52' style=';'><div id='questionWrap-52'  class='   watupro-question-id-120593'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>52. <\/span>You have a Microsoft SQL Server 2012 database that contains tables named Customers and Orders. <br \/>\r<br>The tables are related by a column named CustomerID. <br \/>\r<br>You need to create a query that meets the following requirements: <br \/>\r<br>&#8226; Returns the CustomerName for all customers and the OrderDate for any orders that they have placed. <br \/>\r<br>&#8226; Results must include customers who have not placed any orders. <br \/>\r<br>Which Transact-SQL query should you use?<\/div><input type='hidden' name='question_id[]' id='qID_52' value='120593' \/><input type='hidden' id='answerType120593' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120593[]' id='answer-id-495746' class='answer   answerof-120593 ' value='495746'   \/><label for='answer-id-495746' id='answer-label-495746' class=' answer'><span>SELECT CustomerName, OrderDate \r\nFROM Customers \r\nRIGHT OUTER JOIN Orders \r\nON Customers.CustomerID = Orders.CustomerID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120593[]' id='answer-id-495747' class='answer   answerof-120593 ' value='495747'   \/><label for='answer-id-495747' id='answer-label-495747' class=' answer'><span>SELECT CustomerName, OrderDate \r\nFROM Customers \r\nJOIN Orders \r\nON Customers.CustomerID = Orders.CustomerID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120593[]' id='answer-id-495748' class='answer   answerof-120593 ' value='495748'   \/><label for='answer-id-495748' id='answer-label-495748' class=' answer'><span>SELECT CustomerName, OrderDate \r\nFROM Customers \r\nCROSS JOIN Orders \r\nON Customers.CustomerID = Orders.CustomerID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120593[]' id='answer-id-495749' class='answer   answerof-120593 ' value='495749'   \/><label for='answer-id-495749' id='answer-label-495749' class=' answer'><span>SELECT CustomerName, OrderDate \r\nFROM Customers \r\nLEFT OUTER JOIN Orders \r\nON Customers.CustomerID = Orders.CustomerID<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-53' style=';'><div id='questionWrap-53'  class='   watupro-question-id-120596'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>53. <\/span>You create a stored procedure that will update multiple tables within a transaction. <br \/>\r<br>You need to ensure that if the stored procedure raises a run-time error, the entire transaction is terminated and rolled back. <br \/>\r<br>Which Transact-SQL statement should you include at the beginning of the stored procedure?<\/div><input type='hidden' name='question_id[]' id='qID_53' value='120596' \/><input type='hidden' id='answerType120596' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120596[]' id='answer-id-495754' class='answer   answerof-120596 ' value='495754'   \/><label for='answer-id-495754' id='answer-label-495754' class=' answer'><span>SET XACT_ABORT ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120596[]' id='answer-id-495755' class='answer   answerof-120596 ' value='495755'   \/><label for='answer-id-495755' id='answer-label-495755' class=' answer'><span>SET ARITHABORT ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120596[]' id='answer-id-495756' class='answer   answerof-120596 ' value='495756'   \/><label for='answer-id-495756' id='answer-label-495756' class=' answer'><span>TRY<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120596[]' id='answer-id-495757' class='answer   answerof-120596 ' value='495757'   \/><label for='answer-id-495757' id='answer-label-495757' class=' answer'><span>BEGIN<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120596[]' id='answer-id-495758' class='answer   answerof-120596 ' value='495758'   \/><label for='answer-id-495758' id='answer-label-495758' class=' answer'><span>SET ARITHABORT OFF<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120596[]' id='answer-id-495759' class='answer   answerof-120596 ' value='495759'   \/><label for='answer-id-495759' id='answer-label-495759' class=' answer'><span>SET XACT_ABORT OFF<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-54' style=';'><div id='questionWrap-54'  class='   watupro-question-id-120598'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>54. <\/span>Your database contains two tables named DomesticSalesOrders and InternationalSalesOrders. Both tables contain more than 100 million rows. Each table has a Primary Key column named SalesOrderId. The data in the two tables is distinct from one another. <br \/>\r<br>Business users want a report that includes aggregate information about the total number of global sales and total sales amounts. <br \/>\r<br>You need to ensure that your query executes in the minimum possible time. <br \/>\r<br>Which query should you use?<\/div><input type='hidden' name='question_id[]' id='qID_54' value='120598' \/><input type='hidden' id='answerType120598' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120598[]' id='answer-id-495764' class='answer   answerof-120598 ' value='495764'   \/><label for='answer-id-495764' id='answer-label-495764' class=' answer'><span>SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmount) AS TotalSalesAmount \r\nFROM ( \r\nSELECT SalesOrderId, SalesAmount \r\nFROM DomesticSalesOrders \r\nUNION ALL \r\nSELECT SalesOrderId, SalesAmount \r\nFROM InternationalSalesOrders \r\n) AS p<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120598[]' id='answer-id-495765' class='answer   answerof-120598 ' value='495765'   \/><label for='answer-id-495765' id='answer-label-495765' class=' answer'><span>SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmount) AS TotalSalesAmount \r\nFROM ( \r\nSELECT SalesOrderId, SalesAmount \r\nFROM DomesticSalesOrders \r\nUNION \r\nSELECT SalesOrderId, SalesAmount \r\nFROM InternationalSalesOrders \r\n) AS p<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120598[]' id='answer-id-495766' class='answer   answerof-120598 ' value='495766'   \/><label for='answer-id-495766' id='answer-label-495766' class=' answer'><span>SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmount) AS TotalSalesAmount \r\nFROM DomesticSalesOrders \r\nUNION \r\nSELECT COUNT(*) AS NumberOfSales, SUM(SalesAmount) AS TotalSalesAmount \r\nFROM InternationalSalesOrders<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120598[]' id='answer-id-495767' class='answer   answerof-120598 ' value='495767'   \/><label for='answer-id-495767' id='answer-label-495767' class=' answer'><span>SELECT COUNT(*) AS NumberOfSales, SUM(SalesAmount) AS TotalSalesAmount \r\nFROM DomesticSalesOrders \r\nUNION ALL \r\nSELECT COUNT(*) AS NumberOfSales, SUM(SalesAmount) AS TotalSalesAmount \r\nFROM InternationalSalesOrders<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-55' style=';'><div id='questionWrap-55'  class='   watupro-question-id-120600'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>55. <\/span>You are a database developer at an independent software vendor. You create stored procedures that contain proprietary code. <br \/>\r<br>You need to protect the code from being viewed by your customers. <br \/>\r<br>Which stored procedure option should you use?<\/div><input type='hidden' name='question_id[]' id='qID_55' value='120600' \/><input type='hidden' id='answerType120600' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120600[]' id='answer-id-495772' class='answer   answerof-120600 ' value='495772'   \/><label for='answer-id-495772' id='answer-label-495772' class=' answer'><span>ENCRYPTBYKEY<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120600[]' id='answer-id-495773' class='answer   answerof-120600 ' value='495773'   \/><label for='answer-id-495773' id='answer-label-495773' class=' answer'><span>ENCRYPTION<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120600[]' id='answer-id-495774' class='answer   answerof-120600 ' value='495774'   \/><label for='answer-id-495774' id='answer-label-495774' class=' answer'><span>ENCRYPTBYPASSPHRASE<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120600[]' id='answer-id-495775' class='answer   answerof-120600 ' value='495775'   \/><label for='answer-id-495775' id='answer-label-495775' class=' answer'><span>ENCRYPTBYCERT<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-56' style=';'><div id='questionWrap-56'  class='   watupro-question-id-120602'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>56. <\/span>You use a Microsoft SQL Server 2012 database. <br \/>\r<br>You want to create a table to store Microsoft Word documents. <br \/>\r<br>You need to ensure that the documents must only be accessible via Transact-SQL queries. <br \/>\r<br>Which Transact-SQL statement should you use?<\/div><input type='hidden' name='question_id[]' id='qID_56' value='120602' \/><input type='hidden' id='answerType120602' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120602[]' id='answer-id-495780' class='answer   answerof-120602 ' value='495780'   \/><label for='answer-id-495780' id='answer-label-495780' class=' answer'><span>CREATE TABLE DocumentStore \r\n( \r\n[Id] INT NOT NULL PRIMARY KEY, \r\n[Document] VARBINARY(MAX) NULL \r\n) \r\nGO<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120602[]' id='answer-id-495781' class='answer   answerof-120602 ' value='495781'   \/><label for='answer-id-495781' id='answer-label-495781' class=' answer'><span>CREATE TABLE DocumentStore \r\n( \r\n[Id] hierarchyid, \r\n[Document] NVARCHAR NOT NULL \r\n) \r\nGO<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120602[]' id='answer-id-495782' class='answer   answerof-120602 ' value='495782'   \/><label for='answer-id-495782' id='answer-label-495782' class=' answer'><span>CREATE TABLE DocumentStore AS FileTable<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120602[]' id='answer-id-495783' class='answer   answerof-120602 ' value='495783'   \/><label for='answer-id-495783' id='answer-label-495783' class=' answer'><span>CREATE TABLE DocumentStore \r\n( \r\n[Id] [uniqueidentifier] ROWGUIDCOL NOT NULL UNIQUE, \r\n[Document] VARBINARY(MAX) FILESTREAM NULL \r\n) \r\nGO<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-57' style=';'><div id='questionWrap-57'  class='   watupro-question-id-120604'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>57. <\/span>You administer a Microsoft SQL Server 2012 database that contains a table named OrderDetail. You discover that the NCI_OrderDetail_CustomerID non-clustered index is fragmented. You need to reduce fragmentation. <br \/>\r<br>You need to achieve this goal without taking the index offline. <br \/>\r<br>Which Transact-SQL batch should you use?<\/div><input type='hidden' name='question_id[]' id='qID_57' value='120604' \/><input type='hidden' id='answerType120604' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120604[]' id='answer-id-495788' class='answer   answerof-120604 ' value='495788'   \/><label for='answer-id-495788' id='answer-label-495788' class=' answer'><span>CREATE INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID WITH DROP EXISTING<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120604[]' id='answer-id-495789' class='answer   answerof-120604 ' value='495789'   \/><label for='answer-id-495789' id='answer-label-495789' class=' answer'><span>ALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REORGANIZE<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120604[]' id='answer-id-495790' class='answer   answerof-120604 ' value='495790'   \/><label for='answer-id-495790' id='answer-label-495790' class=' answer'><span>ALTER INDEX ALL ON OrderDetail REBUILD<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120604[]' id='answer-id-495791' class='answer   answerof-120604 ' value='495791'   \/><label for='answer-id-495791' id='answer-label-495791' class=' answer'><span>ALTER INDEX NCI_OrderDetail_CustomerID ON OrderDetail.CustomerID REBUILD<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-58' style=';'><div id='questionWrap-58'  class='   watupro-question-id-120606'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>58. <\/span>You develop a Microsoft SQL Server 2012 database. The database is used by two web applications that access a table named Products. <br \/>\r<br>You want to create an object that will prevent the applications from accessing the table directly while still providing access to the required data. <br \/>\r<br>You need to ensure that the following requirements are met: <br \/>\r<br>- Future modifications to the table definition will not affect the applications' ability to access data. <br \/>\r<br>- The new object can accommodate data retrieval and data modification. <br \/>\r<br>You need to achieve this goal by using the minimum amount of changes to the existing applications. <br \/>\r<br>What should you create for each application?<\/div><input type='hidden' name='question_id[]' id='qID_58' value='120606' \/><input type='hidden' id='answerType120606' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120606[]' id='answer-id-495793' class='answer   answerof-120606 ' value='495793'   \/><label for='answer-id-495793' id='answer-label-495793' class=' answer'><span>views<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120606[]' id='answer-id-495795' class='answer   answerof-120606 ' value='495795'   \/><label for='answer-id-495795' id='answer-label-495795' class=' answer'><span>table partitions<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120606[]' id='answer-id-495797' class='answer   answerof-120606 ' value='495797'   \/><label for='answer-id-495797' id='answer-label-495797' class=' answer'><span>table-valued functions<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120606[]' id='answer-id-495799' class='answer   answerof-120606 ' value='495799'   \/><label for='answer-id-495799' id='answer-label-495799' class=' answer'><span>stored procedures<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-59' style=';'><div id='questionWrap-59'  class='   watupro-question-id-120608'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>59. <\/span>You develop a Microsoft SQL Server 2012 database. <br \/>\r<br>You need to create a batch process that meets the following requirements: -Returns a result set based on supplied parameters. -Enables the returned result set to perform a join with a table. <br \/>\r<br>Which object should you use?<\/div><input type='hidden' name='question_id[]' id='qID_59' value='120608' \/><input type='hidden' id='answerType120608' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120608[]' id='answer-id-495801' class='answer   answerof-120608 ' value='495801'   \/><label for='answer-id-495801' id='answer-label-495801' class=' answer'><span>Inline user-defined function<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120608[]' id='answer-id-495803' class='answer   answerof-120608 ' value='495803'   \/><label for='answer-id-495803' id='answer-label-495803' class=' answer'><span>Stored procedure<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120608[]' id='answer-id-495805' class='answer   answerof-120608 ' value='495805'   \/><label for='answer-id-495805' id='answer-label-495805' class=' answer'><span>Table-valued user-defined function<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120608[]' id='answer-id-495807' class='answer   answerof-120608 ' value='495807'   \/><label for='answer-id-495807' id='answer-label-495807' class=' answer'><span>Scalar user-defined function<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-60' style=';'><div id='questionWrap-60'  class='   watupro-question-id-120610'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>60. <\/span>You develop a Microsoft SQL Server 2012 database. <br \/>\r<br>You need to create and call a stored procedure that meets the following requirements: <br \/>\r<br>- Accepts a single input parameter for CustomerID. <br \/>\r<br>- Returns a single integer to the calling application. <br \/>\r<br>Which Transact-SQL statement or statements should you use? (Each correct answer presents part of the solution. Choose all that apply.)<\/div><input type='hidden' name='question_id[]' id='qID_60' value='120610' \/><input type='hidden' id='answerType120610' value='checkbox'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120610[]' id='answer-id-495810' class='answer   answerof-120610 ' value='495810'   \/><label for='answer-id-495810' id='answer-label-495810' class=' answer'><span>CREATE PROCEDURE dbo.GetCustomerRating \r\n@CustomerID INT, \r\n@CustomerRating INT OUTPUT \r\nAS \r\nSET NOCOUNT ON \r\nSELECT @CustomerRating = CustomerOrders\/CustomerValue \r\nFROM Customers \r\nWHERE CustomerID = @CustomerID \r\nRETURN \r\nGO<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120610[]' id='answer-id-495812' class='answer   answerof-120610 ' value='495812'   \/><label for='answer-id-495812' id='answer-label-495812' class=' answer'><span>EXECUTE dbo.GetCustomerRating 1745<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120610[]' id='answer-id-495814' class='answer   answerof-120610 ' value='495814'   \/><label for='answer-id-495814' id='answer-label-495814' class=' answer'><span>DECLARE @CustomerRatingByCustomer INT \r\nDECLARE @Result INT \r\nEXECUTE @Result = dbo.GetCustomerRating \r\n1745, \r\n@CustomerRatingByCustomer<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120610[]' id='answer-id-495815' class='answer   answerof-120610 ' value='495815'   \/><label for='answer-id-495815' id='answer-label-495815' class=' answer'><span>CREATE PROCEDURE dbo.GetCustomerRating \r\n@CustomerID INT, \r\n@CustomerRating INT OUTPUT \r\nAS \r\nSET NOCOUNT ON \r\nSELECT @Result = CustomerOrders\/CustomerValue \r\nFROM Customers \r\nWHERE CustomerID = @CustomerID \r\nRETURN @Result \r\nGO<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120610[]' id='answer-id-495816' class='answer   answerof-120610 ' value='495816'   \/><label for='answer-id-495816' id='answer-label-495816' class=' answer'><span>DECLARE @CustomerRatingByCustomer INT \r\nEXECUTE dbo.GetCustomerRating \r\n@CustomerID = 1745, \r\n@CustomerRating = @CustomerRatingByCustomer OUTPUT<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120610[]' id='answer-id-495817' class='answer   answerof-120610 ' value='495817'   \/><label for='answer-id-495817' id='answer-label-495817' class=' answer'><span>CREATE PROCEDURE dbo.GetCustomerRating \r\n@CustomerID INT \r\nAS \r\nDECLARE @Result INT \r\nSET NOCOUNT ON \r\nSELECT @Result = CustomerOrders\/CustomerValue \r\nFROM Customers \r\nWHERE CustomerID = @CustomerID \r\nRETURNS @Result \r\nGO<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-61' style=';'><div id='questionWrap-61'  class='   watupro-question-id-120612'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>61. <\/span>You develop a Microsoft SQL Server 2012 database that contains a heap named OrdersHistorical. <br \/>\r<br>You write the following Transact-SQL query: <br \/>\r<br>- INSERT INTO OrdersHistorical <br \/>\r<br>- SELECT * FROM CompletedOrders <br \/>\r<br>You need to optimize transaction logging and locking for the statement. <br \/>\r<br>Which table hint should you use?<\/div><input type='hidden' name='question_id[]' id='qID_61' value='120612' \/><input type='hidden' id='answerType120612' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120612[]' id='answer-id-495819' class='answer   answerof-120612 ' value='495819'   \/><label for='answer-id-495819' id='answer-label-495819' class=' answer'><span>HOLDLOCK<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120612[]' id='answer-id-495821' class='answer   answerof-120612 ' value='495821'   \/><label for='answer-id-495821' id='answer-label-495821' class=' answer'><span>ROWLOCK<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120612[]' id='answer-id-495823' class='answer   answerof-120612 ' value='495823'   \/><label for='answer-id-495823' id='answer-label-495823' class=' answer'><span>XLOCK<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120612[]' id='answer-id-495825' class='answer   answerof-120612 ' value='495825'   \/><label for='answer-id-495825' id='answer-label-495825' class=' answer'><span>UPDLOCK<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120612[]' id='answer-id-495826' class='answer   answerof-120612 ' value='495826'   \/><label for='answer-id-495826' id='answer-label-495826' class=' answer'><span>TABLOCK<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-62' style=';'><div id='questionWrap-62'  class='   watupro-question-id-120614'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>62. <\/span>You use a Microsoft SQL Server 2012 database that contains two tables named SalesOrderHeader and SalesOrderDetail. <br \/>\r<br>The indexes on the tables are as shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=600 height=534 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image198.jpg\" v:shapes=\"_x0000_i1125\"><br><br \/>\r<br>You write the following Transact-SQL query: <br \/>\r<br><br><img decoding=\"async\" width=425 height=145 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image200.jpg\" v:shapes=\"_x0000_i1126\"><br><br \/>\r<br>You discover that the performance of the query is slow. Analysis of the query plan shows table scans where the estimated rows do not match the actual rows for SalesOrderHeader by using an unexpected index on SalesOrderDetail. <br \/>\r<br>You need to improve the performance of the query. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_62' value='120614' \/><input type='hidden' id='answerType120614' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120614[]' id='answer-id-495828' class='answer   answerof-120614 ' value='495828'   \/><label for='answer-id-495828' id='answer-label-495828' class=' answer'><span>Use a FORCESCAN hint in the query.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120614[]' id='answer-id-495830' class='answer   answerof-120614 ' value='495830'   \/><label for='answer-id-495830' id='answer-label-495830' class=' answer'><span>Add a clustered index on SalesOrderId in SalesOrderHeader.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120614[]' id='answer-id-495832' class='answer   answerof-120614 ' value='495832'   \/><label for='answer-id-495832' id='answer-label-495832' class=' answer'><span>Use a FORCESEEK hint in the query.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120614[]' id='answer-id-495834' class='answer   answerof-120614 ' value='495834'   \/><label for='answer-id-495834' id='answer-label-495834' class=' answer'><span>Update statistics on SalesOrderId on both tables.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-63' style=';'><div id='questionWrap-63'  class='   watupro-question-id-120616'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>63. <\/span>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. <br \/>\r<br>The business team wants a report that displays the total number of purchases made on the current day. <br \/>\r<br>You need to write a query that will return the correct results in the most efficient manner. <br \/>\r<br>Which Transact-SQL query should you use?<\/div><input type='hidden' name='question_id[]' id='qID_63' value='120616' \/><input type='hidden' id='answerType120616' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120616[]' id='answer-id-495836' class='answer   answerof-120616 ' value='495836'   \/><label for='answer-id-495836' id='answer-label-495836' class=' answer'><span>SELECT COUNT(*) \r\nFROM Purchases \r\nWHERE PurchaseTime = CONVERT(DATE, GETDATE())<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120616[]' id='answer-id-495838' class='answer   answerof-120616 ' value='495838'   \/><label for='answer-id-495838' id='answer-label-495838' class=' answer'><span>SELECT COUNT(*) \r\nFROM Purchases \r\nWHERE PurchaseTime = GETDATE()<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120616[]' id='answer-id-495840' class='answer   answerof-120616 ' value='495840'   \/><label for='answer-id-495840' id='answer-label-495840' class=' answer'><span>SELECT COUNT(*) \r\nFROM Purchases \r\nWHERE CONVERT(VARCHAR, PurchaseTime, 112) = CONVERT(VARCHAR, GETDATE(), 112)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120616[]' id='answer-id-495842' class='answer   answerof-120616 ' value='495842'   \/><label for='answer-id-495842' id='answer-label-495842' class=' answer'><span>SELECT COUNT(*) \r\nFROM Purchases \r\nWHERE PurchaseTime &gt;= CONVERT(DATE, GETDATE()) \r\nAND PurchaseTime &lt; DATEADD(DAY, 1, CONVERT(DATE, GETDATE()))<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-64' style=';'><div id='questionWrap-64'  class='   watupro-question-id-120618'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>64. <\/span>You develop a database for a travel application. You need to design tables and other database objects. <br \/>\r<br>You need to store media files in several tables. <br \/>\r<br>Each media file is less than 1 MB in size. The media files will require fast access and will be retrieved frequently. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_64' value='120618' \/><input type='hidden' id='answerType120618' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495844' class='answer   answerof-120618 ' value='495844'   \/><label for='answer-id-495844' id='answer-label-495844' class=' answer'><span>Use the CAST function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495846' class='answer   answerof-120618 ' value='495846'   \/><label for='answer-id-495846' id='answer-label-495846' class=' answer'><span>Use the DATE data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495848' class='answer   answerof-120618 ' value='495848'   \/><label for='answer-id-495848' id='answer-label-495848' class=' answer'><span>Use the FORMAT function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495850' class='answer   answerof-120618 ' value='495850'   \/><label for='answer-id-495850' id='answer-label-495850' class=' answer'><span>Use an appropriate collation.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495851' class='answer   answerof-120618 ' value='495851'   \/><label for='answer-id-495851' id='answer-label-495851' class=' answer'><span>Use a user-defined table type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495852' class='answer   answerof-120618 ' value='495852'   \/><label for='answer-id-495852' id='answer-label-495852' class=' answer'><span>Use the VARBINARY data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495853' class='answer   answerof-120618 ' value='495853'   \/><label for='answer-id-495853' id='answer-label-495853' class=' answer'><span>Use the DATETIME data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495854' class='answer   answerof-120618 ' value='495854'   \/><label for='answer-id-495854' id='answer-label-495854' class=' answer'><span>Use the DATETIME2 data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495855' class='answer   answerof-120618 ' value='495855'   \/><label for='answer-id-495855' id='answer-label-495855' class=' answer'><span>Use the DATETIMEOFFSET data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120618[]' id='answer-id-495856' class='answer   answerof-120618 ' value='495856'   \/><label for='answer-id-495856' id='answer-label-495856' class=' answer'><span>Use the TODATETIMEOFFSET function.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-65' style=';'><div id='questionWrap-65'  class='   watupro-question-id-120620'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>65. <\/span>You develop a database for a travel application. You need to design tables and other database objects. <br \/>\r<br>You create a view that displays the dates and times of the airline schedules on a report. <br \/>\r<br>You need to display dates and times in several international formats. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_65' value='120620' \/><input type='hidden' id='answerType120620' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495858' class='answer   answerof-120620 ' value='495858'   \/><label for='answer-id-495858' id='answer-label-495858' class=' answer'><span>Use the CAST function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495860' class='answer   answerof-120620 ' value='495860'   \/><label for='answer-id-495860' id='answer-label-495860' class=' answer'><span>Use the DATE data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495862' class='answer   answerof-120620 ' value='495862'   \/><label for='answer-id-495862' id='answer-label-495862' class=' answer'><span>Use the FORMAT function.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495864' class='answer   answerof-120620 ' value='495864'   \/><label for='answer-id-495864' id='answer-label-495864' class=' answer'><span>Use an appropriate collation.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495866' class='answer   answerof-120620 ' value='495866'   \/><label for='answer-id-495866' id='answer-label-495866' class=' answer'><span>Use a user-defined table type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495868' class='answer   answerof-120620 ' value='495868'   \/><label for='answer-id-495868' id='answer-label-495868' class=' answer'><span>Use the VARBINARY data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495869' class='answer   answerof-120620 ' value='495869'   \/><label for='answer-id-495869' id='answer-label-495869' class=' answer'><span>Use the DATETIME data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495870' class='answer   answerof-120620 ' value='495870'   \/><label for='answer-id-495870' id='answer-label-495870' class=' answer'><span>Use the DATETIME2 data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495871' class='answer   answerof-120620 ' value='495871'   \/><label for='answer-id-495871' id='answer-label-495871' class=' answer'><span>Use the DATETIMEOFFSET data type.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120620[]' id='answer-id-495872' class='answer   answerof-120620 ' value='495872'   \/><label for='answer-id-495872' id='answer-label-495872' class=' answer'><span>Use the TODATETIMEOFFSET function.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-66' style=';'><div id='questionWrap-66'  class='   watupro-question-id-120622'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>66. <\/span>You are a database developer of a Microsoft SQL Server 2012 database. <br \/>\r<br>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. <br \/>\r<br>A sample of this data is as shown in the following table. <br \/>\r<br><br><img decoding=\"async\" width=414 height=125 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image202.jpg\" v:shapes=\"_x0000_i1127\"><br><br \/>\r<br>You need to ensure that the table has no duplicate CustomerID within a SourceID. You also need to ensure that the data in the table is in the order of SourceID and then CustomerID. <br \/>\r<br>Which Transact- SQL statement should you use?<\/div><input type='hidden' name='question_id[]' id='qID_66' value='120622' \/><input type='hidden' id='answerType120622' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120622[]' id='answer-id-495874' class='answer   answerof-120622 ' value='495874'   \/><label for='answer-id-495874' id='answer-label-495874' class=' answer'><span>CREATE TABLE Customer \r\n(SourceID int NOT NULL IDENTITY, \r\nCustomerID int NOT NULL IDENTITY, \r\nCustomerName varchar(255) NOT NULL);<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120622[]' id='answer-id-495876' class='answer   answerof-120622 ' value='495876'   \/><label for='answer-id-495876' id='answer-label-495876' class=' answer'><span>CREATE TABLE Customer \r\n(SourceID int NOT NULL, \r\nCustomerID int NOT NULL PRIMARY KEY CLUSTERED, \r\nCustomerName varchar(255) NOT NULL);<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120622[]' id='answer-id-495878' class='answer   answerof-120622 ' value='495878'   \/><label for='answer-id-495878' id='answer-label-495878' class=' answer'><span>CREATE TABLE Customer \r\n(SourceID int NOT NULL PRIMARY KEY CLUSTERED, \r\nCustomerID int NOT NULL UNIQUE, \r\nCustomerName varchar(255) NOT NULL);<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120622[]' id='answer-id-495880' class='answer   answerof-120622 ' value='495880'   \/><label for='answer-id-495880' id='answer-label-495880' class=' answer'><span>CREATE TABLE Customer \r\n(SourceID int NOT NULL, \r\nCustomerID int NOT NULL, \r\nCustomerName varchar(255) NOT NULL, \r\nCONSTRAINT PK_Customer PRIMARY KEY CLUSTERED \r\n(SourceID, CustomerID));<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-67' style=';'><div id='questionWrap-67'  class='   watupro-question-id-120624'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>67. <\/span>You have three tables that contain data for vendors, customers, and agents. You create a view that is used to look up telephone numbers for these companies. <br \/>\r<br>The view has the following definition: <br \/>\r<br><br><img decoding=\"async\" width=415 height=567 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image204.jpg\" v:shapes=\"_x0000_i1128\"><br><br \/>\r<br>You need to ensure that users can update only the phone numbers by using this view. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_67' value='120624' \/><input type='hidden' id='answerType120624' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120624[]' id='answer-id-495883' class='answer   answerof-120624 ' value='495883'   \/><label for='answer-id-495883' id='answer-label-495883' class=' answer'><span>Alter the view. Use the EXPAND VIEWS query hint along with each SELECT statement.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120624[]' id='answer-id-495885' class='answer   answerof-120624 ' value='495885'   \/><label for='answer-id-495885' id='answer-label-495885' class=' answer'><span>Drop the view. Re-create the view by using the SCHEMABINDING clause, and then create an index on the view.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120624[]' id='answer-id-495887' class='answer   answerof-120624 ' value='495887'   \/><label for='answer-id-495887' id='answer-label-495887' class=' answer'><span>Create an AFTER UPDATE trigger on the view.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120624[]' id='answer-id-495889' class='answer   answerof-120624 ' value='495889'   \/><label for='answer-id-495889' id='answer-label-495889' class=' answer'><span>Create an INSTEAD OF UPDATE trigger on the view.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-68' style=';'><div id='questionWrap-68'  class='   watupro-question-id-120625'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>68. <\/span>You develop a Microsoft SQL Server 2012 database that contains tables named Employee and Person. <br \/>\r<br>The tables have the following definitions: <br \/>\r<br><br><img decoding=\"async\" width=590 height=635 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image206.jpg\" v:shapes=\"_x0000_i1129\"><br><br \/>\r<br>Users are able to use single INSERT statements or INSERT...SELECT statements into this view. <br \/>\r<br>You need to ensure that users are able to use a single statement to insert records into both Employee and Person tables by using the VwEmployee view. <br \/>\r<br>Which Transact-SQL statement should you use?<\/div><input type='hidden' name='question_id[]' id='qID_68' value='120625' \/><input type='hidden' id='answerType120625' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120625[]' id='answer-id-495892' class='answer   answerof-120625 ' value='495892'   \/><label for='answer-id-495892' id='answer-label-495892' class=' answer'><span>CREATE TRIGGER TrgVwEmployee \r\nON VwEmployee \r\nFOR INSERT \r\nAS \r\nBEGIN \r\nINSERT INTO Person(Id, FirstName, LastName) \r\nSELECT Id, FirstName, LastName, FROM inserted \r\nINSERT INTO Employee(PersonId, EmployeeNumber) \r\nSELECT Id, EmployeeNumber FROM inserted \r\nEND<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120625[]' id='answer-id-495894' class='answer   answerof-120625 ' value='495894'   \/><label for='answer-id-495894' id='answer-label-495894' class=' answer'><span>CREATE TRIGGER TrgVwEmployee \r\nON VwEmployee \r\nINSTEAD OF INSERT \r\nAS \r\nBEGIN \r\nINSERT INTO Person(Id, FirstName, LastName) \r\nSELECT Id, FirstName, LastName, FROM inserted \r\nINSERT INTO Employee(PersonId, EmployeeNumber) \r\nSELECT Id, EmployeeNumber FROM inserted \r\nEND<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120625[]' id='answer-id-495896' class='answer   answerof-120625 ' value='495896'   \/><label for='answer-id-495896' id='answer-label-495896' class=' answer'><span>CREATE TRIGGER TrgVwEmployee \r\nON VwEmployee \r\nINSTEAD OF INSERT \r\nAS \r\nBEGIN \r\nDECLARE @ID INT, @FirstName NVARCHAR(25), @LastName NVARCHAR(25), @PersonID \r\nINT, @EmployeeNumber NVARCHAR(15) \r\nSELECT @ID = ID, @FirstName = FirstName, @LastName = LastName, @EmployeeNumber \r\n= EmployeeNumber \r\nFROM inserted \r\nINSERT INTO Person(Id, FirstName, LastName) \r\nVALUES(@ID, @FirstName, @LastName) \r\nINSERT INTO Employee(PersonID, EmployeeNumber) \r\nVALUES(@PersonID, @EmployeeNumber \r\nEnd<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120625[]' id='answer-id-495898' class='answer   answerof-120625 ' value='495898'   \/><label for='answer-id-495898' id='answer-label-495898' class=' answer'><span>CREATE TRIGGER TrgVwEmployee \r\nON VwEmployee \r\nINSTEAD OF INSERT \r\nAS \r\nBEGIN \r\nINSERT INTO Person(Id, FirstName, LastName) \r\nSELECT Id, FirstName, LastName FROM VwEmployee \r\nINSERT INTO Employee(PersonID, EmployeeNumber) \r\nSELECT Id, EmployeeNumber FROM VwEmployee \r\nEnd<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-69' style=';'><div id='questionWrap-69'  class='   watupro-question-id-120628'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>69. <\/span>You develop a Microsoft SQL Server 2012 database that contains a table named Products. <br \/>\r<br>The Products table has the following definition: <br \/>\r<br><br><img decoding=\"async\" width=442 height=226 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image208.jpg\" v:shapes=\"_x0000_i1130\"><br><br \/>\r<br>You need to create an audit record only when either the RetailPrice or WholeSalePrice column is updated. <br \/>\r<br>Which Transact-SQL query should you use?<\/div><input type='hidden' name='question_id[]' id='qID_69' value='120628' \/><input type='hidden' id='answerType120628' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120628[]' id='answer-id-495899' class='answer   answerof-120628 ' value='495899'   \/><label for='answer-id-495899' id='answer-label-495899' class=' answer'><span>CREATE TRIGGER TrgPriceChange ON Products FOR UPDATE AS \r\nIF CCLUMNS_CHANGED(RetailPrice, WholesalePrice) \r\n- - Create Audit Records<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120628[]' id='answer-id-495901' class='answer   answerof-120628 ' value='495901'   \/><label for='answer-id-495901' id='answer-label-495901' class=' answer'><span>CREATE TRIGGER TrgPriceChange ON Products FOR UPDATE AS \r\nIF EXISTS(SELECT RetailPrice from inserted) OR \r\nEXISTS (SELECT WholeSalePnce FROM inserted) \r\n- - Create Audit Records<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120628[]' id='answer-id-495903' class='answer   answerof-120628 ' value='495903'   \/><label for='answer-id-495903' id='answer-label-495903' class=' answer'><span>CREATE TRIGGER TrgPriceChange ON Products FOR UPDATE AS \r\nIF COLUMNS_UPDATED(RetailPrice, WholesalePrice) \r\n- - Create Audit Records<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120628[]' id='answer-id-495905' class='answer   answerof-120628 ' value='495905'   \/><label for='answer-id-495905' id='answer-label-495905' class=' answer'><span>CREATE TRIGGER TrgPriceChange ON Products FOR UPDATE AS \r\nIF UPDATE(RetailPrice) OR UPDATE(WholeSalePrice) \r\n- - Create Audit Records<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-70' style=';'><div id='questionWrap-70'  class='   watupro-question-id-120629'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>70. <\/span>A table named Profits stores the total profit made each year within a territory. The Profits table has columns named Territory, Year, and Profit. <br \/>\r<br>You need to create a report that displays the profits made by each territory for each year and its previous year. <br \/>\r<br>Which Transact-SQL query should you use?<\/div><input type='hidden' name='question_id[]' id='qID_70' value='120629' \/><input type='hidden' id='answerType120629' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120629[]' id='answer-id-495909' class='answer   answerof-120629 ' value='495909'   \/><label for='answer-id-495909' id='answer-label-495909' class=' answer'><span>SELECT Territory, Year, Profit, \r\nLEAD(Profit, 1, 0) OVER (PARTITION BY Territory ORDER BY Year) AS PrevProfit \r\nFROM Profits<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120629[]' id='answer-id-495911' class='answer   answerof-120629 ' value='495911'   \/><label for='answer-id-495911' id='answer-label-495911' class=' answer'><span>SELECT Territory, Year, Profit, \r\nLAG(Profit, 1, 0) OVER (PARTITION BY Year ORDER BY Territory) AS PrevProfit \r\nFROM Profits<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120629[]' id='answer-id-495913' class='answer   answerof-120629 ' value='495913'   \/><label for='answer-id-495913' id='answer-label-495913' class=' answer'><span>SELECT Territory, Year, Profit, \r\nLAG(Profit, 1, 0) OVER (PARTITION BY Territory ORDER BY Year) AS PrevProfit \r\nFROM Profits<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120629[]' id='answer-id-495915' class='answer   answerof-120629 ' value='495915'   \/><label for='answer-id-495915' id='answer-label-495915' class=' answer'><span>SELECT Territory, Year, Profit, \r\nLEAD(Profit, 1, 0) OVER (PARTITION BY Year ORDER BY Territory) AS PrevProfit \r\nFROM Profits<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-71' style=';'><div id='questionWrap-71'  class='   watupro-question-id-120632'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>71. <\/span>You use Microsoft SQL Server 2012 database to develop a shopping cart application. <br \/>\r<br>You need to rotate the unique values of the ProductName field of a table-valued expression into multiple columns in the output. <br \/>\r<br>Which Transact-SQL operator should you use?<\/div><input type='hidden' name='question_id[]' id='qID_71' value='120632' \/><input type='hidden' id='answerType120632' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120632[]' id='answer-id-495917' class='answer   answerof-120632 ' value='495917'   \/><label for='answer-id-495917' id='answer-label-495917' class=' answer'><span>CROSS JOIN<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120632[]' id='answer-id-495919' class='answer   answerof-120632 ' value='495919'   \/><label for='answer-id-495919' id='answer-label-495919' class=' answer'><span>CROSS APPLY<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120632[]' id='answer-id-495921' class='answer   answerof-120632 ' value='495921'   \/><label for='answer-id-495921' id='answer-label-495921' class=' answer'><span>PIVOT<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120632[]' id='answer-id-495923' class='answer   answerof-120632 ' value='495923'   \/><label for='answer-id-495923' id='answer-label-495923' class=' answer'><span>UNPIVOT<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-72' style=';'><div id='questionWrap-72'  class='   watupro-question-id-120634'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>72. <\/span>You administer a Microsoft SQL Server database that supports a shopping application. <br \/>\r<br>You need to retrieve a list of customers who live in territories that do not have a sales person. <br \/>\r<br>Which Transact- SQL query or queries should you use? (Each correct answer presents a complete solution. Choose all that apply.)<\/div><input type='hidden' name='question_id[]' id='qID_72' value='120634' \/><input type='hidden' id='answerType120634' value='checkbox'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120634[]' id='answer-id-495927' class='answer   answerof-120634 ' value='495927'   \/><label for='answer-id-495927' id='answer-label-495927' class=' answer'><span>SELECT CustomerID FROM Customer \r\nWHERE TerritoryID &lt;&gt; SOME(SELECT TerritoryID FROM Salesperson)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120634[]' id='answer-id-495930' class='answer   answerof-120634 ' value='495930'   \/><label for='answer-id-495930' id='answer-label-495930' class=' answer'><span>SELECT CustomerID FROM Customer \r\nWHERE TerritoryID &lt;&gt; ALL(SELECT TerritoryID FROM Salesperson)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120634[]' id='answer-id-495931' class='answer   answerof-120634 ' value='495931'   \/><label for='answer-id-495931' id='answer-label-495931' class=' answer'><span>SELECT CustomerID FROM Customer \r\nWHERE TerritoryID &lt;&gt; ANY(SELECT TerritoryID FROM Salesperson)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120634[]' id='answer-id-495932' class='answer   answerof-120634 ' value='495932'   \/><label for='answer-id-495932' id='answer-label-495932' class=' answer'><span>SELECT CustomerID FROM Customer \r\nWHERE TerritoryID NOT IN(SELECT TerritoryID FROM Salesperson)<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-73' style=';'><div id='questionWrap-73'  class='   watupro-question-id-120636'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>73. <\/span>You support a database structure shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=588 height=156 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image210.jpg\" v:shapes=\"_x0000_i1131\"><br><br \/>\r<br>You need to write a query that displays the following details: <br \/>\r<br>&#8226; Total sales made by sales people, year, city, and country <br \/>\r<br>&#8226; Sub totals only at the city level and country level <br \/>\r<br>&#8226; A grand total of the sales amount <br \/>\r<br>Which Transact-SQL query should you use?<\/div><input type='hidden' name='question_id[]' id='qID_73' value='120636' \/><input type='hidden' id='answerType120636' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120636[]' id='answer-id-495939' class='answer   answerof-120636 ' value='495939'   \/><label for='answer-id-495939' id='answer-label-495939' class=' answer'><span>SELECT SalesPerson.Name, Country, City, \r\nDatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total \r\nFROM Sale INNER JOIN SalesPerson \r\nON Sale.SalesPersonID = SalesPerson.SalesPersonID \r\nGROUP BY GROUPING SETS((SalesPerson.Name, Country, City, DatePart(yyyy, \r\nSaleDate)), (Country, City), (Country), ())<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120636[]' id='answer-id-495940' class='answer   answerof-120636 ' value='495940'   \/><label for='answer-id-495940' id='answer-label-495940' class=' answer'><span>SELECT SalesPerson.Name, Country, City, \r\nDatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total \r\nFROM Sale INNER JOIN SalesPerson \r\nON Sale.SalesPersonID = SalesPerson.SalesPersonID \r\nGROUP BY CUBE(SalesPerson.Name, Country, City, DatePart(yyyy, SaleDate))<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120636[]' id='answer-id-495941' class='answer   answerof-120636 ' value='495941'   \/><label for='answer-id-495941' id='answer-label-495941' class=' answer'><span>SELECT SalesPerson.Name, Country, City, \r\nDatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total \r\nFROM Sale INNER JOIN SalesPerson \r\nON Sale.SalesPersonID = SalesPerson.SalesPersonID \r\nGROUP BY CUBE(SalesPerson.Name, DatePart(yyyy, SaleDate), City, Country)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120636[]' id='answer-id-495942' class='answer   answerof-120636 ' value='495942'   \/><label for='answer-id-495942' id='answer-label-495942' class=' answer'><span>SELECT SalesPerson.Name, Country, City, \r\nDatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total \r\nFROM Sale INNER JOIN SalesPerson \r\nON Sale.SalesPersonID = SalesPerson.SalesPersonID \r\nGROUP BY ROLLUP(SalesPerson.Name, DatePart(yyyy, SaleDate), City, Country)<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-74' style=';'><div id='questionWrap-74'  class='   watupro-question-id-120638'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>74. <\/span>You are developing a database that will contain price information. <br \/>\r<br>You need to store the prices that include a fixed precision and a scale of six digits. <br \/>\r<br>Which data type should you use?<\/div><input type='hidden' name='question_id[]' id='qID_74' value='120638' \/><input type='hidden' id='answerType120638' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120638[]' id='answer-id-495944' class='answer   answerof-120638 ' value='495944'   \/><label for='answer-id-495944' id='answer-label-495944' class=' answer'><span>Float<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120638[]' id='answer-id-495946' class='answer   answerof-120638 ' value='495946'   \/><label for='answer-id-495946' id='answer-label-495946' class=' answer'><span>Money<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120638[]' id='answer-id-495948' class='answer   answerof-120638 ' value='495948'   \/><label for='answer-id-495948' id='answer-label-495948' class=' answer'><span>Smallmoney<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120638[]' id='answer-id-495950' class='answer   answerof-120638 ' value='495950'   \/><label for='answer-id-495950' id='answer-label-495950' class=' answer'><span>Numeric<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-75' style=';'><div id='questionWrap-75'  class='   watupro-question-id-120640'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>75. <\/span>You administer a Microsoft SQL Server database that supports a banking transaction management application. <br \/>\r<br>You need to retrieve a list of account holders who live in cities that do not have a branch location. <br \/>\r<br>Which Transact-SQL query or queries should you use? (Each correct answer presents a complete solution. Choose all that apply.)<\/div><input type='hidden' name='question_id[]' id='qID_75' value='120640' \/><input type='hidden' id='answerType120640' value='checkbox'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120640[]' id='answer-id-495952' class='answer   answerof-120640 ' value='495952'   \/><label for='answer-id-495952' id='answer-label-495952' class=' answer'><span>SELECT AccountHolderID \r\nFROM AccountHolder \r\nWHERE CityID NOT IN (SELECT CityID FROM BranchMaster)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120640[]' id='answer-id-495954' class='answer   answerof-120640 ' value='495954'   \/><label for='answer-id-495954' id='answer-label-495954' class=' answer'><span>SELECT AccountHolderID \r\nFROM AccountHolder \r\nWHERE CityID &lt;&gt; ALL (SELECT CityID FROM BranchMaster)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120640[]' id='answer-id-495956' class='answer   answerof-120640 ' value='495956'   \/><label for='answer-id-495956' id='answer-label-495956' class=' answer'><span>SELECT AccountHolderID \r\nFROM AccountHolder \r\nWHERE CityID &lt;&gt; SOME (SELECT CityID FROM BranchMaster)<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-120640[]' id='answer-id-495958' class='answer   answerof-120640 ' value='495958'   \/><label for='answer-id-495958' id='answer-label-495958' class=' answer'><span>SELECT AccountHolderID \r\nFROM AccountHolder \r\nWHERE CityID &lt;&gt; ANY (SELECT CityID FROM BranchMaster)<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-76' style=';'><div id='questionWrap-76'  class='   watupro-question-id-120642'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>76. <\/span>You administer a Microsoft SQL Server 2012 database. The database contains a table named Employee. <br \/>\r<br>Part of the Employee table is shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br \/>\r<br><br><img decoding=\"async\" width=348 height=342 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image211.jpg\" v:shapes=\"_x0000_i1132\"><br><br \/>\r<br><br><img decoding=\"async\" width=613 height=274 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image212.jpg\" v:shapes=\"_x0000_i1133\"><br><br \/>\r<br>Confidential information about the employees is stored in a separate table named EmployeeData. One record exists within EmployeeData for each record in the Employee table. You need to assign the appropriate constraints and table properties to ensure data integrity and visibility. <br \/>\r<br>On which column in the Employee table should you create a unique constraint?<\/div><input type='hidden' name='question_id[]' id='qID_76' value='120642' \/><input type='hidden' id='answerType120642' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495960' class='answer   answerof-120642 ' value='495960'   \/><label for='answer-id-495960' id='answer-label-495960' class=' answer'><span>DateHired<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495962' class='answer   answerof-120642 ' value='495962'   \/><label for='answer-id-495962' id='answer-label-495962' class=' answer'><span>DepartmentID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495964' class='answer   answerof-120642 ' value='495964'   \/><label for='answer-id-495964' id='answer-label-495964' class=' answer'><span>EmployeeID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495966' class='answer   answerof-120642 ' value='495966'   \/><label for='answer-id-495966' id='answer-label-495966' class=' answer'><span>EmployeeNum<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495967' class='answer   answerof-120642 ' value='495967'   \/><label for='answer-id-495967' id='answer-label-495967' class=' answer'><span>FirstName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495968' class='answer   answerof-120642 ' value='495968'   \/><label for='answer-id-495968' id='answer-label-495968' class=' answer'><span>JobTitle<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495969' class='answer   answerof-120642 ' value='495969'   \/><label for='answer-id-495969' id='answer-label-495969' class=' answer'><span>LastName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495970' class='answer   answerof-120642 ' value='495970'   \/><label for='answer-id-495970' id='answer-label-495970' class=' answer'><span>MiddleName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120642[]' id='answer-id-495971' class='answer   answerof-120642 ' value='495971'   \/><label for='answer-id-495971' id='answer-label-495971' class=' answer'><span>ReportsToID<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-77' style=';'><div id='questionWrap-77'  class='   watupro-question-id-120644'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>77. <\/span>You administer a Microsoft SQL Server 2012 database. The database contains a table named Employee. <br \/>\r<br>Part of the Employee table is shown in the exhibit. (Click the Exhibit button.) <br \/>\r<br><br><img decoding=\"async\" width=348 height=342 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image211.jpg\" v:shapes=\"_x0000_i1134\"><br><br \/>\r<br><br><img decoding=\"async\" width=613 height=274 src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/uploads\/2018\/exams\/70-461%20V15.files\/image212.jpg\" v:shapes=\"_x0000_i1135\"><br><br \/>\r<br>Unless stated above, no columns in the Employee table reference other tables. <br \/>\r<br>Confidential information about the employees is stored in a separate table named EmployeeData. One record exists within EmployeeData for each record in the Employee table. <br \/>\r<br>You need to assign the appropriate constraints and table properties to ensure data integrity and visibility. <br \/>\r<br>On which column in the Employee table should you use an identity specification to include a seed of 1,000 and an increment of 1?<\/div><input type='hidden' name='question_id[]' id='qID_77' value='120644' \/><input type='hidden' id='answerType120644' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495973' class='answer   answerof-120644 ' value='495973'   \/><label for='answer-id-495973' id='answer-label-495973' class=' answer'><span>DateHired<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495975' class='answer   answerof-120644 ' value='495975'   \/><label for='answer-id-495975' id='answer-label-495975' class=' answer'><span>DepartmentID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495977' class='answer   answerof-120644 ' value='495977'   \/><label for='answer-id-495977' id='answer-label-495977' class=' answer'><span>EmployeeID<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495979' class='answer   answerof-120644 ' value='495979'   \/><label for='answer-id-495979' id='answer-label-495979' class=' answer'><span>EmployeeNum<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495980' class='answer   answerof-120644 ' value='495980'   \/><label for='answer-id-495980' id='answer-label-495980' class=' answer'><span>FirstName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495981' class='answer   answerof-120644 ' value='495981'   \/><label for='answer-id-495981' id='answer-label-495981' class=' answer'><span>JobTitle<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495982' class='answer   answerof-120644 ' value='495982'   \/><label for='answer-id-495982' id='answer-label-495982' class=' answer'><span>LastName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495983' class='answer   answerof-120644 ' value='495983'   \/><label for='answer-id-495983' id='answer-label-495983' class=' answer'><span>MiddleName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120644[]' id='answer-id-495984' class='answer   answerof-120644 ' value='495984'   \/><label for='answer-id-495984' id='answer-label-495984' class=' answer'><span>ReportsToID<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-78' style=';'><div id='questionWrap-78'  class='   watupro-question-id-120646'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>78. <\/span>You administer a Microsoft SQL Server 2012 database that includes a table named Products. The Products table has columns named ProductId, ProductName, and CreatedDateTime. <br \/>\r<br>The table contains a unique constraint on the combination of ProductName and CreatedDateTime. <br \/>\r<br>You need to modify the Products table to meet the following requirements: <br \/>\r<br>-Remove all duplicates of the Products table based on the ProductName column. -Retain only the newest Products row. <br \/>\r<br>Which Transact-SQL query should you use?<\/div><input type='hidden' name='question_id[]' id='qID_78' value='120646' \/><input type='hidden' id='answerType120646' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120646[]' id='answer-id-495989' class='answer   answerof-120646 ' value='495989'   \/><label for='answer-id-495989' id='answer-label-495989' class=' answer'><span>WITH CTEDupRecords \r\nAS \r\n( \r\nSELECT MAX(CreatedDateTime) AS CreatedDateTime, ProductName \r\nFROM Products \r\nGROUP BY ProductName \r\nHAVING COUNT(*) &gt; 1 \r\n) \r\nDELETE p \r\nFROM Products p \r\nJOIN CTEDupRecords cte ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120646[]' id='answer-id-495990' class='answer   answerof-120646 ' value='495990'   \/><label for='answer-id-495990' id='answer-label-495990' class=' answer'><span>ProductName = cte.ProductName \r\nAND p.CreatedDateTime &gt; cte.CreatedDateTime<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120646[]' id='answer-id-495991' class='answer   answerof-120646 ' value='495991'   \/><label for='answer-id-495991' id='answer-label-495991' class=' answer'><span>WITH CTEDupRecords \r\nAS \r\n( \r\nSELECT MAX(CreatedDateTime) AS CreatedDateTime, ProductName \r\nFROM Products \r\nGROUP BY ProductName \r\nHAVING COUNT(*) &gt; 1 \r\n) \r\nDELETE p \r\nFROM Products p \r\nJOIN CTEDupRecords cte ON \r\ncte.ProductName = p.ProductName \r\nAND cte.CreatedDateTime &gt; p.CreatedDateTime<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120646[]' id='answer-id-495992' class='answer   answerof-120646 ' value='495992'   \/><label for='answer-id-495992' id='answer-label-495992' class=' answer'><span>WITH CTEDupRecords \r\nAS \r\n( \r\nSELECT MIN(CreatedDateTime) AS CreatedDateTime, ProductName \r\nFROM Products \r\nGROUP BY ProductName \r\n) \r\nDELETE p \r\nFROM Products p \r\nJOIN CTEDupRecords cte ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120646[]' id='answer-id-495993' class='answer   answerof-120646 ' value='495993'   \/><label for='answer-id-495993' id='answer-label-495993' class=' answer'><span>ProductName = cte.ProductName<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120646[]' id='answer-id-495994' class='answer   answerof-120646 ' value='495994'   \/><label for='answer-id-495994' id='answer-label-495994' class=' answer'><span>WITH CTEDupRecords \r\nAS \r\n( \r\nSELECT MAX(CreatedDateTime) AS CreatedDateTime, ProductName \r\nFROM Products \r\nGROUP BY ProductName \r\nHAVING COUNT(*) &gt; 1 \r\n) \r\nDELETE p \r\nFROM Products p \r\nJOIN CTEDupRecords cte ON<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120646[]' id='answer-id-495995' class='answer   answerof-120646 ' value='495995'   \/><label for='answer-id-495995' id='answer-label-495995' class=' answer'><span>ProductName = cte.ProductName<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-79' style=';'><div id='questionWrap-79'  class='   watupro-question-id-120648'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>79. <\/span>You develop three Microsoft SQL Server 2012 databases named Database1, Database2, and Database3. You have permissions on both Database1 and Database2. <br \/>\r<br>You plan to write and deploy a stored procedure named dbo.usp_InsertEvent in Database3. dbo.usp_InsertEvent must execute other stored procedures in the other databases. <br \/>\r<br>You need to ensure that callers that do not have permissions on Database1 or Database2 can execute the stored procedure. <br \/>\r<br>Which Transact-SQL statement should you use?<\/div><input type='hidden' name='question_id[]' id='qID_79' value='120648' \/><input type='hidden' id='answerType120648' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120648[]' id='answer-id-495997' class='answer   answerof-120648 ' value='495997'   \/><label for='answer-id-495997' id='answer-label-495997' class=' answer'><span>USE Database2<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120648[]' id='answer-id-495998' class='answer   answerof-120648 ' value='495998'   \/><label for='answer-id-495998' id='answer-label-495998' class=' answer'><span>EXECUTE AS OWNER<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120648[]' id='answer-id-495999' class='answer   answerof-120648 ' value='495999'   \/><label for='answer-id-495999' id='answer-label-495999' class=' answer'><span>USE Database1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120648[]' id='answer-id-496000' class='answer   answerof-120648 ' value='496000'   \/><label for='answer-id-496000' id='answer-label-496000' class=' answer'><span>EXECUTE AS CALLER<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-80' style=';'><div id='questionWrap-80'  class='   watupro-question-id-120650'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>80. <\/span>You administer a Microsoft SQL Server 2012 database that has multiple tables in the Sales schema. Some users must be prevented from deleting records in any of the tables in the Sales schema. You need to manage users who are prevented from deleting records in the Sales schema. <br \/>\r<br>You need to achieve this goal by using the minimum amount of administrative effort. <br \/>\r<br>What should you do?<\/div><input type='hidden' name='question_id[]' id='qID_80' value='120650' \/><input type='hidden' id='answerType120650' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120650[]' id='answer-id-496005' class='answer   answerof-120650 ' value='496005'   \/><label for='answer-id-496005' id='answer-label-496005' class=' answer'><span>Create a custom database role that includes the users. Deny Delete permissions on the Sales schema for the custom database role.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120650[]' id='answer-id-496006' class='answer   answerof-120650 ' value='496006'   \/><label for='answer-id-496006' id='answer-label-496006' class=' answer'><span>Include the Sales schema as an owned schema for the db_denydatawriter role. Add the users to the db_denydatawriter role.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120650[]' id='answer-id-496007' class='answer   answerof-120650 ' value='496007'   \/><label for='answer-id-496007' id='answer-label-496007' class=' answer'><span>Deny Delete permissions on each table in the Sales schema for each user.<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-120650[]' id='answer-id-496008' class='answer   answerof-120650 ' value='496008'   \/><label for='answer-id-496008' id='answer-label-496008' class=' answer'><span>Create a custom database role that includes the users. Deny Delete permissions on each table in the Sales schema for the custom database role.<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div style='display:none' id='question-81'>\n\t<div class='question-content'>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/plugins\/watupro\/img\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading...\" title=\"Loading...\" \/>&nbsp;Loading...\t<\/div>\n<\/div>\n\n<br \/>\n\t\n\t\t\t<div class=\"watupro_buttons flex \" id=\"watuPROButtons3948\" >\n\t\t  <div id=\"prev-question\" style=\"display:none;\"><input type=\"button\" value=\"&lt; Previous\" onclick=\"WatuPRO.nextQuestion(event, 'previous');\"\/><\/div>\t\t  \t\t  \t\t   \n\t\t   \t  \t\t<div><input type=\"button\" name=\"action\" class=\"watupro-submit-button\" onclick=\"WatuPRO.submitResult(event)\" id=\"action-button\" value=\"View Results\"  \/>\n\t\t<\/div>\n\t\t<\/div>\n\t\t\n\t<input type=\"hidden\" name=\"quiz_id\" value=\"3948\" id=\"watuPROExamID\"\/>\n\t<input type=\"hidden\" name=\"start_time\" id=\"startTime\" value=\"2026-05-01 20:19:43\" \/>\n\t<input type=\"hidden\" name=\"start_timestamp\" id=\"startTimeStamp\" value=\"1777666783\" \/>\n\t<input type=\"hidden\" name=\"question_ids\" value=\"\" \/>\n\t<input type=\"hidden\" name=\"watupro_questions\" value=\"120493:495404,495406,495408,495409 | 120495:495412 | 120496:495415,495417,495419,495421 | 120498:495425,495427,495429,495431 | 120501:495433 | 120502:495437 | 120504:495442 | 120506:495444,495445,495446,495447 | 120508:495455 | 120510:495457,495458,495459,495460 | 120512:495464 | 120514:495466,495467,495468,495469 | 120516:495472 | 120518:495477 | 120520:495480 | 120522:495482,495483,495485,495487,495489,495490,495491,495492,495493,495494 | 120525:495499,495500,495501,495502,495503,495504,495505,495506,495507,495508 | 120527:495510 | 120529:495512 | 120531:495514 | 120533:495519,495521,495522,495523 | 120535:495529 | 120537:495535,495536,495537,495538 | 120539:495544 | 120541:495545 | 120542:495547,495549,495551,495553 | 120544:495559 | 120546:495567,495568,495569,495570 | 120548:495575,495576,495577,495578 | 120550:495586 | 120552:495594,495595,495596,495597 | 120554:495600 | 120555:495603 | 120557:495605 | 120559:495610,495611,495612,495613 | 120561:495618,495619,495620,495622,495624,495626,495628,495629,495630 | 120564:495632,495634,495636,495638 | 120566:495639 | 120567:495644,495645,495646,495647 | 120569:495652,495653,495654,495655 | 120571:495660 | 120573:495665 | 120575:495670,495673,495675,495677 | 120578:495679,495681,495683,495685 | 120580:495687,495689,495691,495693 | 120582:495694,495696,495698,495700,495702,495703,495704,495705,495706,495707 | 120584:495712,495713,495714,495715,495716,495717,495718,495719,495720,495721 | 120586:495726 | 120588:495731 | 120590:495736 | 120592:495740 | 120593:495746,495747,495748,495749 | 120596:495754,495755,495756,495757,495758,495759 | 120598:495764,495765,495766,495767 | 120600:495772,495773,495774,495775 | 120602:495780,495781,495782,495783 | 120604:495788,495789,495790,495791 | 120606:495793,495795,495797,495799 | 120608:495801,495803,495805,495807 | 120610:495810,495812,495814,495815,495816,495817 | 120612:495819,495821,495823,495825,495826 | 120614:495828,495830,495832,495834 | 120616:495836,495838,495840,495842 | 120618:495844,495846,495848,495850,495851,495852,495853,495854,495855,495856 | 120620:495858,495860,495862,495864,495866,495868,495869,495870,495871,495872 | 120622:495874,495876,495878,495880 | 120624:495883,495885,495887,495889 | 120625:495892,495894,495896,495898 | 120628:495899,495901,495903,495905 | 120629:495909,495911,495913,495915 | 120632:495917,495919,495921,495923 | 120634:495927,495930,495931,495932 | 120636:495939,495940,495941,495942 | 120638:495944,495946,495948,495950 | 120640:495952,495954,495956,495958 | 120642:495960,495962,495964,495966,495967,495968,495969,495970,495971 | 120644:495973,495975,495977,495979,495980,495981,495982,495983,495984 | 120646:495989,495990,495991,495992,495993,495994,495995 | 120648:495997,495998,495999,496000 | 120650:496005,496006,496007,496008\" \/>\n\t<input type=\"hidden\" name=\"no_ajax\" value=\"0\">\t\t\t<\/form>\n\t<p>&nbsp;<\/p>\n<\/div>\n\n<script type=\"text\/javascript\">\n\/\/jQuery(document).ready(function(){\ndocument.addEventListener(\"DOMContentLoaded\", function(event) { \t\nvar question_ids = \"120493,120495,120496,120498,120501,120502,120504,120506,120508,120510,120512,120514,120516,120518,120520,120522,120525,120527,120529,120531,120533,120535,120537,120539,120541,120542,120544,120546,120548,120550,120552,120554,120555,120557,120559,120561,120564,120566,120567,120569,120571,120573,120575,120578,120580,120582,120584,120586,120588,120590,120592,120593,120596,120598,120600,120602,120604,120606,120608,120610,120612,120614,120616,120618,120620,120622,120624,120625,120628,120629,120632,120634,120636,120638,120640,120642,120644,120646,120648,120650\";\nWatuPROSettings[3948] = {};\nWatuPRO.qArr = question_ids.split(',');\nWatuPRO.exam_id = 3948;\t    \nWatuPRO.post_id = 3972;\nWatuPRO.store_progress = 0;\nWatuPRO.curCatPage = 1;\nWatuPRO.requiredIDs=\"0\".split(\",\");\nWatuPRO.hAppID = \"0.42259300 1777666783\";\nvar url = \"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/plugins\/watupro\/show_exam.php\";\nWatuPRO.examMode = 1;\nWatuPRO.siteURL=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-admin\/admin-ajax.php\";\nWatuPRO.emailIsNotRequired = 0;\nWatuPROIntel.init(3948);\nWatuPRO.inCategoryPages=1;});    \t \n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[160,101],"tags":[7070,1912,7072,7071],"class_list":["post-3972","post","type-post","status-publish","format-standard","hentry","category-mcsa","category-microsoft","tag-70-461","tag-70-461-dumps","tag-70-461-free-questions","tag-mcsa-sql-server-2012-2014"],"_links":{"self":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts\/3972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/comments?post=3972"}],"version-history":[{"count":1,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts\/3972\/revisions"}],"predecessor-version":[{"id":3973,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts\/3972\/revisions\/3973"}],"wp:attachment":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/media?parent=3972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/categories?post=3972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/tags?post=3972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}