About 1,968,296 results (5,067 milliseconds)

Query syntax | BigQuery | Google Cloud

https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax
A common table expression defined by a WITH clause. The source table in a CREATE TABLE FUNCTION statement creating a new table-valued function.

Work with recursive CTEs | BigQuery | Google Cloud

https://cloud.google.com/bigquery/docs/recursive-ctes
In GoogleSQL for BigQuery, a WITH clause contains one or more common table expressions (CTEs) with temporary tables that you can reference in a query expression ...

Query syntax in GoogleSQL | Spanner | Google Cloud

https://cloud.google.com/spanner/docs/reference/standard-sql/query-syntax
Each CTE binds the results of a subquery to a table name, which can be used elsewhere in the same query expression, but rules apply. CTEs.

Optimize query computation | BigQuery | Google Cloud

https://cloud.google.com/bigquery/docs/best-practices-performance-compute
Note: WITH clauses with common table expressions (CTEs) are used for query readability, not performance. There is no guarantee that adding a WITH clause causes ...

Looker functions and operators | Google Cloud

https://cloud.google.com/looker/docs/functions-and-operators
... common functions without needing to create Looker expressions: Shortcut ... table calculations used in the expression parameter of a data test). This ...

Common Table expression in a UDF that returns a table

https://groups.google.com/g/comp.sys.ibm.as400.misc/c/_TvS6HKoy9E
Which the create function doesn't seem to like. I've tried replacing the CTE with a "Declare Global Temporary Table TmpTable as (select ...) with data". But ...

Adding generated common table expressions

https://groups.google.com/g/django-developers/c/b370mxfKCHg
I first did this by writing some hackish functions using raw querysets and generating my own CTE based queries, but it lacked ideal flexibility and ...

Subqueries | BigQuery | Google Cloud

https://cloud.google.com/bigquery/docs/reference/standard-sql/subqueries
Expression subqueries are used in a query wherever expressions are valid. ... Common tables used in examples. Some examples reference a table called ...

Create materialized views | BigQuery | Google Cloud

https://cloud.google.com/bigquery/docs/materialized-views-create
Materialized views support WITH clauses and common table expressions. ... For example, if the base table uses daily partitions, the truncation function ...

Legacy SQL Syntax, Functions and Operators | BigQuery | Google ...

https://cloud.google.com/bigquery/docs/reference/legacy-sql
The expressions computed in the SELECT clause of the subquery are available to the outer query just as columns of a table would be available. Subqueries can be ...

Query syntax in PostgreSQL | Spanner | Google Cloud

https://cloud.google.com/spanner/docs/reference/postgresql/query-syntax
... function calls · Operators · Conditional expressions · Subqueries · Query syntax. Functions ... A common table expression (CTE) includes a CTE name and SELECT ...

Creating Looker expressions | Google Cloud

https://cloud.google.com/looker/docs/creating-looker-expressions
Note: If your admin has granted you permissions to create table calculations, you can use the following features to quickly perform common functions without ...

MariaDB and MySQL Common Table Expressions and Window ...

https://books.google.com/books?id=YLU8DwAAQBAJ&printsec=frontcover
... Common Table Expressions and Window Functions Revealed introduces and explains CTEs and window functions, newly available in MariaDB 10.2 and MySQL 8.0, and ...

Window function calls | BigQuery | Google Cloud

https://cloud.google.com/bigquery/docs/reference/standard-sql/window-function-calls
] ] [ ORDER BY expression [ { ASC | DESC } ] [, ...] ] [ window_frame_clause ] ... Common tables used in examples. The following tables are used in the ...

Common table expressions

https://groups.google.com/g/h2-database/c/r2nDpKxDFyU
I think that CTE it's a more important feature for itself than recursive queries that are rarely used. DB2 for example take full advantage and does deep ...

Delete all rows in BigQuery and other DML statements to add ...

https://cloud.google.com/blog/topics/developers-practitioners/bigquery-explained-data-manipulation-dml
Nov 13, 2020 ... INSERT using subqueries or common table expressions (CTE): As seen ... The MERGE statement can be used to manage these operations on a dimension ...

Google Sheets function list - Google Docs Editors Help

https://support.google.com/docs/table/25273?hl=en
IF(logical_expression, value_if_true, value_if_false), Returns one value if a logical expression is `TRUE` and another if it is `FALSE`. ... table and match the ...

Add support for MEDIAN aggregate function

https://groups.google.com/g/h2-database/c/vWlSKQ5XYzI
Oct 15, 2011 ... ... functions or common table expressions, e.g. in DB2 or SQL Server: http://stackoverflow.com/questions/1342898/function-to-calculate-median-in ...

A few questions on stored-procedure alike implementation

https://groups.google.com/g/presto-users/c/o6nq-mOu9iI
Feb 8, 2016 ... ... functions, and it might be a way to go if I can ... Often times you can use a common table expression (CTE) to make things easier read too.

Using date_start and date_end with date filters | Looker | Google ...

https://cloud.google.com/looker/docs/best-practices/how-to-use-date_start-and-date_end-with-date-filters
Jul 22, 2024 ... ... function that reaches back n number of rows for a table ... Example 1: LookML that uses a common table expression to filter the table.