다음과 같은 2개의 관계형 table이 있다.
topic table

author table

topic 테이블의 author_id와 author 테이블의 id는 서로 연관이 되어있는 것을 알 수 있다. 이를 하나로 묶어서 나타내주려면 JOIN문을 사용한다.
->는 enter를 의미함
SELECT * FROM topic
-> LEFT JOIN author
-> ON topic.author_id = author.id;


->는 enter를 의미함
SELECT topic.id, title, description, created, name, profile FROM topic
-> LEFT JOIN author
-> ON topic.author_id = author.id;

SELECT topic.id AS topic_id, title, description, created, name, profile FROM topic
-> LEFT JOIN author
-> ON topic.author_id = author.id;
