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/get-started-analyze-sql-pool.md
+46-46Lines changed: 46 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,54 +38,54 @@ A dedicated SQL pool consumes billable resources as long as it's active. You can
38
38
1. Select the pool 'SQLPOOL1' (pool created in [STEP 1](./get-started-create-workspace.md) of this tutorial) in 'Connect to' drop down list above the script.
39
39
1. Enter the following code:
40
40
```
41
-
IF NOT EXISTS (SELECT * FROM sys.objects O JOIN sys.schemas S ON O.schema_id = S.schema_id WHERE O.NAME = 'NYCTaxiTripSmall' AND O.TYPE = 'U' AND S.NAME = 'dbo')
42
-
CREATE TABLE dbo.NYCTaxiTripSmall
43
-
(
44
-
[DateID] int,
45
-
[MedallionID] int,
46
-
[HackneyLicenseID] int,
47
-
[PickupTimeID] int,
48
-
[DropoffTimeID] int,
49
-
[PickupGeographyID] int,
50
-
[DropoffGeographyID] int,
51
-
[PickupLatitude] float,
52
-
[PickupLongitude] float,
53
-
[PickupLatLong] nvarchar(4000),
54
-
[DropoffLatitude] float,
55
-
[DropoffLongitude] float,
56
-
[DropoffLatLong] nvarchar(4000),
57
-
[PassengerCount] int,
58
-
[TripDurationSeconds] int,
59
-
[TripDistanceMiles] float,
60
-
[PaymentType] nvarchar(4000),
61
-
[FareAmount] numeric(19,4),
62
-
[SurchargeAmount] numeric(19,4),
63
-
[TaxAmount] numeric(19,4),
64
-
[TipAmount] numeric(19,4),
65
-
[TollsAmount] numeric(19,4),
66
-
[TotalAmount] numeric(19,4)
67
-
)
68
-
WITH
41
+
IF NOT EXISTS (SELECT * FROM sys.objects O JOIN sys.schemas S ON O.schema_id = S.schema_id WHERE O.NAME = 'NYCTaxiTripSmall' AND O.TYPE = 'U' AND S.NAME = 'dbo')
42
+
CREATE TABLE dbo.NYCTaxiTripSmall
43
+
(
44
+
[DateID] int,
45
+
[MedallionID] int,
46
+
[HackneyLicenseID] int,
47
+
[PickupTimeID] int,
48
+
[DropoffTimeID] int,
49
+
[PickupGeographyID] int,
50
+
[DropoffGeographyID] int,
51
+
[PickupLatitude] float,
52
+
[PickupLongitude] float,
53
+
[PickupLatLong] nvarchar(4000),
54
+
[DropoffLatitude] float,
55
+
[DropoffLongitude] float,
56
+
[DropoffLatLong] nvarchar(4000),
57
+
[PassengerCount] int,
58
+
[TripDurationSeconds] int,
59
+
[TripDistanceMiles] float,
60
+
[PaymentType] nvarchar(4000),
61
+
[FareAmount] numeric(19,4),
62
+
[SurchargeAmount] numeric(19,4),
63
+
[TaxAmount] numeric(19,4),
64
+
[TipAmount] numeric(19,4),
65
+
[TollsAmount] numeric(19,4),
66
+
[TotalAmount] numeric(19,4)
67
+
)
68
+
WITH
69
+
(
70
+
DISTRIBUTION = ROUND_ROBIN,
71
+
CLUSTERED COLUMNSTORE INDEX
72
+
-- HEAP
73
+
)
74
+
GO
75
+
76
+
--Uncomment the 4 lines below to create a stored procedure for data pipeline orchestration
0 commit comments