“Describe various data types associated with attributes”?
A variety of data types can be associated with attributes. Those mentioned in Chapter 2 follow. A numeric data type is used when an attribute’s value can consist of positive and negative numbers and is often used in arithmetic operations. An alphabetic data type permits an attribute to consist of only letters and spaces, whereas an alphanumeric data type allows the value of an attribute to consist of text, numbers, and certain special characters. A logical data type is associated with an attribute whose value can be either true or false (e.g., the attribute taxable). A date data type is used for storing a date (e.g., date hired or date of birth).