Recap - Junk
Coddy SQL 여정의 기초 섹션에 포함된 레슨 — 72개 중 72번째.
챌린지
중급사용 가능한 테이블 및 열:
<strong>junk</strong>:<strong>junk_id</strong>
이 챌린지에서 junk 테이블이 있습니다.
각 junk_id에 대해 다음 열을 추가하고자 합니다:
even_num-junk_id로 정렬된 2부터2*n까지 2씩 증가하는 행 번호: 2, 4, 6, 8 등 (n은 테이블의 행 수)num_piece- 그룹을 나타냄 (NTILE사용), 3부터 9까지 3씩 증가: 3, 6, 9 (총 3개 그룹).avg_id- 현재 행과 그 전 2행의 평균 id 같은 그룹 내에서만piece_rank- 각 그룹의avg_id로 정렬된 dense rank
직접 해보기
기초의 모든 레슨
4More Keywords
The IN keywordThe BETWEEN keywordThe LIKE keywordThe AS keywordRecap - Cellphone Models2Conditions
Conditions BasicsThe AND keywordThe OR keywordThe NOT keywordMultiple Conditions CombinedParenthesisBooleans5Arithmetic Operations
Mathematical OperatorsMathematical ColumnsThe Modulo OperationThe ROUND() Function3Specific Return Format
Null valuesSort Results Part 1Sort Results Part 2Recap - Cyber Security FirmLimit number of recordsRecap - Vehicle Factory6Intro Challenges
Recap - Parliamentary ElectionRecap - Police Criminal ArrestRecap - Bar Beverage ContainerRecap - Engineer new columns