Skip to content

Commit 2c98c4c

Browse files
Update finding-a-gap-in-timeseries-data-and-or-gaps-and-islands-using-sql.md
1 parent 8a67332 commit 2c98c4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

finding-a-gap-in-timeseries-data-and-or-gaps-and-islands-using-sql.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A common problem in analyzing a Log data from applications is to create sessions
2626
| Scott | 2020-08-07 22:20:00.000 |
2727
| Scott | 2020-08-07 22:30:00.000 |
2828

29-
### Desired output
29+
### Analysis Goal / Desired Output
3030

3131
From the above App Log, let's say we need to display
3232

@@ -40,7 +40,7 @@ From the above App Log, let's say we need to display
4040

4141
We will define the _end of a session_ to be 10+ minutes i.e. If there is no activity for more than 10 minutes, the session should be considered as ended.
4242

43-
### MATCH_RECOGNIZE Query to create sessions
43+
## Using MATCH_RECOGNIZE to Sessionize
4444

4545
Below we will use SQL's [MATCH_RECOGNIZE](applied-overview-of-MATCH_RECOGNIZE-clause.md) to _sessionize_ this data
4646

@@ -73,7 +73,7 @@ FROM app_log
7373
| Bob | 2020-08-07 20:50:00.000 | 2020-08-07 21:10:00.000 |
7474
| Angela | 2020-08-07 20:10:00.000 | 2020-08-07 20:50:00.000 |
7575

76-
### CONDITIONAL_TRUE_EVENT Query to create sessions
76+
## Using CONDITIONAL_TRUE_EVENT to Sessionize
7777

7878
Another way to _sessionize_ this App Log is to use [CONDITIONAL_TRUE_EVENT](conditional_true_event.md) in SQL
7979

0 commit comments

Comments
 (0)