Skip to content

Commit

Permalink
Update querying-and-segmentation.md (#1983)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKohler authored Aug 12, 2024
1 parent 6353fb6 commit fb090f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docs/content/querying-and-segmentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ subscribers.email LIKE 'John%'
subscribers.email LIKE 'John%' AND status = 'blocklisted'
```

#### Querying subscribers who viewed the campaign email

```sql
-- Find all subscribers who viewed the campaign email.
EXISTS(SELECT 1 FROM campaign_views WHERE campaign_views.subscriber_id=subscribers.id AND campaign_views.campaign_id=<put_id_of_campaign>)
```

#### Querying attributes

```sql
Expand Down

0 comments on commit fb090f2

Please sign in to comment.