60 likes | 202 Views
CIS 218. Defining Fields. Field Definition. Assign fields to tables Create field names Unique Descriptive Clear and unambiguous Avoid acronyms Use singular form. Field Definition. Specify column properties Data type Required or optional “NOT NULL” or “NULL” Default value
E N D
CIS 218 Defining Fields
Field Definition • Assign fields to tables • Create field names • Unique • Descriptive • Clear and unambiguous • Avoid acronyms • Use singular form
Field Definition • Specify column properties • Data type • Required or optional • “NOT NULL” or “NULL” • Default value • Rules (data constraints/restrictions)
Representing an Entity as a Table ITEM ItemNumber Description Cost ListPrice QuantityOnHand