How do I use the count (*) function within a set date parameter? I have a table of order records and I would like to only count the ones for a specific date.
My Query was
SELECT COUNT (*)
FROM bets
WHERE order_date='2018-01-22';
And that returned this
1 queries executed, 0 success, 1 errors, 0 warnings
cQuery: SELECT COUNT (*) FROM bets WHERE order_date='2018-01-22' LIMIT 0, 1000
Error Code: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) FROM bets WHERE order_date='2018-01-22' LIMIT 0, 1000' at line 1
Execution Time : 0 sec Transfer Time : 0 sec Total Time : 0.021 sec