Update improve_query.md (#418)

This commit is contained in:
abdrahimm 2023-08-24 20:56:22 +01:00 committed by GitHub
parent 9ac657ebbc
commit 66eaea5437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,8 +3,7 @@
1. Improve the following query 1. Improve the following query
``` ```
SELECT count(*) SELECT COUNT(purchased_at)
FROM shawarma_purchases FROM shawarma_purchases
WHERE WHERE purchased_at BETWEEN '2017-01-01' AND '2017-12-31';
YEAR(purchased_at) == '2017'
``` ```