I am trying to solve this. table has cycle and date column, i wanna add one more column as end date with interval of 100 days from current date and wanna display cycle, start_date, end_date as an output.
i have tried this
select cycle, min(start) as startt, max(start) as endd
from cy
group by cycle ;
however no luck till now.
its MYSQL DB latest version.
CREATE TABLE table1 (
`cycle` INTEGER,
`date` DATE,
);
INSERT INTO table1
(`cycle`, `date`)
VALUES
('1', '15-Jan-21'),
('2', '01-Aug-21'),
('3', '08-sep-21'),
('4', '15-Dec-21');
