Question: Question 6. Perform Exception Handling with User-Defined Errors (3 Marks) In order to increase the sales of ID PRODUCT number 8 which is Brazil the

Question 6. Perform Exception Handling with User-Defined Errors (3 Marks)

In order to increase the sales of ID PRODUCT number 8 which is Brazil the management requested that to each order of Brazil coffee should be more than 2 quantity.

Create an exception that will be raised if any entered order contains IDPRODUCT 8 with less than 2 quantity and display the message Minimum quantity order of Brazilian Coffee is 2. Test your exception with insert statement into BB_BASKETITEM table.

Refer to bb_product table in order to find related IDPRODUCT column information

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!