DBMS Chapter-8
DBMS Chapter-8
Even though zip codes contain all digits, they must be defined as
character data because some zip codes begin with the digit zero (0), and a
numeric data type would cause the leading zero to be dropped.
At first glance, it might seem logical to select a numeric data type for
V_AREACODE because it contains only digits. However, adding and
subtracting area codes does not yield meaningful results. Therefore,
selecting a character data type is more appropriate.
FK = Foreign key
PK = Primary key
NUMERI = Numeric data. DBMSs that do not support the NUMBER data type typically u
C NUMERIC instead.
In a 1:M relationship, you must always create the table for the “1” side
first.
If your RDBMS does not support the VARCHAR2 and FCHAR format,
use CHAR.