Query Sheets with a permanent table
Stay organized with collections
Save and categorize content based on your preferences.
Query data from a Google Sheets file by creating a permanent table.
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis guide demonstrates how to query data from a Google Sheets file by creating a permanent table in BigQuery using both Java and Python.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves setting up authentication with the necessary scopes for BigQuery and Google Drive access, then configuring an external data source linked to the Google Sheets file.\u003c/p\u003e\n"],["\u003cp\u003eYou can define the schema, skip header rows, and specify a range within the Google Sheets to include in the table.\u003c/p\u003e\n"],["\u003cp\u003eThe samples include example queries that can be run against the newly created permanent table, like filtering for states whose names start with 'W'.\u003c/p\u003e\n"],["\u003cp\u003eYou can find more code samples for other Google Cloud Products on the Google Cloud sample browser.\u003c/p\u003e\n"]]],[],null,[]]