Skip to content

Instantly share code, notes, and snippets.

@machinelearningplus
Created September 20, 2023 08:21
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/adfb6e619dd8675e27547d62e21f5000 to your computer and use it in GitHub Desktop.
Save machinelearningplus/adfb6e619dd8675e27547d62e21f5000 to your computer and use it in GitHub Desktop.
CREATE TABLE sales (
id INT AUTO_INCREMENT PRIMARY KEY,
salesperson VARCHAR(50),
amount DECIMAL(10,2),
sale_date DATE
);
INSERT INTO sales (salesperson, amount, sale_date) VALUES
('John', 100.00, '2023-09-10'),
('John', 200.00, '2023-09-15'),
('John', 50.00, '2023-09-18'),
('Jane', 150.00, '2023-09-11'),
('Jane', 300.00, '2023-09-14'),
('Doe', 400.00, '2023-09-10'),
('Doe', 100.00, '2023-09-16');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment