You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standard aggregate functions used to calculate minimum, maximum, sum, average, count, and distinct count of values.
1047
1049
1050
+
<div class="impl node">
1048
1051
1049
1052
### SAP HANA Functions
1050
1053
@@ -1066,11 +1069,9 @@ For the SAP HANA functions, both usages are allowed: all-lowercase as given abov
1066
1069
- `nano100_between`
1067
1070
Computes the time difference between two dates to the precision of 0.1 microseconds. ([link](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/nano100-between-function-datetime?locale=en-US))
1068
1071
1069
-
</div>
1070
-
1071
1072
### Special Runtime Functions
1072
1073
1073
-
In addition to the OData and SAP HANA standard functions, the **CAP runtimes** provides special functions that are only available for runtime queries:
1074
+
In addition to the OData and SAP HANA standard functions, the **CAP runtime** provides special functions that are only available for runtime queries:
1074
1075
1075
1076
- `search(x, y)`
1076
1077
Checks whether `y` is contained in any element of `x` (fuzzy matching may apply).
@@ -1083,6 +1084,8 @@ In addition to the OData and SAP HANA standard functions, the **CAP runtimes** p
1083
1084
- `now()`
1084
1085
Returns the current timestamp.
1085
1086
1087
+
</div>
1088
+
1086
1089
## Using Native Features { #native-db-functions}
1087
1090
1088
1091
In general, the CDS 2 SQL compiler doesn't 'understand' SQL functions but translates them to SQL generically as long as they follow the standard call syntax of `function(param1, param2)`. This allows you to use native database functions inside your CDS models.
@@ -1195,4 +1198,4 @@ Once you have 2 non-HANA local databases, you need to have 2 distinct database c
1195
1198
1196
1199
</div>
1197
1200
1198
-
CAP samples demonstrate this in [@capire/bookstore](https://github.com/capire/bookstore/tree/main/db).
1201
+
CAP samples demonstrate this in [@capire/bookstore](https://github.com/capire/bookstore/tree/main/db).
0 commit comments