max(decode(extract(day from to_date(pay_date,'dd/mm/yyyy')),1,payment)) "&day_1",