Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sql Query to display MIN and MAX of Date column

srikanth bJun 7 2021

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

This post has been answered by Frank Kulash on Jun 7 2021
Jump to Answer

Comments

Processing

Post Details

Added on Jun 7 2021
3 comments
332 views