University of Engineering & Technology Roorkee ALTERNATIVE KEY It is the set of an attribute in a table that uniquely identifies every tuple (row) in a table. In the alternative key, the set might not be selected primary key but still capable to be used as the primary key. Example:- Student table In the above example, the student table contains four columns. { Roll_no, Name, Age, Mob } Among In these columns, Roll_no is used as a primary key. Using roll number you can find uniquely student record in the table. Same as mob and email are the alternative keys both columns contain unique identities. FOREIGN KEY It is representing the relationship between two or more tables with the help of attributes. Actually, a foreign key is an attribute (column) whose values are derived from the primary key or unique key of another table. Why we use foreign keys? Foreign the key is maintaining the data integrity an