Skip to content

Commit 2c0ec6a

Browse files
committed
Fixing casing on SQL method/call names [netlify-build]
1 parent bbda000 commit 2c0ec6a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/connections/storage/warehouses/redshift-useful-sql.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ You can use SQL queries for the following tasks:
1717
1818
## Tracking events
1919

20-
The track allows you to record any actions your users perform. A track call takes three parameters: the userId, the event, and any optional properties.
20+
The Track call allows you to record any actions your users perform. A Track call takes three parameters: the userId, the event, and any optional properties.
2121

22-
Here's a basic track call:
22+
Here's a basic Track call:
2323

2424
```javascript
2525
analytics.track('Completed Order',
@@ -30,7 +30,7 @@ analytics.track('Completed Order',
3030
});
3131
```
3232

33-
A completed order track call might look like this:
33+
A completed order Track call might look like this:
3434

3535
```javascript
3636
analytics.track('Completed Order', {
@@ -41,7 +41,7 @@ analytics.track('Completed Order', {
4141
});
4242
```
4343

44-
Each track call is stored as a distinct row in a single Redshift table called `tracks`. To get a table of your completed orders, you can run the following query:
44+
Each Track call is stored as a distinct row in a single Redshift table called `tracks`. To get a table of your completed orders, you can run the following query:
4545

4646
```sql
4747
select *
@@ -53,8 +53,8 @@ That SQL query returns a table that looks like this:
5353

5454
![](images/sql-redshift-table-1.jpg)
5555

56-
But why are there columns in the table that weren't a part of the track call, like `event_id`?
57-
This is because the track method (for client-side libraries) includes additional properties of the event, like `event_id`, `sent_at`, and `user_id`!
56+
But why are there columns in the table that weren't a part of the Track call, like `event_id`?
57+
This is because the Track method (for client-side libraries) includes additional properties of the event, like `event_id`, `sent_at`, and `user_id`!
5858

5959
### Grouping events by day
6060
If you want to know how many orders were completed over a span of time, you can use the `date()` and `count` function with the `sent_at` timestamp:
@@ -139,15 +139,15 @@ SELECT *,
139139

140140
### Historical traits
141141

142-
The `identify` method ties user attributes to a `userId`.
142+
The Identify method ties user attributes to a `userId`.
143143

144144
```javascript
145145
analytics.identify('bob123',{
146146
147147
plan: 'Free'
148148
});
149149
```
150-
As these user traits change over time, you can continue calling the identify method to update their changes. With this query, you can update Bob’s account plan to “Premium”.
150+
As these user traits change over time, you can continue calling the Identify method to update their changes. With this query, you can update Bob’s account plan to “Premium”.
151151

152152
```javascript
153153
analytics.identify('bob123', {
@@ -156,7 +156,7 @@ analytics.identify('bob123', {
156156
});
157157
```
158158

159-
Each identify call is stored in a single Redshift table called `identifies`. To see how a user's plan changes over time, you can run the following query:
159+
Each Identify call is stored in a single Redshift table called `identifies`. To see how a user's plan changes over time, you can run the following query:
160160

161161
```sql
162162
select email, plan, sent_at
@@ -173,7 +173,7 @@ This SQL query returns a table of Bob's account information, with each entry rep
173173

174174
If you want to see what your users looked like at a previous point in time, you can find that data in the `identifies` table. To get this table for your users, replace ‘initech’ in the SQL query with your source slug.
175175

176-
But what if you only want to see the most recent state of the user? Luckily, you can convert the `identifies` table into a distinct users table by taking the most recent identify call for each account.
176+
But what if you only want to see the most recent state of the user? Luckily, you can convert the `identifies` table into a distinct users table by taking the most recent Identify call for each account.
177177

178178
### Convert the identifies table into a users table
179179

0 commit comments

Comments
 (0)