IT/SQL

Day 7

08Gattuso 2024. 3. 31. 22:58

1. is null

 select ename, comm

 from emp

 where comm is null;

 > comm이 null인 값 filtering

 

2. in

 - 말 그대로 in ( 조건 )

 - 조건 중 걸리는 것

 select ename, sal, job

 from emp

 where job in ('SALESMAN', 'ANALYST', 'MANAGER');

 > job이 'SALESMAN', 'ANALYST', 'MANAGER 중 하나인 행의 값중 ename, sal, job을 보여라

 

3. and / or / not

 - and / or / not

 - and (그리고 / A and B ) : A와 B의 조건 둘 다 만족

 - or ( 또한 / A or B ) : A 또는 B의 조건 둘 중 하나 만족

 - not ( 아니다 ) : not 뒤의 구문 빼고