select x1.artist_id, name
from artists x1
left join artworks_artists x2
on x1.artist_id = x2.artist_id
where death_year not null
and artwork_id is null
;
'[SQL] 연습' 카테고리의 다른 글
[sql] 프로그래머스 NULL 처리하기 (0) | 2022.11.18 |
---|---|
[sql] DATETIME에서 DATE로 형 변환 (0) | 2022.11.06 |
[solvesql] 할부는 몇 개월로 해드릴까요 (0) | 2022.10.30 |
[solvesql] 지역별 주문의 특징 (0) | 2022.10.20 |
[solvesql] 일별 블로그 방문자 수 집계 (0) | 2022.10.13 |