Bonjour,
Pour moi ce n'est pas un GROUP BY qu'il faut utiliser ici, mais une jointure.
Un truc du genre:


Select t1.id, t1.unit, t1.debut, coalesce(t2.fin, t1.fin)
From LaTable t1
Left outer...