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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started