Remove unneeded ORDER BY as this maybe lead to problems like in #33

This commit is contained in:
Bernd Bestel 2018-07-31 17:42:07 +02:00 committed by GitHub
parent c8236b101b
commit 41a72d11da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,4 +3,3 @@ AS
SELECT product_id, SUM(amount) AS amount, MIN(best_before_date) AS best_before_date
FROM stock
GROUP BY product_id
ORDER BY MIN(best_before_date) ASC