A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/bigquery/docs/views-intro below:

Introduction to logical views | BigQuery

Stay organized with collections Save and categorize content based on your preferences.

Introduction to logical views

This document provides an overview of BigQuery support for logical views.

Overview

A view is a virtual table defined by a SQL query. The default type of view for BigQuery is a logical view. Query results contain only the data from the tables and fields specified in the query that defines the view.

The query that defines a view is run each time the view is queried.

Types of views

Although logical views are the default type of view, if you frequently query a large or computationally expensive view, then you should consider creating a materialized view, which is a precomputed view that periodically caches the results of a query for increased performance and efficiency.

However, you can often improve performance of a logical view without the need to create a materialized view by querying only a subset of your data, or by using other techniques.

You can also create an authorized view to share a subset of data from a source dataset to a view in a secondary dataset. You can then share this view to specific users and groups (principals) who can view the data you share and run queries on it, but who can't access the source dataset directly.

You can create an authorized view for either a logical or materialized view. An authorized view for a materialized view is called an authorized materialized view.

Use cases

Common use cases for views include the following:

You can also use views in other contexts:

Comparison to materialized views

Logical views are virtual and provide a reusable reference to a set of data, but don't physically store any data. Materialized views are defined using SQL, like a logical view, but physically store the data which BigQuery uses to improve performance. For further comparison, see materialized views features.

Logical views limitations

BigQuery views are subject to the following limitations:

Logical views quotas

For information on quotas and limits that apply to views, see View limits.

SQL queries used to define views are also subject to the quotas on query jobs.

Logical views pricing

BigQuery uses logical views by default, not materialized views. Because views are not materialized by default, the query that defines the view is run each time the view is queried. Queries are billed according to the total amount of data in all table fields referenced directly or indirectly by the top-level query.

Logical views security

To control access to views in BigQuery, see Authorized views.

What's next

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.

Last updated 2025-08-07 UTC.

[[["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"]],["Last updated 2025-08-07 UTC."],[[["Views in BigQuery are virtual tables defined by SQL queries, providing a reusable name for complex queries or a specific subset of data."],["Unlike materialized views, regular views do not store data physically; instead, the defining query is executed each time the view is queried."],["Views are read-only and subject to limitations such as requiring datasets to be in the same location and not being compatible with legacy SQL when using GoogleSQL."],["Views are used for simplifying query logic, abstracting calculations, and providing access to specific data subsets without exposing underlying tables, and they are also usable as a data source for visualization tools like Looker Studio."],["Querying views incurs costs based on the total data size of the underlying tables' fields referenced in the view's defining query, and security is managed via authorized views."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4