
How to create custom formatting, conversion or validation using scalar functions

Problem: How to create a
custom conversion or validation check of an input value.
Solution:
Scalar - Valued Functions.
CREATE FUNCTION
User-defined scalar functions return a
single data value of the type defined in the RETURNS clause....