본문 바로가기

Programming/Memo

we

Count(*)를 제외한 모든 집계함수는 null값을 무시


select distinct course_id

from0 section

where semester = 'Fall' and year = 2009 and

course_id in(select course_id

     from section

     where semester = 'Spring' and year = 2010);


A는 릴레이션 B를 포함한다 - not exists(B except A)

'Programming > Memo' 카테고리의 다른 글

DB - 2  (0) 2019.04.24
DB - 1  (0) 2019.04.24