Skip to content
Last updated

Query sample table

To query a sample table:

  1. Navigate to Data Workbench > Queries.

  2. Select New Query.

  3. Select sample_datasets.

  4. Write a query of your choice against the table named "www_access". Here is one example query that counts and sorts HTTP requests by their status codes.

SELECT
  code AS http_status_code,
  COUNT(1) AS num_requests
FROM www_access
GROUP BY code
ORDER BY num_requests

  1. Select Run. You can monitor the query job status in the Query Result portion of the screen. For example:

  1. When the job is done, the status changes from RUNNING to SUCCESS. You can also view the results within the Jobs view.