70-457 Exam Details

  • Exam Code
    :70-457
  • Exam Name
    :Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 1
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :183 Q&As
  • Last Updated
    :Feb 05, 2022

Microsoft 70-457 Online Questions & Answers

  • Question 111:

    You support a database structure shown in the exhibit. (Click the Exhibit button.)

    You need to write a query that displays the following details:

    Total sales made by sales people, year, city, and country Sub totals only at the city level and country level A grand total of the sales amount

    Which Transact-SQL query should you use?

    A. SELECT SalesPerson.Name, Country, City, DatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total FROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonID = SalesPerson.SalesPersonID GROUP BY GROUPING SETS((SalesPerson.Name, Country, City, DatePart(yyyy, SaleDate)), (Country, City), (Country), ())
    B. SELECT SalesPerson.Name, Country, City, DatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total FROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonID = SalesPerson.SalesPersonID GROUP BY CUBE(SalesPerson.Name, Country, City, DatePart(yyyy, SaleDate))
    C. SELECT SalesPerson.Name, Country, City, DatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total FROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonID = SalesPerson.SalesPersonID GROUP BY CUBE(SalesPerson.Name, DatePart(yyyy, SaleDate), City, Country)
    D. SELECT SalesPerson.Name, Country, City, DatePart(yyyy, SaleDate) AS Year, Sum(Amount) AS Total FROM Sale INNER JOIN SalesPerson ON Sale.SalesPersonID = SalesPerson.SalesPersonID GROUP BY ROLLUP(SalesPerson.Name, DatePart(yyyy, SaleDate), City, Country)

  • Question 112:

    You use a Microsoft SQL Server 2012 database.

    You need to create an indexed view within the database for a report that displays Customer Name and the total revenue for that customer.

    Which four T-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.)

    Select and Place:

  • Question 113:

    You 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.)

    Select and Place:

  • Question 114:

    You administer three Microsoft SQL Server 2012 servers named ServerA, ServerB, and ServerC. ServerA is the acting principal and ServerB is the mirror.

    You need to add ServerC as a witness to the existing mirroring session between ServerA and ServerB.

    You need to achieve this goal without delaying synchronization.

    Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

    Select and Place:

  • Question 115:

    You use Microsoft SQL Server 2012 database to develop a shopping cart application. You need to rotate the unique values of the ProductName field of a table-valued expression into multiple columns in the output.

    Which Transact-SQL operator should you use?

    A. CROSS JOIN
    B. CROSS APPLY
    C. PIVOT
    D. UNPIVOT

  • Question 116:

    You use Microsoft SQL Server 2012 to develop a database application.

    You create a table by using the following definition:

    CREATE TA3LE Prices

    (

    Priceld int IDENTITY(1,1) PRIMARY KEY,

    ActualPrice NUMERIC(16,9),

    PredictedPrice NUMERIC(16,9)

    )

    You need to create a computed column based on a user-defined function named udf_price_index. You also need to ensure that the column supports an index.

    Which three 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.)

    Select and Place:

  • Question 117:

    You administer a Microsoft SQL Server 2012 database.

    The database contains a Product table created by using the following definition:

    You need to ensure that the minimum amount of disk space is used to store the data in the Product table.

    What should you do?

    A. Convert all indexes to Column Store indexes.
    B. Implement Unicode Compression.
    C. Implement row-level compression.
    D. Implement page-level compression.

  • Question 118:

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

    CREATE TABLE Inventory

    (ItemID int NOT NULL PRIMARY KEY,

    ItemsInStore int NOT NULL,

    ItemsInWarehouse int NOT NULL)

    You need to create a computed column that returns the sum total of the ItemsInStore and ItemsInWarehouse values for each row.

    Which Transact-SQL statement should you use?

    A. ALTER TABLE Inventory ADD TotalItems AS ItemsInStore + ItemsInWarehouse
    B. ALTER TABLE Inventory ADD ItemsInStore - ItemsInWarehouse = TotalItems
    C. ALTER TABLE Inventory ADD TotalItems = ItemsInStore + ItemsInWarehouse
    D. ALTER TABLE Inventory ADD TotalItems AS SUM(ItemsInStore, ItemslnWarehouse);

  • Question 119:

    You develop a Microsoft SQL Server 2012 database. You create a view from the Orders and OrderDetails tables by using the following definition.

    You need to ensure that users are able to modify data by using the view. What should you do?

    A. Create an AFTER trigger on the view.
    B. Modify the view to use the WITH VIEW_METADATA clause.
    C. Create an INSTEAD OF trigger on the view.
    D. Modify the view to an indexed view.

  • Question 120:

    You are developing a database application by using Microsoft SQL Server 2012. An application that uses a database begins to run slowly. Your investigation shows the root cause is a query against a read-only table that has a clustered

    index.

    The query returns the following six columns:

    One column in its WHERE clause contained in a non-clustered index Four additional columns One COUNT (*) column based on a grouping of the four additional columns

    You need to optimize the statement.

    What should you do?

    A. Add a HASH hint to the query.
    B. Add a LOOP hint to the query.
    C. Add a FORCESEEK hint to the query.
    D. Add an INCLUDE clause to the index.
    E. Add a FORCESCAN hint to the Attach query.
    F. Add a columnstore index to cover the query.
    G. Enable the optimize for ad hoc workloads option.
    H. Cover the unique clustered index with a columnstore index.
    I. Include a SET FORCEPLAN ON statement before you run the query.
    J. Include a SET STATISTICS PROFILE ON statement before you run the query.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-457 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.