Menu
Coddy logo textTech

요약 - Invoices

Coddy SQL 여정의 심화 과정 섹션에 포함된 레슨 — 27개 중 11번째.

challenge icon

챌린지

쉬움

사용 가능한 테이블과 컬럼:

  • <strong>invoices</strong>: <strong>id</strong>, <strong>code</strong>, <strong>customer_email</strong>

모든 code의 형식은 'INV-<year>-<number>' (예: 'INV-2026-00042') 입니다. 다음 항목을 반환하세요:

  • id
  • year: 문자열 형태의 4자리 연도, 예: '2026'
  • customer_domain: customer_email의 도메인 부분, 소문자로

id를 기준으로 정렬하세요.

직접 해보기

SELECT id,
       -- code에서 추출된 연도
       -- email에서 추출된 customer_domain
FROM invoices
ORDER BY id

심화 과정의 모든 레슨