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
Copy file name to clipboardExpand all lines: articles/synapse-analytics/sql/create-use-views.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@ title: Create and use views in serverless SQL pool
3
3
description: In this section, you'll learn how to create and use views to wrap serverless SQL pool queries. Views will allow you to reuse those queries. Views are also needed if you want to use tools, such as Power BI, in conjunction with serverless SQL pool.
4
4
author: azaricstefan
5
5
ms.service: azure-synapse-analytics
6
-
ms.topic: overview
6
+
ms.topic: how-to
7
7
ms.subservice: sql
8
-
ms.date: 05/20/2020
8
+
ms.date: 12/06/2024
9
9
ms.author: stefanazaric
10
10
ms.reviewer: whhender, wiassaf
11
11
---
@@ -53,7 +53,7 @@ The view uses an `EXTERNAL DATA SOURCE` with a root URL of your storage, as a `D
53
53
54
54
### Delta Lake views
55
55
56
-
If you are creating the views on top of Delta Lake folder, you need to specify the location to the root folder after the `BULK` option instead of specifying the file path.
56
+
If you're creating the views on top of Delta Lake folder, you need to specify the location to the root folder after the `BULK` option instead of specifying the file path.
57
57
58
58
> [!div class="mx-imgBorder"]
59
59
>
@@ -100,7 +100,7 @@ When using JOINs in SQL queries, declare the filter predicate as NVARCHAR to red
100
100
101
101
### Delta Lake partitioned views
102
102
103
-
If you are creating the partitioned views on top of Delta Lake storage, you can specify just a root Delta Lake folder and don't need to explicitly expose the partitioning columns using the `FILEPATH` function:
103
+
If you're creating the partitioned views on top of Delta Lake storage, you can specify just a root Delta Lake folder and don't need to explicitly expose the partitioning columns using the `FILEPATH` function:
104
104
105
105
```sql
106
106
CREATE OR ALTER VIEW YellowTaxiView
@@ -124,7 +124,7 @@ For more information, review [Synapse serverless SQL pool self-help page](resour
124
124
125
125
## JSON views
126
126
127
-
The views are the good choice if you need to do some additional processing on top of the result set that is fetched from the files. One example might be parsing JSON files where we need to apply the JSON functions to extract the values from the JSON documents:
127
+
The views are the good choice if you need to do some extra processing on top of the result set that is fetched from the files. One example might be parsing JSON files where we need to apply the JSON functions to extract the values from the JSON documents:
128
128
129
129
```sql
130
130
CREATE OR ALTER VIEW CovidCases
@@ -191,12 +191,6 @@ ORDER BY
191
191
192
192
When you query the view, you may encounter errors or unexpected results. This probably means that the view references columns or objects that were modified or no longer exist. You need to manually adjust the view definition to align with the underlying schema changes.
193
193
194
-
## Next steps
194
+
## Related content
195
195
196
196
For information on how to query different file types, refer to the [Query single CSV file](query-single-csv-file.md), [Query Parquet files](query-parquet-files.md), and [Query JSON files](query-json-files.md) articles.
197
-
198
-
-[What's new in Azure Synapse Analytics?](../whats-new.md).
199
-
-[Best practices for serverless SQL pool in Azure Synapse Analytics](best-practices-serverless-sql-pool.md)
200
-
-[Troubleshoot serverless SQL pool in Azure Synapse Analytics](resources-self-help-sql-on-demand.md)
201
-
-[Troubleshoot a slow query on a dedicated SQL Pool](/troubleshoot/azure/synapse-analytics/dedicated-sql/troubleshoot-dsql-perf-slow-query)
202
-
-[Synapse Studio troubleshooting](../troubleshoot/troubleshoot-synapse-studio.md)
0 commit comments