devops-exercises/exercises/sql/solutions/improve_query.md

10 lines
161 B
Markdown
Raw Normal View History

2021-08-13 08:23:50 +02:00
## Comparisons vs. Functions - Solution
```
SELECT count(*)
FROM shawarma_purchases
WHERE
purchased_at >= '2017-01-01' AND
purchased_at <= '2017-31-12'
```