BigQuery

Fungsi SQL BigQuery

Data warehouse serverless dari Google Cloud. 220 fungsi tersedia.

Menampilkan 24 dari 220 fungsi

JSON_VALUE_ARRAY

JSON

Extracts an array of scalars from a native JSON value as ARRAY<STRING>.

Tipe hasil: ARRAY<STRING>

LAG

Window

Accesses a value from a previous row in the partition based on the specified offset.

Tipe hasil: Same as input expression

LAST_DAY

Date & Time

Returns the last day of the specified period (month, quarter, or year).

Tipe hasil: DATE

LAST_VALUE

Window

Returns the last value in the window frame for each row.

Tipe hasil: Same as input expression

LAX_BOOL

JSON

Converts a JSON value to BOOL using flexible, lax type conversion.

Tipe hasil: BOOL

LAX_FLOAT64

JSON

Converts a JSON value to FLOAT64 using flexible, lax type conversion.

Tipe hasil: FLOAT64

LAX_INT64

JSON

Converts a JSON value to INT64 using flexible, lax type conversion.

Tipe hasil: INT64

LAX_STRING

JSON

Converts a JSON value to STRING using flexible, lax type conversion.

Tipe hasil: STRING

LEAD

Window

Accesses a value from a subsequent row in the partition based on the specified offset.

Tipe hasil: Same as input expression

LEAST

Math

Mengembalikan nilai terkecil dari daftar ekspresi.

Tipe hasil: Same as input type

LEFT

String

Extracts a specified number of characters from the left (beginning) of a string. A more readable shorthand than SUBSTR for extracting leading characters.

Tipe hasil: STRING

LENGTH

String

Returns the number of characters in a string. For BYTES, returns the number of bytes.

Tipe hasil: INT64

LN

Math

Calculates the natural logarithm (base e) of a number.

Tipe hasil: FLOAT64

LOG

Math

Calculates the logarithm with a configurable base.

Tipe hasil: FLOAT64

LOG10

Math

Calculates the base-10 logarithm (common logarithm).

Tipe hasil: FLOAT64

LOGICAL_AND

Aggregate

Returns TRUE if ALL values in the group are TRUE. Acts as an aggregated AND operator, useful for verifying that every condition in a set is met.

Tipe hasil: BOOL

LOGICAL_OR

Aggregate

Returns TRUE if AT LEAST ONE value in the group is TRUE. Acts as an aggregated OR operator, useful for checking whether any condition in a set is met.

Tipe hasil: BOOL

LOWER

String

Converts all characters in a string to lowercase. Supports Unicode characters.

Tipe hasil: STRING

LPAD

String

Pads the left side of a string with characters until it reaches a specified length. Left padding.

Tipe hasil: STRING

LTRIM

String

Removes characters from the left side (beginning) of a string. Left trim for leading characters.

Tipe hasil: STRING

MAKE_DATE

Date & Time

Membuat DATE dari komponen year, month, dan day.

Tipe hasil: DATE

MAX

Aggregate

Returns the maximum value from a column or expression. Supports numeric, string, date/time, and boolean types in BigQuery.

Tipe hasil: Same as input type

MD5

String

Menghitung MD5 hash dari input. Return BYTES.

Tipe hasil: BYTES

MIN

Aggregate

Returns the minimum value from a column or expression. Supports numeric, string, date/time, and boolean types in BigQuery.

Tipe hasil: Same as input type