I calculated the data of the previous month this month, and I want to get the month automatically as MONTH (DATE) -1, but if I encounter January, it will be difficult to handle. How can I write such a SQL statement? Or is there any other way to solve it?