First page Back Continue Last page Overview Text


Let's say you take the people and events tables and want to join them and get results. Since both have id and name columns, if you just join them, the returned hashes will have the id and name values for the events table.

This is because if multiple tables have the same column names and you don't alias the columns manually, columns in the joined tables end up clobbering columns in the original table.