select
*
from my_table A
right join
(
select generate_series('2024-01-01'::date, '2024-07-08'::date, '1 day'), 'YYYYMMDD' AS my_date
) B
on A.my_date = B.my_date
where A.my_date is null'프로그래밍 > PostgreSQL' 카테고리의 다른 글
| [PostgreSQL] 파티션 테이블 (0) | 2025.03.26 |
|---|---|
| [PostgreSQL] idle_session_timeout로 인한 메모리 누수 (0) | 2024.09.26 |
| [PostgreSQL] COUNT DISTINCT에 대하여 (0) | 2024.08.20 |
| [PostgreSQL] 쿼리 실행 계획 분석하기 (EXPLAIN ANALYZE) (0) | 2023.06.15 |