This can also help when you use the same table twice in one query. Say you had a flight tracker database. This would be a Many to Many relationship, where the `flights` would act as the linking table. It would contain Foreign Key references for both `departure_id` and `arrival_id`, but each column would point to the same `locations` table. In order to reference columns correctly, you would need to rename the `locations` table at least once
This can also help when you use the same table twice in one query. Say you had a message tracker database. This would be a Many to Many relationship, where the `messages` would act as the linking table. It would contain Foreign Key references for both `sender_id` and `receiver_id`, but each column would point to the same `people` table. In order to reference columns correctly, you would need to rename the `people` table at least once