I\'m working on a site that requires me to display a graph of the average number per day of a user input. I have a SQL query already that returns this info to me:
Use the DIV operator.
mysql> SELECT 5 DIV 2; -> 2
Integer division. Similar to FLOOR(), but is safe with BIGINT values. Incorrect results may occur for noninteger operands that exceed BIGINT range.