Question 36

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?
  • Question 37

    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 create a table by running the following Transact-SQL statement:

    You are developing a report that aggregates customer data only for the year 2014. The report requires that the data be denormalized.
    You need to return the data for the report.
    Which Transact-SQL statement should you run?
    A:

    B:

    C:

    D:

    E:

    F:

    G:

    H:
  • Question 38

    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 create a table by running the following Transact-SQL statement:

    You are developing a report that displays customer information. The report must contain a grand total column.
    You need to write a query that returns the data for the report.
    Which Transact-SQL statement should you run?
    A:

    B:

    C:

    D:

    E:

    F:

    G:

    H:
  • Question 39

    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 tracks orders and deliveries for customers in North America. The database contains the following tables:
    Sales.Customers

    Application.Cities

    Sales.CustomerCategories

    Your company is developing a new social application that connects customers to each other based on the distance between their delivery locations.
    You need to write a query that returns the nearest customer.
    Solution: You run the following Transact-SQL statement:

    The variable @custID is set to a valid customer.
    Does the solution meet the goal?
  • Question 40

    You have a table named Table1 that contains 200 million rows. Table1 contains a column named SaleDate that has a data type of DateTime2(3).
    Users report that the following query runs slowly.

    You need to reduce the amount of time it takes to run the query.
    What should you use to replace the WHERE statement?