say i have this table,
| eta | arrived | time_diff | +-------+----------+-----------+ | 06:47 | 06:47 | 0 | | 08:30 | 08:40 | 10 | | 10:30 | 10:40 | 10 | | 10:30 | 10:31 | 1 | +-------+----------+-----------+ and i got the time_diff by TIME_DIFF(arrived , eta , MINUTE) as time_diff what I wanted to do is to be able to count how many 0, 10 ... I have. ideally, the above table will yield one 0, two 10 and one 1. Offcorse i don't know in advance the time_diff result just wanted to count how many times a result occurred say i may have 2,3,5... how do I accomplish this in BigQuery Standard SQL?