I got a problem in SQL,
I did a lot of request and now I want concatenate my first and last line on some specifics elements.
Here a perfect example:
id enter_date exit_date money
1 02/02/2020 28/02/2020 200$
1 28/02/2020 28/02/2020 220$
1 28/02/2020 04/05/2020 250$
2 12/08/2020 17/12/2020 500$
2 17/12/2020 . 700$
And my aim is to got that :
id enter_date exit_date money
1 02/02/2020 04/05/2020 250$
2 12/08/2020 . 700$
So like you can see, I took the enter_date from the first line and I took all the others elements from the last line ( except the enter_date). I want concatenate my first line with my last line