Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@rysk92

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

More than 3 years have passed since last update.
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)
    )
3
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
rysk92
sprocket
"Sprocket(スプロケット)は、Webサイトにおけるコンバージョン(購入・入会・資料請求・問合せ等)を増やしたい企業様向けに、自社開発のWeb接客ツールの導入及びコンバージョン改善コンサルティングを行っている会社です。 "

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?