<< Prev Question Next Question >>

Question 48/105

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 in this series.
Start of repeated scenario
You have a database that contains the tables shown in the exhibit. (Click the Exhibit button.)

You review the Employee table and make the following observations:
Every record has a value in the ManagerID except for the Chief Executive Officer (CEO).

The FirstName and MiddleName columns contain null values for some records.

The valid values for the Title column are Sales Representative manager, and CEO.

You review the SalesSummary table and make the following observations:
The ProductCode column contains two parts: The first five digits represent a product code, and the last

seven digits represent the unit price. The unit price uses the following pattern: ####.##.
You observe that for many records, the unit price portion of the ProductCode column contains values.

The RegionCode column contains NULL for some records.

Sales data is only recorded for sales representatives.

You are developing a series of reports and procedures to support the business. Details for each report or procedure follow.
Sales Summary report: This report aggregates data by year and quarter. The report must resemble the following table.

Sales Manager report: This report lists each sales manager and the total sales amount for all employees that report to the sales manager.
Sales by Region report: This report lists the total sales amount by employee and by region. The report must include the following columns: EmployeeCode, MiddleName, LastName, RegionCode, and SalesAmount. If MiddleName is NULL, FirstName must be displayed. If both FirstName and MiddleName have null values, the world Unknown must be displayed/ If RegionCode is NULL, the word Unknown must be displayed.
Report1: This report joins data from SalesSummary with the Employee table and other tables. You plan to create an object to support Report1. The object has the following requirements:
be joinable with the SELECT statement that supplies data for the report

can be used multiple times with the SELECT statement for the report

be usable only with the SELECT statement for the report

not be saved as a permanent object

Report2: This report joins data from SalesSummary with the Employee table and other tables.
You plan to create an object to support Report1. The object has the following requirements:
be joinable with the SELECT statement that supplies data for the report

can be used multiple times for this report and other reports

accept parameters

be saved as a permanent object

Sales Hierarchy report: This report aggregates rows, creates subtotal rows, and super-aggregates rows over the SalesAmount column in a single result-set. The report uses SaleYear, SaleQuarter, and SaleMonth as a hierarchy. The result set must not contain a grand total or cross-tabulation aggregate rows.
Current Price Stored Procedure: This stored procedure must return the unit price for a product when a product code is supplied. The unit price must include a dollar sign at the beginning. In addition, the unit price must contain a comma every three digits to the left of the decimal point, and must display two digits to the left of the decimal point. The stored procedure must not throw errors, even if the product code contains invalid data.
End of Repeated Scenario
You are creating the queries for Report1 and Report2.
You need to create the objects necessary to support the queries.
Which object should you use to join the SalesSummary table with the other tables that each report uses?
To answer, drag the appropriate objects to the correct reports. each object 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:

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (105q)
Question 1: DRAG DROP You have a database that contains the following ta...
Question 2: You need to create a database object that meets the followin...
Question 3: Note: This question is part of a series of questions that pr...
Question 4: Note: This question is part of a series of questions that us...
Question 5: Note: This question is part of a series of questions that pr...
Question 6: Note: This question is part of a series of questions that pr...
Question 7: You need to create a database object that meets the followin...
Question 8: You run the following Transact-SQL statements: (Exhibit) You...
Question 9: Note: This question is part of a series of questions that pr...
Question 10: You have a database that contains the following tables: Cust...
Question 11: HOTSPOT Note: This question is part of a series of questions...
Question 12: Note: This question is part of a series of questions that pr...
Question 13: Note: This question is part of a series of questions that us...
Question 14: Note: This question is part of a series of questions that pr...
Question 15: DRAG DROP You have two tables named UserLogin and Employee r...
Question 16: Note: This question is part of a series of questions that us...
Question 17: A company's sales team is divided in two different regions, ...
Question 18: Note: This question is part of a series of questions that pr...
Question 19: You have a database that tracks customer complaints. The dat...
Question 20: You have a table named Table1 that contains 200 million rows...
Question 21: Note: This question is part of a series of questions that pr...
Question 22: You are developing a mobile app to manage meetups. The app a...
Question 23: Note: This question is part of a series of questions that pr...
Question 24: SIMULATION You have a table named Cities that has the follow...
Question 25: Note: This question is part of a series of questions that us...
Question 26: You have a database that contains the following tables: (Exh...
Question 27: Note: This question is part of a series of questions that pr...
Question 28: You have a database named MyDb. You run the following Transa...
Question 29: Note: This question is part of a series of questions that pr...
Question 30: You develop and deploy a project management application. The...
Question 31: Note: This question is part of a series of questions that us...
Question 32: Note: This question is part of a series of questions that pr...
Question 33: Note: This question is part of a series of questions that us...
Question 34: DRAG DROP Note: This question is part of a series of questio...
Question 35: Note: This question is part of a series of questions that pr...
Question 36: Note: This question is part of a series of questions that us...
Question 37: Note: This question is part of a series of questions that pr...
Question 38: Note: This question is part of a series of questions that us...
Question 39: Note: This question is part of a series of questions that pr...
Question 40: Note: This question is part of a series of questions that us...
Question 41: Note: This question is part of a series of questions that pr...
Question 42: You have a database that contains the following tables: Cust...
Question 43: Note: This question is part of a series of questions that us...
Question 44: DRAG DROP Note: This question is part of a series of questio...
Question 45: DRAG DROP Note: This question is part of a series of questio...
Question 46: DRAG DROP Note: This question is part of a series of questio...
Question 47: Note: This question is part of a series of questions that pr...
Question 48: DRAG DROP Note: This question is part of a series of questio...
Question 49: Note: This question is part of a series of questions that us...
Question 50: Note: This question is part of a series of questions that us...
Question 51: Note: This question is part of a series of questions that pr...
Question 52: You have a project management application. The application u...
Question 53: Note: This question is part of a series of questions that us...
Question 54: Note: This question is part of a series of questions that us...
Question 55: Note: This question is part of a series of questions that pr...
Question 56: You are building a stored procedure named SP1 that calls a s...
Question 57: Note: This question is part of a series of questions that us...
Question 58: Note: This question is part of a series of questions that us...
Question 59: Note: This question is part of a series of questions that pr...
Question 60: Note: This question is part of a series of questions that us...
Question 61: Note: This question is part of a series of questions that us...
Question 62: Note: This question is part of a series of questions that pr...
Question 63: Note: This question is part of a series of questions that us...
Question 64: HOTSPOT Note: This question is part of a series of questions...
Question 65: You have a database that stored information about servers an...
Question 66: Note: This question is part of a series of questions that pr...
Question 67: Note: This question is part of a series of questions that pr...
Question 68: You are building a stored procedure that will update data in...
Question 69: Note: This question is part of a series of questions that pr...
Question 70: You have a database named DB1 that contains a temporal table...
Question 71: You need to create a table named MiscellaneousPayment that m...
Question 72: Note: This question is part of a series of questions that pr...
Question 73: Note: This question is part of a series of questions that us...
Question 74: SIMULATION You create a table named Products.Sales by runnin...
Question 75: DRAG DROP You create three tables by running the following T...
Question 76: Note: This question is part of a series of questions that pr...
Question 77: You have a table that was created by running the following T...
Question 78: HOTSPOT You have the following subqueries: Subquery1, Subque...
Question 79: Note: This question is part of a series of questions that pr...
Question 80: Note: This question is part of a series of questions that pr...
Question 81: Note: This question is part of a series of questions that pr...
Question 82: Note: This question is part of a series of questions that pr...
Question 83: Note: This question is part of a series of questions that us...
Question 84: Note: This question is part of a series of questions that us...
Question 85: Note: This question is part of a series of questions that us...
Question 86: You have a database named DB1 that contains a temporal table...
Question 87: Note: This question is part of a series of questions that pr...
Question 88: SIMULATION You have a database that contains the following t...
Question 89: Note: This question is part of a series of questions that pr...
Question 90: Note: This question is part of a series of questions that us...
Question 91: Note: This question is part of a series of questions that pr...
Question 92: DRAG DROP Note: This question is part of a series of questio...
Question 93: DRAG DROP Note: This question is part of a series of questio...
Question 94: Note: This question is part of a series of questions that pr...
Question 95: You have a database named MyDb. You run the following Transa...
Question 96: Note: This question is part of a series of questions that us...
Question 97: Note: This question is part of a series of questions that pr...
Question 98: Note: This question is part of a series of questions that us...
Question 99: DRAG DROP Note: This question is part of a series of questio...
Question 100: You have a database that stores information about server and...
Question 101: Note: This question is part of a series of questions that us...
Question 102: You have a database that includes the following tables. Huma...
Question 103: Note: This question is part of a series of questions that pr...
Question 104: DRAG DROP Note: This question is part of a series of questio...
Question 105: DRAG DROP Note: This question is part of a series of questio...