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
| <source> | |
| type tail | |
| format apache | |
| time_format %d/%b/%Y:%H:%M:%S %z | |
| path /var/log/httpd/access_log | |
| tag td.apache_access_log | |
| pos_file /var/lib/fluent/td.apache_access_log.pos | |
| </source> | |
| ... |
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
| -- sum' [1, 2, 3, 4, 5] == 15 | |
| sum' :: [Int] -> Int | |
| sum' [] = 0 | |
| -- sum' [x] = x | |
| sum' (x:xs) = x + sum'(xs) | |
| -- 実装書いてね! | |
| -- product' [] == 1 | |
| -- product' [1, 2, 3, 4, 5] == 120 | |
| product' :: [Int] -> Int |
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
| -- 1990年に雇った人の現在給与一覧を取得 | |
| SELECT | |
| departments.dept_name, | |
| employees.last_name AS manager_last_name, | |
| salaries.salary, | |
| titles.title, | |
| ninety_hire_man_employees.* | |
| FROM ( | |
| 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
| -- 1990年に雇った人の現在給与一覧を取得 | |
| -- 部署ごとの給与TOP3を取得 | |
| WITH ninety_hire_man_employees AS ( | |
| SELECT | |
| * | |
| FROM | |
| employees.employees | |
| WHERE | |
| hire_date BETWEEN '1990-01-01' | |
| AND '1990-12-31' |