How to calculate last 3 months data including this month, based on Year and Month columns in SQL?

前端 未结 0 798
别那么骄傲
别那么骄傲 2021-01-31 06:40

Example: data for DEC, I need Oct, Nov, Dec select year >= 2020 and Month >=10 for DEC, this query working for till Dec month, but in new year month value become 1 and >

相关标签:
回答
  • 消灭零回复
提交回复
热议问题