Oracle

Logical Conditions

Figo Kim 2006. 8. 27. 13:19
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
  • AND : Returns TRUE if both component conditions are true
    False > Null > True
SELECT employee_id, last_name,job_id,salary FROM employees
WHERE salary >= 10000 and job_id LIKE '%MAN%'
  • OR : Returns TRUE if either component conditions are true
    True > Null > False
SELECT employee_id, last_name,job_id,salary FROM employees
WHERE salary >= 10000 or job_id LIKE '%MAN%'
  • NOT : Returns TRUE if the following condition is false
    ex) NOT BETWEEN~AND~ , NOT LIKE , NOT IN , IS NOT NULL
select last_name,job_id from employees
where job_id not in('IT_PROG','ST_CLERK','SA_REP')


'Oracle' 카테고리의 다른 글

Using the "ORDER BY" clause  (0) 2006.08.28
Logical Conditions  (0) 2006.08.27
Comparison Conditions  (0) 2006.08.27
Comparison Conditions  (0) 2006.08.27
Character Strings and Dates  (0) 2006.08.27