i have a event table,
| id | title | date |
| 1 | party | 2011-02-02 |
| 2 | party | 2011-02-03 |
| 3 | party | 2011-02-04 |
| 4 | party | 2011-02-05 |
| 5 | brunch | 2011-05-20 |
| 6 | brunch | 2011-05-21 |
| 7 | brunch | 2011-05-22 |
| 8 | brunch | 2011-05-23 |
i want to transfer data this structure
| id | title | start | finish |
| 1 | party | 2011-02-02 | 2011-02-05 |
| 2 | brunch | 2011-05-20 | 2011-05-23 |
what is best way ?
Without the new ID:
To generate a new ID use a counter: