070-761 Exam Question 6

HOTSPOT
You need to develop a Transact-SQL statement that meets the following requirements:
- The statement must return a custom error when there are problems updating a table.
- The error number must be value 50555.
- The error severity level must be 14.
- A Microsoft SQL Server alert must be triggered when the error condition occurs.
Which Transact-SQL segment should you use for each requirement? To answer, select the appropriate Transact-SQL segments in the answer area.

070-761 Exam Question 7

You have a database named MyDb. You run the following Transact-SQL statements:

A value of 1 in the IsActive column indicates that a user is active.
You need to create a count for active users in each role. If a role has no active users. you must display a zero as the active users count.
Which Transact-SQL statement should you run?
  • 070-761 Exam Question 8

    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 database object that calculates the total price of an order including the sales tax. The database object must meet the following requirements:
    - Reduce the compilation cost of Transact-SQL code by caching the plans and reusing them for repeated execution.
    - Return a value.
    - Be callable from a SELECT statement.
    How should you complete the Transact-SQL statements? To answer, select the appropriate Transact-SQL segments in the answer area.

    070-761 Exam Question 9

    Note: This question is part of a 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 this series. Information and details provided in a question apply only to that question.
    You have a database that contains several connected tables. The tables contain sales data for customers in the United States only.
    You have the following partial query for the database. (Line numbers are included for reference only.)

    You need to complete the query to generate the output shown in the following table.

    Which statement clause should you add at line 3?
  • 070-761 Exam Question 10

    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 query a database that includes two tables: Project and Task. The Project table includes the following columns:


    You plan to run the following query to update tasks that are not yet started:

    You need to return the total count of tasks that are impacted by this UPDATE operation, but are not associated with a project.
    What set of Transact-SQL statements should you run?