横持ちはいわゆる「普通の」データの持ちかたのこと。 例えばレコードごとにa, b, c, dの4つの属性を持つ テーブルを作る場合、次のようなテーブルが横持ちテーブルである。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
id | |
, replicate('0', 4 - len(w1)) || w1 | |
|| replicate('0', 4 - len(w2)) || w2 | |
|| '-' | |
|| replicate('0', 4 - len(w3)) || w3 | |
|| '-' | |
|| replicate('0', 4 - len(w4)) || w4 | |
|| '-' | |
|| replicate('0', 4 - len(w5)) || w5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table sessionized_access_log | |
( session_id int | |
, session_seq int | |
, log_time timestamp | |
, pv_signature text -- 1アクセスを表現する値。pathとか | |
); | |
-- 長さ3の部分パスの出現回数を集計(ウィンドウ関数使わない編) | |
-- partitionから任意長のウィンドウフレームを自力で切り出すためにも使えるぞ! | |
select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Write Authors.txt, which maps Subversion user ID to Git user. | |
For example: | |
taro = Taro Yamada <[email protected]> | |
2. Create temporary, local, bare Git repository and map Subversion branches and tags. | |
$ git --bare init proj.git | |
$ cd proj.git |