1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
#(13)集約結果をさらに絞り込む having句 -- (1)2017 月間ユニークユーザーが630人以上の月 select request_month, count(distinct user_id) from access_logs where request_month>='2017-01-01' and request_month<'2018-01-01' group by request_month having count(distinct user_id)>=630; #データの集約 演習問題 select request_month, count(*) from access_logs where request_month>='2017-01-01' and request_month<'2017-07-01' group by request_month having count(*)>1000; |
The following two tabs change content below.
Keita N
こんにちは すうがく を こよなくあいする
”二代目 圧倒的 かず まなぶ (´・ω・`)” です
心が豊かになる方法について 引き続き考えていきたいです。
最新記事 by Keita N (全て見る)
- python : pyscript - 2022年5月16日
- python : logging モジュールの使い方 - 2022年5月16日
- 機械名:号機:顧客番号 - 2022年2月17日