
PUZZLE 5 ALPHA DATA 19
PUZZLE
5 ALPHA DATA
How do you ensure that a column will have a single alphabetic-
character–only string in it? That means no spaces, no numbers, and no
special characters within the string.
In older procedural languages, you have to declare data fields with
format constraints in the file declarations. The obvious examples are
COBOL and PL/I. Another approach is to use a template to filter the data
as you read; the FORTRAN-style
FORMAT statement is the best-known
example.
SQL made a strong effort to separate the logical view of data from the
physical representation of it, so you don’t get much help with specifying
the physical ...