I have a table that has start dates and end dates. I need to have a select statement that will add an end date based on the next record's start date (the day prior to the next record's end date):
table
id start_date end_date
1 2004-09-27 2004-12-31
2 2005-01-01 2005-03-14
3 2005-03-15 2005-04-19
4 2005-04-20 ....
Help is appreciated.
Thanks
table
id start_date end_date
1 2004-09-27 2004-12-31
2 2005-01-01 2005-03-14
3 2005-03-15 2005-04-19
4 2005-04-20 ....
Help is appreciated.
Thanks