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
### A. Creating an inline table-valued function (preview)
224
+
### A. Creating an inline table-valued function
221
225
The following example creates an inline table-valued function to return some key information on modules, filtering by the `objectType` parameter. It includes a default value to return all modules when the function is called with the DEFAULT parameter. This example makes use of some of the system catalog views mentioned in [Metadata](#metadata).
222
226
223
227
```sql
@@ -244,7 +248,10 @@ The function can then be called to return all view (**V**) objects with:
244
248
select*fromdbo.ModulesByType('V');
245
249
```
246
250
247
-
### B. Combining results of an inline table-valued function (preview)
251
+
> [!NOTE]
252
+
> Inline table-value functions are available in the serverless SQL pools, but in preview in the dedicated SQL pools.
253
+
254
+
### B. Combining results of an inline table-valued function
248
255
This simple example uses the previously created inline TVF to demonstrate how its results can be combined with other tables using cross apply. Here, we select all columns from both sys.objects and the results of `ModulesByType` for all rows matching on the *type* column. For more details on using apply, see [FROM clause plus JOIN, APPLY, PIVOT](../../t-sql/queries/from-transact-sql.md).
249
256
250
257
```sql
@@ -253,7 +260,10 @@ FROM sys.objects o
253
260
CROSS APPLY dbo.ModulesByType(o.type);
254
261
GO
255
262
```
256
-
263
+
264
+
> [!NOTE]
265
+
> Inline table-value functions are available in the serverless SQL pools, but in preview in the dedicated SQL pools.
266
+
257
267
## See also
258
268
[ALTER FUNCTION (SQL Server PDW)](/previous-versions/sql/)
259
269
[DROP FUNCTION (SQL Server PDW)](/previous-versions/sql/)
0 commit comments