Postgresql – Trouble Returning The Count of Days Past Due
I am trying to build a function to return the count of days past due where the customer was less than 3 days late. Using the dvdrental database provided by PostgreSQL. It seems as though it's returning 6 for every…