Skip to content

Instantly share code, notes, and snippets.

@machinelearningplus
Created September 11, 2023 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machinelearningplus/02f0dd5526d3d33fa00d89e878a2a9fb to your computer and use it in GitHub Desktop.
Save machinelearningplus/02f0dd5526d3d33fa00d89e878a2a9fb to your computer and use it in GitHub Desktop.
CREATE TABLE Sales (
SaleID INT AUTO_INCREMENT PRIMARY KEY,
ProductID INT,
SaleDate DATE,
QuantitySold INT,
SalesAmount DECIMAL(10, 2)
);
INSERT INTO Sales(ProductID, SaleDate, QuantitySold, SalesAmount)
VALUES
(1, '2023-01-01', 10, 100),
(2, '2023-01-01', 5, 50),
(3, '2023-01-01', 15, 20),
(1, '2023-01-02', 15, 150),
(2, '2023-01-02', 7, 70),
(1, '2023-01-03', 12, 120),
(2, '2023-01-03', 6, 60),
(3, '2023-01-03', 16, 30);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment