|
|
|
|
|
by hobs
1902 days ago
|
|
Most of your queries shouldn't be so verbose as to confuse which aliases you are talking about, but I agree - here's the best format :) (because why put ON on another line anyway?) SELECT
bo.title,
au.last_name,
au.first_name
FROM books AS bo
LEFT JOIN authors AS au ON
bo.author_id = au.id
|
|
In simple cases that may be just the singular of the table name, e.g.:
But in other cases, it will be different, e.g.: