I have a question in regards to finding the sequence between 2 page types using sql:
Sample data we have:
| SessionID | Page Type |
|---|---|
| 123 | account |
| 123 | raw |
| 123 | plp |
| 123 | pdp |
| 123 | account |
| 123 | plp |
| 123 | sample |
| 123 | pdp |
| 123 | plp |
| 123 | pdp |
| 123 | raw |
Ideally output will look like below, only to include records when pdp is clicked right after plp
| SessionID | Page Type |
|---|---|
| 123 | plp |
| 123 | pdp |
| 123 | plp |
| 123 | pdp |

