金額を区間に分けたり、NULLを明示的に扱ったりする処理はレポートで欠かせません。 SQLでは CASE式 を使って条件ごとにラベルを付けることで、集計や表示を分かりやすくできます。 サンプルデータ(PostgreSQL) 金額が0やNULLのケースを含むデータを用意し ...
文字列は入力ミスや不要な記号で“汚れ”やすく、そのままでは分析や結合に支障が出ることがあります。 そこで役立つのが、空白を消すTRIM、特定文字を置換するREPLACE、区切りで分解するSPLIT_PARTといった文字列操作関数です。 基本を押さえておくと、前 ...
Ok, by now my first upgrade experience with Katmai is well-documented. So I thought I’d pass along some of my other experiences and some of the things I’ve learned. My Vista upgrade: I have a copy of ...
The term “NoSQL” is widely acknowledged as an unfortunate and inaccurate tag for the non-relational databases that have emerged in the past five years. The databases that are associated with the NoSQL ...
It's been amusing to watch the NoSQL movement transition from a “We don’t need no stinking SQL” attitude to a “Can I please have some SQL with that?” philosophy. The nonrelational databases that ...