Recap - Junk
CoddyのSQLジャーニー「基礎」セクションの一部 — レッスン 72/72。
チャレンジ
中級利用可能なテーブルと列:
<strong>junk</strong>:<strong>junk_id</strong>
このチャレンジでは、junk テーブルがあります。
各 junk_id に以下の列を追加します:
even_num-junk_idの順で並べたときの、2 から2*nまでの行番号(nはテーブルの行数)、2 ずつ増加:2, 4, 6, 8 など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