LoginSignup
0
3

More than 5 years have passed since last update.

Athena の Query で正規表現とかサブクエリとかやる方法

Posted at
SELECT count(*)
FROM 
    (SELECT regexp_extract_all(request_uri, '(.*hoge_id=.*?)(.*?)&', 2)
        FROM "DATABASE_NAME"."TABLE_NAME"
        WHERE year=2018
            AND month=3
            AND day=13
        GROUP BY  regexp_extract_all(request_uri, '(.*hoge_id=.*?)(.*?)&', 2)
    )
0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3