|
|
|
Do the same, but display only the rows where `people.employer_id` matches `companies.id`. Note that when you have multiple tables, you'll need to specify which table which column belongs to. Otherwise, as with the case of `id`, it could be ambiguous which table the column belongs to. When one column (such as `people.employer_id`) references the `id` column of another table, it is called a "Foreign Key".
|
|
|
|
Do the same, but display only the rows where `people.employer_id` matches `companies.id`. Note that when you have multiple tables, you'll need to specify which table which column belongs to. Otherwise, as with the case of `id`, it could be ambiguous which table the column belongs to. When one column (such as `people.employer_id`) references the `id` column of another table, it is called a "Foreign Key".
|