How to get min and max date in SQL since branch the branch code changed I have table as below. I’m using plsql