070-761 Exam Question 26

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section. You will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a database that contains a single table named tblVehicleRegistration. The table is defined as follows:

You run the following query:

The query output window displays the following error message: "Conversion failed when converting the varchar value 'AB012' to data type int." You need to resolve the error.
Solution: You modify the Transact-SQL statement as follows:

Does the solution meet the goal?
  • 070-761 Exam Question 27

    HOTSPOT
    You run the following Transact-SQL statement:

    You need to ensure that you can insert data into the table.
    What are the characteristics of the data? To answer, select the appropriate options in the answer area.
    Hot Area:

    070-761 Exam Question 28

    You have a date related query that would benefit from an indexed view.
    You need to create the indexed view.
    Which two Transact-SQL functions can you use? Each correct answer presents a complete solution.
    NOTE: Each correct selection is worth one point
  • 070-761 Exam Question 29

    Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question in this series.
    You are developing a database to track customer orders. The database contains the following tables:
    Sales.Customers, Sales.Orders, and Sales.OrderLines. The following table describes the columns in Sales.Customers.

    The following table describes the columns in Sales.Orders.

    The following table describes the columns in Sales.OrderLines.

    You need to create a stored procedure that inserts data into the Customers table. The stored procedure must meet the following requirements:
    - Data changes occur as a single unit of work.
    - Data modifications that are successful are committed and a value of 0 is returned.
    - Data modifications that are unsuccessful are rolled back. The exception severity level is set to 16 and a value of -1 is returned.
    - The stored procedure uses a built-it scalar function to evaluate the current condition of data modifications.
    - The entire unit of work is terminated and rolled back if a run-time error occurs during execution of the stored procedure.
    How should complete the stored procedure definition? To answer, drag the appropriate Transact-SQL segments to the correct targets. 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.
    NOTE: Each correct selection is worth one point.

    070-761 Exam Question 30

    You have a database that contains the following tables:

    You need to write a query that returns a list of all customers who have not placed orders.
    Which Transact-SQL statement should you run?