Skip to content

count the number of days of current month from day 1 until yesterday

I am trying to calculate the number of days of the current of month from day 1 until yesterday without the need of changing the count manually. The original SQL as below:

the desired code is something like

Appreciate any help

Advertisement

Answer

In firebird you could do:

User contributions licensed under: CC BY-SA
4 People found this is helpful