Skip to content

Instantly share code, notes, and snippets.

@bevsxyz
Created July 6, 2024 07:43
Show Gist options
  • Save bevsxyz/8c47ae54a970ead315d518996678d428 to your computer and use it in GitHub Desktop.
Save bevsxyz/8c47ae54a970ead315d518996678d428 to your computer and use it in GitHub Desktop.
CREATE TABLE Subscriptions (
CustomerID INT,
StartDate DATE,
EndDate DATE
);
INSERT INTO Subscriptions (CustomerID, StartDate, EndDate) VALUES
(1, '2024-01-01', '2024-03-31'),
(1, '2024-04-01', '2024-06-30'),
(1, '2024-08-01', '2024-10-31'),
(2, '2024-02-01', '2024-04-30'),
(2, '2024-05-01', '2024-07-31'),
(2, '2024-09-01', '2024-12-31');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment