Created
October 15, 2019 08:27
-
-
Save ManiruzzamanAkash/e6bbc380b598c5fc44fb432cab7f0062 to your computer and use it in GitHub Desktop.
All complex Database queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sales values of top 7 days | |
SELECT COUNT(id), created_at from transaction_sell_lines | |
WHERE product_id = 12601 | |
GROUP BY LEFT(created_at, 10) | |
ORDER BY count(id) DESC | |
LIMIT 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment