Question
Complete using SQL and provide the code Offices Table 1. Create a trigger that will allow you to check the value of the country column
Complete using SQL and provide the code
Offices Table
1. Create a trigger that will allow you to check the value of the country column before any insert action to the offices table, so that:
country can only be USA, France, Japan, UK, and Australia
If the value to be inserted to the country column is outside of the listed values, we assign the country column of the record to NULL.
Customers Table
Orders Table
2. Create a procedure and call it CustomerTotal
Making the procedure will allow you to get the total number of orders made by each customer, along with customer's first and last name, and country.
offices 2Step 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