Calculates the square root of a number.
FLOAT64Diperbarui: 13 Jun 2026SQRT(expression)A non-negative number
1 SELECT 2 SQRT(4) as sqrt_4, 3 SQRT(2) as sqrt_2, 4 SQRT(100) as sqrt_100;
Calculates square roots.
| sqrt_4 | sqrt_2 | sqrt_100 |
|---|---|---|
| 2.0 | 1.4142... | 10.0 |
1 SELECT 2 point_a, 3 point_b, 4 SQRT(POWER(x2 - x1, 2) + POWER(y2 - y1, 2)) as distance 5 FROM `project.dataset.coordinates`;
Calculates the distance between two points.
Sudah paham SQRT? Latih langsung di browser
Latihan interaktif, langsung di browser.