Skip to content

Commit 024a1b6

Browse files
committed
Add documentation for POWER & OFFSET in DDSQL documentation
1 parent 4bcb227 commit 024a1b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

content/en/ddsql_reference/_index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ WHERE delivery_date IS NULL {{< /code-block >}}
110110
FROM customers
111111
LIMIT 10 {{< /code-block >}}
112112

113+
`OFFSET`
114+
: Skips a specified number of records before starting to return records from the query.
115+
116+
{{< code-block lang="sql" >}}SELECT *
117+
FROM employees
118+
OFFSET 20 {{< /code-block >}}
119+
113120
`ORDER BY`
114121
: Sorts the result set of a query by one or more columns. Includes ASC, DESC for sorting order.
115122

@@ -229,6 +236,7 @@ The following SQL functions are supported. For Window function, see the separate
229236
| `CEIL(numeric n)` | numeric | Returns the value rounded up to the nearest integer. |
230237
| `FLOOR(numeric n)` | numeric | Returns the value rounded down to the nearest integer. |
231238
| `ROUND(numeric n)` | numeric | Returns the value rounded to the nearest integer. |
239+
| `POWER(numeric base, numeric exponent)` | numeric | Returns the value of base raised to the power of exponent. |
232240
| `LOWER(string s)` | string | Returns the string as lowercase. |
233241
| `UPPER(string s)` | string | Returns the string as uppercase. |
234242
| `ABS(numeric n)` | numeric | Returns the absolute value. |
@@ -316,6 +324,12 @@ SELECT ROUND(price) AS rounded_price
316324
FROM products
317325
{{< /code-block >}}
318326

327+
### `POWER`
328+
{{< code-block lang="sql" >}}
329+
SELECT POWER(response_time, 2) AS squared_response_time
330+
FROM logs
331+
{{< /code-block >}}
332+
319333
### `LOWER`
320334
{{< code-block lang="sql" >}}
321335
SELECT LOWER(customer_name) AS lowercase_name

0 commit comments

Comments
 (0)