BigQuery

Fungsi SQL BigQuery

Data warehouse serverless dari Google Cloud. 220 fungsi tersedia.

Menampilkan 24 dari 220 fungsi

BYTE_LENGTH

String

Mengembalikan jumlah bytes dari STRING atau BYTES value.

Tipe hasil: INT64

CASE

Conditional

Evaluasi kondisi dan mengembalikan hasil berdasarkan kondisi pertama yang TRUE.

Tipe hasil: Type of result expressions

CAST

Conversion

Mengkonversi expression ke tipe data yang ditentukan.

Tipe hasil: Specified type

CEIL

Math

Rounds a number up to the nearest integer greater than or equal to the input.

Tipe hasil: Same as input type

CEILING

Math

Alias for CEIL. Rounds a number up to the nearest integer.

Tipe hasil: Same as input type

CHAR_LENGTH

String

Returns the number of characters in a string. An alias for LENGTH, available for standard SQL compatibility.

Tipe hasil: INT64

CHR

String

Converts a Unicode code point value into a string character. The inverse of the ASCII function.

Tipe hasil: STRING

COALESCE

Conditional

Mengembalikan nilai non-NULL pertama dari daftar expressions.

Tipe hasil: Type of expressions

CODE_POINTS_TO_BYTES

String

Converts an array of code points (extended ASCII 0–255) into BYTES.

Tipe hasil: BYTES

CODE_POINTS_TO_STRING

String

Converts an array of Unicode code points into a STRING.

Tipe hasil: STRING

CONCAT

String

Concatenates two or more strings into one. A foundational string concatenation function in BigQuery that supports multiple data types.

Tipe hasil: STRING

CONTAINS_SUBSTR

String

Checks whether a string contains a specified substring. Case-insensitive and supports JSON structures.

Tipe hasil: BOOL

CORR

Aggregate

Menghitung koefisien korelasi Pearson antara dua kolom numerik.

Tipe hasil: FLOAT64

COS

Math

Menghitung nilai cosinus dari sudut dalam radian.

Tipe hasil: FLOAT64

COT

Math

Menghitung nilai cotangen dari sudut dalam radian (1/TAN).

Tipe hasil: FLOAT64

COUNT

Aggregate

Counts the number of rows or non-NULL values in a column. A fundamental aggregate function in BigQuery for large-scale data analysis.

Tipe hasil: INT64

COUNTIF

Aggregate

Counts the number of rows that satisfy a given condition. Provides a more concise and readable syntax compared to COUNT with CASE or IF.

Tipe hasil: INT64

COVAR_POP

Aggregate

Menghitung kovarians populasi antara dua kolom numerik.

Tipe hasil: FLOAT64

COVAR_SAMP

Aggregate

Menghitung kovarians sample antara dua kolom numerik.

Tipe hasil: FLOAT64

CUME_DIST

Window

Menghitung cumulative distribution - proporsi baris dengan nilai kurang dari atau sama dengan baris saat ini.

Tipe hasil: FLOAT64

CURRENT_DATE

Date & Time

Returns the current date based on the specified timezone or the default timezone.

Tipe hasil: DATE

CURRENT_DATETIME

Date & Time

Returns the current datetime (date and time without timezone information) based on the specified timezone.

Tipe hasil: DATETIME

CURRENT_TIME

Date & Time

Returns the current time (without a date) based on the specified timezone.

Tipe hasil: TIME

CURRENT_TIMESTAMP

Date & Time

Returns the current timestamp in UTC. This is the most common way to get the current date and time in BigQuery.

Tipe hasil: TIMESTAMP