Keys are used to make sure that no rows in a relation are repeated.
| Auto Manufacturers | ||
| Name | Phone | Address |
In the table above, the attribute "Name" will work as a valid primary key, since no two auto manufacturers have the same name.
| Students | ||
| Name | Phone | Address |
In the "Students" table, however, we need both the "Name" attribute as well as the "Phone" attribute to uniquely identify the particular record (student) since more than one student could have the same name. We assume that if there are two students with the same name, they will have different phone numbers.