Return just the last day of each month with SQL

前端 未结 9 848
执笔经年
执笔经年 2020-12-30 05:22

I have a table that contains multiple records for each day of the month, over a number of years. Can someone help me out in writing a query that will only return the last d

9条回答
  •  悲哀的现实
    2020-12-30 05:47

    A simple way to get the last day of month is to get the first day of the next month and subtract 1.

提交回复
热议问题