매번, Join 데이터 구성이 어떻게 되더라.. 기억이 가물 가물 한데, 스택오버플로우에 좋은 그림이 있어서 가져왔다.
사실 left join, inner join 제외 하고 잘 안써본듯..
How do I decide when to use right joins/left joins or inner joins Or how to determine which table is on which side?
I know the usage of joins, but sometimes I come across such a situation when I am not able to decide which join will be suitable, a left or right. Here is the query where I am stuck. SELECT ...
stackoverflow.com
예시랑 다이어그램으로 표시가 되니까 기억하기가 편했다.
SQL이랑 너무 안 친해진다.
원래 출처는 아래 링크이다.
https://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins
Visual Representation of SQL Joins
This article describes SQL Joins in a visual manner, and also the most efficient way to write the visualized Joins.
www.codeproject.com
반응형
'DB' 카테고리의 다른 글
H2 server - Database not found 오류 (0) | 2022.08.29 |
---|---|
Database - 기초 ( 정보처리 기사 ) (0) | 2016.04.26 |