SIMULATION -You have a database that contains the following tables.You need to create a query that lists the lowest-performing salespersons based on the current year-to-date sales period. The query must meet the following requirements:โ Return a column named Fullname that includes the salesperson FirstName, a space, and then LastName.โ Include the current year-to-date sales for each salesperson.โ Display only data for the three salespersons with the lowest year-to-year sales values.โ Exclude salespersons that have no value for TerritoryID.Construct the query using the following guidelines:โ Use the first letter of a table name as the table alias.โ Use two-part column names.โ Do not surround object names with square brackets.โ Do not use implicit joins.โ Use only single quotes for literal text.Use aliases only if required.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 the 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.
SIMULATION -You have a database that contains the following tables.You need to create a query that lists all complaints from the Complaints table, and the name of the person handling the complaints if a person is assigned. TheComplaintID must be displayed first, followed by the person name.Construct the query using the following guidelines:โ Use two-part column names.โ Use one-part table names.โ Do not use aliases for column names or table names.โ Do not use Transact-SQL functions.โ Do not use implicit joins.โ Do not surround object names with square brackets.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 the 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.
You have a database that includes the tables shown in the exhibit. (Click the exhibit button.)You need to create a list of all customers, the order ID for the last order that the customer placed, and the date that the order was placed. For customers who have not placed orders, you must substitute a zero for the order ID and 01/01/1990 for the date.Which Transact-SQL statement should you run?A.B.C.D.
You have a database that contains the following tables:Customer -CustomerAudit -Where the value of the CustomerID column equals 3, you need to update the value of the CreditLimit column to 1000 for the customer. You must ensure that the change to the record in the Customer table is recorded on the CustomerAudit table.Which Transact-SQL statement should you run?A.B.C.D.
DRAG DROP -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 on this series.You have a database that tracks orders and deliveries for customers in North America. System versioning is enabled for all tables. The database contains theSales.Customers, Application.Cities, and Sales.CustomerCategories tables.Details for the Sales.Customers table are shown in the following table:Details for the Application.Cities table are shown in the following table:Details for the Sales.CustomerCategories table are shown in the following table:You are creating a report to show when the first customer account was opened in each city. The report contains a line chart with the following characteristics:โ The chart contains a data point for each city, with lines connecting the points.โ The X axis contains the position that the city occupies relative to other cities.โ The Y axis contains the date that the first account in any city was opened.An example chart is shown below for five cities:During a sales promotion, customers from various cities open new accounts on the same date.You need to write a query that returns the data for the chart.How should you complete the Transact-SQL statement? To answer, drag the appropriate Transact-SQL segments to the correct locations. 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.Select and Place:
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 create a table named Products by running the following Transact-SQL statement:You have the following stored procedure:You need to modify the stored procedure to meet the following new requirements:โ Insert product records as a single unit of work.โ Return error number 51000 when a product fails to insert into the database.โ If a product record insert operation fails, the product information must not be permanently written to the database.Solution: You run the following Transact-SQL statement:Does the solution meet the goal?