Untitled attachment
https://s3.amazonaws.com/zundan-mastodon/media_attachments/files/000/240/057/original/f93839addd93e711.png
突然ですが弊インスタンスは午前中にコーラとレッドブルを飲み夕方にビールを飲むことがわかりました。健全だw
> SELECT
EXTRACT(HOUR FROM created_at AT TIME ZONE 'UTC-10') as hour,
SUM(CASE WHEN text LIKE '%ビール%' THEN 1 ELSE 0 END) AS beer,
SUM(CASE WHEN text LIKE '%コーラ%' THEN 1 ELSE 0 END) AS coke,
SUM(CASE WHEN text LIKE '%レッドブル%'
OR text LIKE '%RedBull%' THEN 1 ELSE 0 END) AS redbull,
COUNT(1) as total
FROM statuses WHERE account_id=1
GROUP BY EXTRACT(HOUR FROM created_at AT TIME ZONE 'UTC-10');
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.