2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2018-01-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
2020-12-01 05:30:00
Need MIN(DATE) and MAX(DATE) and No of Months 9i.e count)
Expected o/p:
Months Date_Min Date_Max
36.0 2018-01-01 05:30:00 2020-12-01 05:30:00