Skip to content

Instantly share code, notes, and snippets.

@bevsxyz
Created July 6, 2024 06:42
Show Gist options
  • Save bevsxyz/a9237538febae067be730267e77fa7d1 to your computer and use it in GitHub Desktop.
Save bevsxyz/a9237538febae067be730267e77fa7d1 to your computer and use it in GitHub Desktop.
CREATE TABLE InventoryStatus (
ProductID INT,
StatusDate DATE,
InStock BOOLEAN
);
INSERT INTO InventoryStatus (ProductID, StatusDate, InStock) VALUES
(1, '2024-06-25', 1),
(1, '2024-06-26', 1),
(1, '2024-06-27', 0),
(1, '2024-06-28', 0),
(1, '2024-06-29', 1),
(1, '2024-06-30', 1),
(2, '2024-06-25', 0),
(2, '2024-06-26', 0),
(2, '2024-06-27', 1),
(2, '2024-06-28', 1),
(2, '2024-06-29', 1),
(2, '2024-06-30', 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment