<< Prev Question Next Question >>

Question 64/68

HOTSPOT
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 have a database named Sales that contains the following database tables: Customer, Order, and Products. The Products table and the Order table are shown in the following diagram.

The customer table includes a column that stores the data for the last order that the customer placed.
You plan to create a table named Leads. The Leads table is expected to contain approximately 20,000 records. Storage requirements for the Leads table must be minimized.
You need to implement a stored procedure that deletes a discontinued product from the Products table.
You identify the following requirements:
If an open order includes a discontinued product, the records for the product must not be deleted.

The stored procedure must return a custom error message if a product record cannot be deleted. The

message must identify the OrderID for the open order.
What should you do? To answer, select the appropriate Transact-SQL segments in the answer area.
Hot Area:

LEAVE A REPLY

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

Question List (68q)
Question 1: Note: This question is part of a series of questions that pr...
Question 2: Note: this question is part of a series of questions that us...
Question 3: Note: This question is part of a series of questions that us...
Question 4: You are creating the following two stored procedures: A nati...
Question 5: Background You have a database named HR1 that includes a tab...
Question 6: You are experiencing performance issues with the database se...
Question 7: Note: This question is part of a series of questions that pr...
Question 8: DRAG DROP Note: This question is part of a series of questio...
Question 9: Note: This question is part of a series of questions that pr...
Question 10: You run the following Transact-SQL following statement: (Exh...
Question 11: Note: this question is part of a series of questions that us...
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: Note: This question is part of a series of questions that us...
Question 16: Note: This question is part of a series of questions that pr...
Question 17: Note: This question is part of a series of questions that pr...
Question 18: Note: this question is part of a series of questions that us...
Question 19: You have a database that is experiencing deadlock issues whe...
Question 20: You are developing a database reporting solution for a table...
Question 21: You have a view that includes an aggregate. You must be able...
Question 22: Note: This question is part of a series of questions that pr...
Question 23: Note: This question is part of a series of questions that pr...
Question 24: Note: This question is part of a series of questions that pr...
Question 25: You are experiencing performance issues with the database se...
Question 26: Note: This question is part of a series of questions that us...
Question 27: Note: This question is part of a series of questions that pr...
Question 28: Note: This question is part of a series of questions that pr...
Question 29: Note: this question is part of a series of questions that us...
Question 30: Note: This question is part of a series of questions that us...
Question 31: Note: This question is part of a series of questions that pr...
Question 32: Note: This question is part of a series of questions that us...
Question 33: Note: This question is part of a series of questions that pr...
Question 34: You have the following stored procedure that is called by ot...
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 pr...
Question 37: Note: this question is part of a series of questions that us...
Question 38: Note: This question is part of a series of questions that pr...
Question 39: Note: This question is part of a series of questions that us...
Question 40: Note: This question is part of a series of questions that pr...
Question 41: You are developing an application that connects to a databas...
Question 42: Note: This question is part of a series of questions that pr...
Question 43: You use Microsoft SQL Server Profile to evaluate a query nam...
Question 44: Note: This question is part of a series of questions that us...
1 commentQuestion 45: Note: This question is part of a series of questions that pr...
Question 46: You use Microsoft SQL Server Profile to evaluate a query nam...
Question 47: Note: This question is part of a series of questions that us...
Question 48: Note: This question is part of a series of questions that us...
Question 49: You suspect deadlocks on a database. Which two trace flags i...
Question 50: Note: This question is part of a series of questions that pr...
Question 51: Note: This question is part of a series of questions that pr...
Question 52: Note: This question is part of a series of questions that pr...
Question 53: Note: This question is part of a series of questions that pr...
Question 54: Note: This question is part of a series of questions that us...
Question 55: Note: The question is part of a series of questions that use...
Question 56: Note: This question is part of a series of questions that pr...
Question 57: You have a reporting application that uses a table named Tab...
Question 58: Note: This question is part of a series of questions that us...
Question 59: Note: The question is part of a series of questions that use...
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 us...
Question 63: Note: This question is part of a series of questions that pr...
Question 64: HOTSPOT Note: This question is part of a series of questions...
Question 65: Note: The question is part of a series of questions that use...
Question 66: Note: This question is part of a series of questions that us...
Question 67: Note: This question is part of a series of questions that pr...
Question 68: Background You have a database named HR1 that includes a tab...