This page was exported from Braindump2go Free Exam Dumps with PDF and VCE Collection [ https://www.mcitpdump.com ] Export date:Fri Nov 22 9:40:25 2024 / +0000 GMT ___________________________________________________ Title: [BRAINDUMPS FREE] Microsoft Official Exam Center New Changed 70-461 Questions In PDF & VCE Format Offered By Braindump2go For Free Download (101-110) --------------------------------------------------- Microsoft Official Exam Center New Released 70-461 Dumps Questions, Many New Questions added into it! Braindump2go Offer Free Sample Questions and Answers for Download Now! Visit Our Webiste, get the new updated Questions then pass Microsoft 70-461 at the first try! Vendor: MicrosoftExam Code: 70-461Exam Name: Querying Microsoft SQL Server 2012 QUESTION 101You want to add a new GUID column named BookGUID to a table named dbo.Book that already contains data. BookGUID will have a constraint to ensure that it always has a value when new rows are inserted into dbo.Book. You need to ensure that the new column is assigned a GUID for existing rows. Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL statements from the list of statements to the answer area and arrange them in the correct order.) Answer: Explanation:Actually, in the real world, you don't have to use WITH VALUES at the end of the statement and it works just as well. But because the question specifically states which FOUR TSQL statements to use, we have to include it.http://msdn.microsoft.com/en-us/library/ms190273.aspx QUESTION 102You administer a Microsoft SQL Server 2012 database. The database contains a table named Employee.Part of the Employee table is shown in the exhibit. (Click the Exhibit button.) Unless stated above, no columns in the Employee table reference other tables.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.On which column in the Employee table should you a create a self-reference foreign key constraint? A.    DateHiredB.    DepartmentIDC.    EmployeelDD.    EmployeeNumE.    FirstNameF.    JobTitleG.    LastNameH.    MiddleNameI.    ReportsToID Answer: I QUESTION 103You need to create a table named OrderDetails on a new server. OrderDetails must meet the following requirements:- Contain a new column named LineltemTotal that stores the product of ListPrice and Quantity for each row.- The calculation for a line item total must not be run every time the table is queried.- The code must NOT use any object delimiters.The solution must ensure that LineltemTotal is stored as the last column in the table. Part of the correct T- SQL statement has been provided in the answer area. Provide the complete code. Answer: CREATE TABLE OrderDetails(ListPrice money NOT NULL,Quantity int NOT NULL,LineItemTotal AS (ListPrice * Quantity) PERSISTED) QUESTION 104You have a database named Sales that contains the tables shown in the exhibit. (Click the Exhibit button.) You have an application named Appl. You have a parameter named @Count that uses the int data type. App1 is configured to pass @Count to a stored procedure.You need to create a stored procedure named usp_Customers for App1 that returns only the number of rows specified by the @Count parameter.The solution must NOT use BEGIN and END statements.Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code. Answer: CREATE PROCEDURE usp_Customers @Count intSELECT TOP(@Count)Customers.LastNameFROM CustomersORDER BY Customers.LastName QUESTION 105You need to create a query that calculates the total sales of each OrderlD from a table named Sales.Details. The table contains two columns named OrderlD and ExtendedAmount.The solution must meet the following requirements:- Use one-part names to reference columns.- Start the order of the results from OrderlD.- NOT depend on the default schema of a user.- Use an alias of TotalSales for the calculated ExtendedAmount.- Display only the OrderlD column and the calculated TotalSales column.Provide the correct code in the answer area.Answer: SELECTOrderID,SUM(ExtendedAmount) AS TotalSalesFROM Sales.DetailsGROUP BY OrderIDORDER BY OrderID QUESTION 106You have an XML schema collection named Sales.InvoiceSchema.You need to declare a variable of the XML type named invoice. The solution must ensure that the invoice is validated by using Sales.InvoiceSchema.Provide the correct code in the answer area.Answer: DECLARE @invoice XML(Sales.InvoiceSchema) QUESTION 107You have a view that was created by using the following code: You need to create an inline table-valued function named Sales.fn_OrdersByTerritory. Sales.fn_OrdersByTerritory must meet the following requirements:- Use one-part names to reference columns.- Return the columns in the same order as the order used in OrdersByTerritoryView.- Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code. Answer: CREATE FUNCTION Sales.fn_OrdersByTerritory (@T int)RETURNS TABLEASRETURN(SELECTOrderID,OrderDate,SalesTerritoryID,TotalDueFROM Sales.OrdersByTerritoryWHERE SalesTerritoryID=@T) QUESTION 108You have a database named Sales that contains the tables as shown in the exhibit. (Click the Exhibit button.) You need to create a query that meets the following requirements:- References columns by using one-part names only.- Groups aggregates by SalesTerritorylD, and then by ProductlD.- Orders the results in descending order by SalesTerritorylD and then by ProductlD.Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code. Answer: SELECT SalesTerritoryID,ProductID,AVG(UnitPrice),MAX(OrderQty)MAX(DiscountAmount)FROM Sales.DetailsGROUP BY SalesTerritoryID, ProductIDORDER BY SalesTerritoryID DESC, ProductID DESC QUESTION 109You have a database named Sales that contains the tables shown in the exhibit. (Click the Exhibit button). You need to create a query for a report. The query must meet the following requirements:- NOT use object delimiters.- Use the first initial of the table as an alias.- Return the most recent order date for each customer.- Retrieve the last name of the person who placed the order.The solution must support the ANSI SQL-99 standard.Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code. Answer: SELECT C.LastName,MAX(O.OrderDate) AS MostRecentOrderDateFROM Customers AS C INNER JOIN Orders AS OON C.CustomerID=O.CustomerIDGROUP BY C.LastnameORDER BY MAX (O.OrderDate) DESC QUESTION 110You have a database named Sales that contains the tables as shown in the exhibit. (Click the Exhibit button.) You need to create a query that returns a list of products from Sales.ProductCatalog. The solution must meet the following requirements:- UnitPrice must be returned in descending order.- The query must use two-part names to reference the table.- The query must use the RANK function to calculate the results.- The query must return the ranking of rows in a column named PriceRank.- The list must display the columns in the order that they are defined in the table.- PriceRank must appear last.Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code. Answer: SELECT ProductCatalog.CatID, ProductCatalog.CatName, ProductCatalog.ProductID, ProductCatalog.ProdName, ProductCatalog.UnitPrice,RANK() OVER (ORDER BY ProductCatalog.UnitPrice DESC) AS PriceRankFROM Sales.ProductCatalogORDER BY ProductCatalog.UnitPrice DESC Braindump2go Offers PDF & VCE Dumps Download for New Released Microsoft 70-461 Exam! 100% Exam Success Guaranteed OR Full Money Back Instantly! http://www.braindump2go.com/70-461.html --------------------------------------------------- Images: http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/1102.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wps7354.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wps8BD4.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wpsA31C.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wpsB66F.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wpsE175.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wpsD37.tmp_thumb2_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wps4835.tmp_thumb3_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wps73F8.tmp_thumb2_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wpsA333.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wpsC67C.tmp_thumb3_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wpsFE40.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wps2743.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/wps4CCE.tmp_thumb_thumb.png http://www.itexamquiz.com/braindump2go/bdimages/f9d550c18ba4_8D08/152.png --------------------------------------------------- --------------------------------------------------- Post date: 2015-02-05 02:03:49 Post date GMT: 2015-02-05 02:03:49 Post modified date: 2015-02-05 02:03:49 Post modified date GMT: 2015-02-05 02:03:49 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com