: 조인을 하고자 하는 두 테이블에서 컬럼명과 데이터타입이 같은 컬럼을 기준으로 자연스럽게 조인을 함 (조합값을 기준으로)
select employee_id, first_name, job_id, job_title
from employee natural join jobs;
💻 결과
: 컬럼명은 동일하나 데이터 타입이 다른 경우 사용할 수 있는 조인 유형
USING절 뒤에 조인에 기준이 되는 컬럼명을 지정함.
USING절 뒤의 컬럼은 쿼리 구문에서 접두어(테이블명 또는 테이블 alias)를 사용할 수 없음.
🔸 예제1)
select employee_id, last_name,
location_id, department_id
from employees join departments
using (department_id);
💻 결과
🔸 예제2)
select l.city, d.department_name
from locations l join departments d
using (location_id)
where d.location_id = 1400;
💻 결과
: 조인 조건에 동등연산자(=)가 아닌 그 외 다른 비교연산자를 사용한 조인 유형
select e.last_name, e.salary, j.grade_level
from employees e join job_grades j
on e.salary
between j.lowest_sal and j.highest_sal;
: 조인을 하고자 하는 두 테이블의 ^모든 행^을 조인하는 유형