70-461 Exam Details

  • Exam Code
    :70-461
  • Exam Name
    :Querying Microsoft SQL Server 2012/2014
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :446 Q&As
  • Last Updated
    :Jan 17, 2022

Microsoft 70-461 Online Questions & Answers

  • Question 291:

    How do you modify a column value in a target row and collect the result of the modification in one visit to the row?

    A. By using an UPDATE based on a join
    B. By using an UPDATE based on a table expression
    C. By using an UPDATE with a variable
    D. The task cannot be achieved with only one visit to the row.

  • Question 292:

    DRAG DROP

    You administer a Microsoft Azure SQL Database instance.

    You are troubleshooting a number of stored procedures that use transactions.

    1.

    p_ModifyCustomer modifies customer records in the database. While this transaction is running, no other transaction should be allowed to insert data into the range of orders being modified.

    2.

    p_GetOrders is used to retrieve order information for a customer. While this transaction is running, all other processes should be able to read and modify data being used by this procedure, and it is acceptable to have this procedure return stale values.

    3.

    p_ShipOrders is run once per day to batch orders into shipping criteria. Processes that read these records must receive a copy of the record as it exists at the beginning of the transaction, but should not utilize the TempDB to facilitate concurrency.

    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.

    Which isolation levels should you use? To answer, drag the appropriate isolation level or levels to correct stored procedure or 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.

    Select and Place:

  • Question 293:

    You support a database structure shown in the exhibit.

    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 294:

    Your manager has asked you to design a new table and enforce rules for the type of information that can be stored in a particular column. The information must match a particular pattern e.g. a number between 1 and 7. This checking must be

    performed during insert or update operations.

    Which parameter should you use when you create the column?

    A. CHECK
    B. DEFAULT
    C. Foreign Key
    D. Primary Key

  • Question 295:

    SIMULATION

    You need to create a table named OrderDetails that contains the following columns: LineItemTotal, ListPrice, and Quantity. LineItemTotal stores the product of ListPrice and Quantity for each row.

    Construct the Transact-SQL for creating the table by using the following guidelines:

    1. Ensure that the calculation for a line item total is not run every time the table is queried.

    2. Do not use any object delimiters.

    3. Store LineItemTotal as the last column in the table.

    Part of the correct Transact-SQL has been provided in the answer area below. Enter the Transact-SQL in the answer area that resolves the problem and meets the stated goals or requirements. You can add Transact-SQL within the Transact-SQL segment that has been provided as well as below it.

    Use the ‘Check Syntax’ button to verify your work. Any syntax or spelling errors will be reported by line and character position.

  • Question 296:

    What types of database objects can have synonyms? (Choose all that apply.)

    A. Stored procedures
    B. Indexes
    C. Temporary tables
    D. Database users

  • Question 297:

    You write the following SELECT statement to get the last order date for a particular customer.

    You need to create the user-defined function to return the last order date for the specified customer.

    Which five 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 298:

    You are designing a Microsoft SQL Server database named Orders.

    You create a table according to the following schema:

    You create a stored procedure to be used by an ASP.NET application that runs the following statement:

    You need to ensure that the query runs as efficiently as possible. What Transact-SQL statement should you run?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 299:

    SIMULATION

    You have a data warehouse that contains the data for all the customers of your company.

    You need to create a stored procedure that generates a list of customer addresses. The list must meet the following requirements:

    1. The procedure must accept a string value.

    2. The procedure should return all customers who reside in a city whose name begins with the provided value.

    3. If a user provides a blank value, the procedure must execute, and then return a blank result set.

    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 code that has been provided as well as below it.

    Use the ‘Check Syntax’ button to verify your work. Any syntax or spelling errors will be reported by line and character position.

  • Question 300:

    You work as a database developer at ABC.com. ABC.com has a SQL Server 2012 database named SalesDB as illustrated in the following database diagram:

    ABC.com has retail stores in a few major cities across the country. The company wants to ascertain whether it would be advantageous to open a store in other cities based on feedback from its customers.

    You are required to provide the company's CEO with a list of Customers who live in a city that does not have a ABC.com store, along with the customer's Phone Number and the customer's City, and arranged alphabetically by City name.

    Which of the following Transact-SQL statements would return the required information?

    A. SELECT CustomerName, CustomerCity, CustomerPhone FROM Customers WHERE CustomerCity NOT EXISTS (SELECT StoreCity FROM Stores) ORDER BY CustomerCity
    B. SELECT CustomerName, CustomerCity, CustomerPhone FROM Customers WHERE CustomerCity < > ALL (SELECT StoreCity FROM Stores) ORDER BY StoreCity
    C. SELECT CustomerName, CustomerCity, CustomerPhone FROM Customers WHERE CustomerCity < > ANY (SELECT StoreCity FROM Stores) ORDER BY CustomerCity
    D. SELECT CustomerName, CustomerCity, CustomerPhone FROM Customers WHERE CustomerCity NOT IN (SELECT StoreCity FROM Stores) ORDER BY StoreCity

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-461 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.