I need to extract the very first date as seperate column (without duplicates) from joined table which will be after meeting the following condition: ld.date between date(t
ld.date between date(t