Question: Write a script that creates and calls a stored procedure named insert_terms. First, code a statement that creates a procedure that adds a new row

Write a script that creates and calls a stored procedure named insert_terms. First, code a statement that creates a procedure that adds a new row to the TERMS table in the AP schema. To do that, this procedure should have two parameters: one for the terms_due_days column and another for the terms_description column. IF the value for the description column is NULL, the stored procedure should be able to create a default value for the description column based on the value of the due days column. For example, for a due days column of 120, the description column should have a default value of "Net due 120 days",. Then code a CALL statement that tests this procedure.

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!