Question: what is the difference between a key and an index?
Answer: A key is a set of columns or expressions on which we build an index. While an index is a structure that is stored in database, keys are strictly a logical concept. Index help us in fast accessing a record, whereas keys just identify the records uniquely.