Counting the number of rows with a value greater than or equal to a value from another column in SQL Counting the number of rows with a value greater than or equal to a value from another column in SQL database database