Question
In the Sales database, phone numbers are frequently entered into the database incorrectly. You are tasked with ensuring that phone numbers are consistently entered as
In the Sales database, phone numbers are frequently entered into the database incorrectly. You are tasked with ensuring that phone numbers are consistently entered as (xxx)xxx-xxxx where the xs represent numbers and the other characters are exactly as shown. Your solution should provide the best possible performance. What do you do?
A. Use DML triggers to ensure the format is correct.
B. Use DDL triggers to ensure the format is correct.
C. Use a CHECK constraint to ensure the format is correct.
D. Use stored procedures to format the phone number before the INSERT or UPDATE
In the Sales database, phone numbers are frequently entered into the database incorrectly. You are tasked with ensuring that phone numbers are consistently entered as (xxx)xxx-xxxx where the xs represent numbers and the other characters are exactly as shown. Your solution should provide the best possible performance. What do you do?
A. Use DML triggers to ensure the format is correct.
B. Use DDL triggers to ensure the format is correct.
C. Use a CHECK constraint to ensure the format is correct.
D. Use stored procedures to format the phone number before the INSERT or UPDATE
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