devops-exercises/exercises/sql/improve_query.md

11 lines
147 B
Markdown
Raw Normal View History

2021-08-13 08:23:50 +02:00
## Comparisons vs. Functions
1. Improve the following query
```
SELECT count(*)
FROM shawarma_purchases
WHERE
YEAR(purchased_at) == '2017'
```