-
-
Save machinelearningplus/02f0dd5526d3d33fa00d89e878a2a9fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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