BigQuery

Fungsi SQL BigQuery

Data warehouse serverless dari Google Cloud. 35 fungsi tersedia.

Menampilkan 24 dari 35 fungsi dalam kategori Math

ABS

Math

Returns the absolute (positive) value of a numeric input.

Tipe hasil: Same as input type

ACOS

Math

Menghitung arc cosinus (inverse cosine) - sudut dalam radian yang memiliki cosinus x.

Tipe hasil: FLOAT64

ASIN

Math

Menghitung arc sinus (inverse sine) - sudut dalam radian yang memiliki sinus x.

Tipe hasil: FLOAT64

ATAN

Math

Menghitung arc tangen (inverse tangent) - sudut dalam radian yang memiliki tangen x.

Tipe hasil: FLOAT64

ATAN2

Math

Menghitung arc tangen dari y/x dengan mempertimbangkan kuadran. Lebih akurat dari ATAN(y/x).

Tipe hasil: FLOAT64

BIT_COUNT

Math

Menghitung jumlah bit yang bernilai 1 dalam representasi binary.

Tipe hasil: INT64

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

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

DEGREES

Math

Mengkonversi sudut dari radian ke derajat.

Tipe hasil: FLOAT64

DIV

Math

Performs integer division (floor division), discarding the remainder.

Tipe hasil: INT64 or NUMERIC

EXP

Math

Calculates e raised to the power of the expression (e^x), where e ≈ 2.71828.

Tipe hasil: FLOAT64

FLOOR

Math

Rounds a number down to the nearest integer less than or equal to the input.

Tipe hasil: Same as input type

GREATEST

Math

Mengembalikan nilai terbesar dari daftar ekspresi.

Tipe hasil: Same as input type

IEEE_DIVIDE

Math

Performs division following the IEEE 754 standard, returning infinity or NaN instead of an error.

Tipe hasil: FLOAT64

LEAST

Math

Mengembalikan nilai terkecil dari daftar ekspresi.

Tipe hasil: Same as input type

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

MOD

Math

Returns the remainder of dividing two numbers (modulo operation).

Tipe hasil: Same as input type

POWER

Math

Calculates base raised to the power of exponent (base^exponent).

Tipe hasil: FLOAT64

RADIANS

Math

Mengkonversi sudut dari derajat ke radian.

Tipe hasil: FLOAT64

RAND

Math

Generates a random number between 0 (inclusive) and 1 (exclusive).

Tipe hasil: FLOAT64