devops-exercises/exercises/sql/improve_query.md
2021-08-13 09:23:50 +03:00

11 lines
147 B
Markdown

## Comparisons vs. Functions
1. Improve the following query
```
SELECT count(*)
FROM shawarma_purchases
WHERE
YEAR(purchased_at) == '2017'
```