An attribute is an abstraction that allows you to identify, describe and classify instances of an entity on the basis of assigning an attribute value, and so describing a relevant characteristic of that instance.
Example
An individual vehicle could be identified, described and classified as an instance of the "Car" entity by assigning the attribute values of "RR-847-PA" to the attribute Numberplate, "4" to the attribute "Number of wheels", "AUDI A6" to the attribute Car Model, and "Yes" to the attribute "Primarily used for the transport of people" :
Attribute values are stored in database columns
A column is the part of a table where attribute values for a specific attribute are stored of the entity represented by the table. For example, the fact that a car with numberplace RR-847-PA is of the car model AUDI A6 is stored in the CAR table in the CAR_MODEL column of the record with numberplate RR-847-PA:
Table: CAR
|
Numberplate
|
Car model
|
134-PTB-04
|
MERCEDES C COUPE
|
RR-847-PA
|
AUDI A6
|
Only non-trivial attribute values are stored in a practical implementation. For a car, the fact that an instance has 4 wheels and is primarily used for transporting people is not stored in a column because it applies by definition for all car instances. The numberplate is likely to identify the instance, and is therefore stored in a column of the CAR database table called NUMBERPLATE. The car model is also likely a non-trivial characteristic of a car, and is therefore likely to be stored in a column called CAR_MODEL.
|