I would like to count a specific database column with TWO different count criteria so i can calculate a percentage
For example lets same the database column is called Latency, and the data in the column contains the number of seconds.
I would like to count the number of Latency messages > 50 seconds but also the TOTAL number of Latency messages in the same query ( i.e. > 0 seconds)
My current query for > 50 seconds is as follows
select COUNT(*) from table WHERE date = 20180701 and CAST(Latency As Signed) > 50
How would i include counts > 0 seconds in the same query ??