{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"サンプルテーブルのクエリ","description":"サンプルテーブルをクエリする","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"サンプルテーブルのクエリ","__idx":0},"children":["サンプルテーブルのクエリ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンプルテーブルをクエリするには："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}," に移動します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Query"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["sample_datasets"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["\"www_access\" という名前のテーブルに対して任意のクエリを作成します。"," ","以下は、HTTP リクエストをステータスコード別にカウントしてソートするクエリの例です。"]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT\n  code AS http_status_code,\n  COUNT(1) AS num_requests\nFROM www_access\nGROUP BY code\nORDER BY num_requests\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190905-231536.746638ef902be3649c2d5f93f05a26508ec656b4fabe30ac7590521f9f9b5154.142841d8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Run"]}," を選択します。画面の Query Result 部分でクエリジョブのステータスを監視できます。例："]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190905-231552.5d2ff6160c69bfb797d7af42d8d116f6b9ac0b4ae8b115946730f537c66ff91e.142841d8.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブが完了すると、ステータスが RUNNING から SUCCESS に変わります。Jobs ビューでも結果を確認できます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20190905-231613.6d7ecd2f3a839ef9ba444110e7fa8a3aa5f88faec019cef3b4e788542d345124.142841d8.png","alt":""},"children":[]}]}]},"headings":[{"value":"サンプルテーブルのクエリ","id":"サンプルテーブルのクエリ","depth":1}],"frontmatter":{"seo":{"title":"サンプルテーブルのクエリ","description":"サンプルテーブルをクエリする"}},"lastModified":"2025-12-08T07:20:21.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/data-workbench/getting-started/querying-a-sample-table","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}