{"data":{"slug":"github-google-skills-skills-cloud-bigquery-basics-7d97f7e17c2b","title":"Manage BigQuery Datasets and Tables","summary":"Create, manage, and query datasets and tables in BigQuery. Receive structured data outputs from SQL queries and data ingestion pipelines.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-bigquery-basics-7d97f7e17c2b","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-bigquery-basics-7d97f7e17c2b","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-bigquery-basics-7d97f7e17c2b.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-bigquery-basics-7d97f7e17c2b\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Before executing any `gcloud`, REST API, or MCP command, you must read [Usage Attribution](references\/attribution.md). For terminal commands, prefix `gcloud` with `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:bigquery-basics)\"` and append `agent-skills\/1.0 (skill:bigquery-basics)` to `User-Agent` headers.","instructions":"---\nname: bigquery-basics\nmetadata:\n  version: \"1.0.2\"\n  category: BigDataAndAnalytics\ndescription: >-\n  Manages datasets, tables, and jobs in BigQuery. Use when you need to interact\n  with BigQuery, run SQL queries, manage BigQuery resources (datasets, tables,\n  views), or perform basic data ingestion and analysis.\n---\n\n# BigQuery Basics\n\nBigQuery is a serverless, AI-ready data platform that enables high-speed\nanalysis of large datasets using SQL and Python. Its disaggregated architecture\nseparates compute and storage, allowing them to scale independently while\nproviding built-in machine learning, geospatial analysis, and business\nintelligence capabilities.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\/attribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:bigquery-basics)\"`\nand append `agent-skills\/1.0 (skill:bigquery-basics)` to `User-Agent` headers.\n\n## Setup and Basic Usage\n\n1.  **Enable the BigQuery API:**\n\n    ```bash\n    CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:bigquery-basics)\" \\\n    gcloud services enable bigquery.googleapis.com --quiet\n    ```\n\n2.  **Create a Dataset:**\n\n    ```bash\n    bq mk --dataset --location=US my_dataset\n    ```\n\n3.  **Create a Table:**\n\n    Create a file named `schema.json` with your table schema:\n\n    ```json\n    [\n      {\n        \"name\": \"name\",\n        \"type\": \"STRING\",\n        \"mode\": \"REQUIRED\"\n      },\n      {\n        \"name\": \"post_abbr\",\n        \"type\": \"STRING\",\n        \"mode\": \"NULLABLE\"\n      }\n    ]\n    ```\n\n    Then create the table with the `bq` tool:\n\n    ```bash\n    bq mk --table my_dataset.mytable schema.json\n    ```\n\n4.  **Run a Query:**\n\n    ```bash\n    bq query --use_legacy_sql=false \\\n    'SELECT name FROM `bigquery-public-data.usa_names.usa_1910_2013` \\\n    WHERE state = \"TX\" LIMIT 10'\n    ```\n\n## Reference Directory\n\n- [Core Concepts](references\/core-concepts.md): Storage types, analytics\n  workflows, and BigQuery Studio features.\n\n- [Change History](references\/change-history.md): Tracking and querying\n  incremental table changes using APPENDS and CHANGES.\n\n-   [Continuous Queries](references\/continuous-queries.md): Running continuous\n    SQL statements to analyze incoming data in real time.\n\n- [CLI Usage](references\/cli-usage.md): Essential `bq` command-line tool\n  operations for managing data and jobs.\n\n- [Client Libraries](references\/client-library-usage.md): Using Google Cloud\n  client libraries for Python, Java, Node.js, and Go.\n\n- [MCP Usage](references\/mcp-usage.md): Using the BigQuery remote MCP server and\n  Gemini CLI extension.\n\n- [Infrastructure as Code](references\/iac-usage.md): Terraform examples for\n  datasets, tables, and reservations.\n\n- [IAM & Security](references\/iam-security.md): Roles, permissions, and data\n  governance best practices.\n\n- [Usage Attribution](references\/attribution.md): Standardized usage attribution\n  tags for `gcloud` CLI, REST API, and MCP requests.\n\n*If you need product information not found in these references, use the\nDeveloper Knowledge MCP server `search_documents` tool.*\n\n## Related Skills\n\n- [BigQuery AI & ML Skill](..\/bigquery-ai-ml):\n  SKILL.md file for BigQuery AI and ML capabilities (forecast, anomaly\n  detection, text generation).\n","use_cases":["Creating and managing datasets and tables for data analysis.","Running SQL queries to extract insights from large datasets.","Setting up data ingestion pipelines using BigQuery."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/bigquery-basics\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-17","created_at":"2026-11-16T11:42:19.000000Z","updated_at":"2026-11-17T05:10:16.000000Z","seo_title":"Manage BigQuery Datasets and Tables","seo_description":"Learn how to create, manage, and query datasets and tables in BigQuery for data analysis and integration tasks.","seo_keywords":["BigQuery dataset management","BigQuery table creation","BigQuery SQL queries","Data analysis with BigQuery"]}}