Let us look at few examples of minimal keys, and superkeys, valid in the relational schemas.
First, we consider relational schema: students, that consists of the attributes: student number (snum), first name, last name and date of birth. A set of attributes, that contains only a student number, is a minimal key in a relational schema: student. It is, because every student has a unique student number given by university administration when he/she is enrolled. It is a minimal key, because it is impossible to remove an attribute, such that a remaining set of attributes is not empty.
A set of attributes, that contains only the attributes: student number and last name, is a superkey in a relational schema: student. It is a key, because every student has a unique pair of values of attributes: student number and last name. It is a superkey, because if we remove an attribute: last name, a remaining set of attributes, that contains only a student number, is still a key. Well, it is even a minimal key.
Next, consider a relational schema: enrolment, that consists of the attributes: student number (s num), subject code (code) enrolment date, and enrolment time measured with a precision up to a single milisecond. A set of attributes: student number (s num), code, enrolment date and enrolment-time, is a minimal key in a relational schema: enrolment. It is so, because a student can enrol in only one subject, on a given day, and in a given moment in time, It is a minimal key, because we cannot remove any attributes such, that the remaining set of attributes, still remain a minimal key. For example, if we remove enrolment time, then it is possible that a student enrolled in a subject, dropped the same subject, and enrolled in it again on the same day.
Next, we consider a relational schema: room, that consists of the attributes: building number (bldg#), room number (room#), and room area. A set of attributes: building number and room number, is a minimal key in a relational schema: room. It is so, because all rooms in a building must have unique numbers. A set of attributes: building number, room number, and room area is a superkey. It is so, because we can remove an attribute area: and a pair of attributes left: building number and room number is still a key.
Finally, let us consider a relational schema: part, that consists of the attributes part number (p#), part name, price, and part manufacturer. A set of attributes, that consists of: part number, manufacturer, and price, is a superkey in a relational schema: part. It is so, because if we remove an attribute: price, then a pair of attributes: part number and manufacturer, is a key in a relational schema: part. A set of attributes that consists of: part number, and manufacturer, is a superkey in a relational schema: part. It is so because if we remove manufacturer then a part number is a key in a relational schema part. Finally, a set of attributes, that consists only of: part number, is a minimal key in a relational schema: part.