Update improve_query.md (#418)
This commit is contained in:
parent
9ac657ebbc
commit
66eaea5437
@ -3,8 +3,7 @@
|
||||
1. Improve the following query
|
||||
|
||||
```
|
||||
SELECT count(*)
|
||||
SELECT COUNT(purchased_at)
|
||||
FROM shawarma_purchases
|
||||
WHERE
|
||||
YEAR(purchased_at) == '2017'
|
||||
WHERE purchased_at BETWEEN '2017-01-01' AND '2017-12-31';
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user