I need to find the difference between the date. Sample Data in the table
CREATE TABLE #TEMP
(
StartDate DATE,
EndDate DATE
)
INSERT INTO #temp
VALUES
('12-01-2021','12-02-2021'),
('12-02-2021','12-03-2021'),
('12-03-2021','12-04-2021'),
('12-13-2021','12-14-2021'),
('12-14-2021','12-15-2021'),
('12-28-2021','12-29-2021')
OutPut Needed:
StartDate EndDate
12-01-2021 12-04-2021
12-13-2021 12-15-2021
12-28-2021 12-29-2021