Skip to content

Commit 23236c1

Browse files
authored
Fix sql ref data watermark name + missing comma
1 parent 85b9b03 commit 23236c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/stream-analytics/sql-reference-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ When using the delta query, [temporal tables in Azure SQL Database](../sql-datab
155155
For records that were updated, the temporal table does bookkeeping by capturing an insertion and deletion operation. The Stream Analytics runtime will then apply the results of the delta query to the previous snapshot to keep the reference data up to date. An example of delta query is show below:
156156

157157
```SQL
158-
SELECT DeviceId, GroupDeviceId, Description, ValidFrom as watermark 1 as _operation_
158+
SELECT DeviceId, GroupDeviceId, Description, ValidFrom as _watermark_, 1 as _operation_
159159
FROM dbo.DeviceTemporal
160160
WHERE ValidFrom BETWEEN @deltaStartTime AND @deltaEndTime -- records inserted
161161
UNION
162-
SELECT DeviceId, GroupDeviceId, Description, ValidTo as watermark 2 as _operation_
162+
SELECT DeviceId, GroupDeviceId, Description, ValidTo as _watermark_, 2 as _operation_
163163
FROM dbo.DeviceHistory -- table we created in step 1
164164
WHERE ValidTo BETWEEN @deltaStartTime AND @deltaEndTime -- record deleted
165165
```

0 commit comments

Comments
 (0)