Skip to content

Instantly share code, notes, and snippets.

@machinelearningplus
Created September 4, 2023 13:38
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/16fd53cc2d501d7936d0832b642d8c14 to your computer and use it in GitHub Desktop.
Save machinelearningplus/16fd53cc2d501d7936d0832b642d8c14 to your computer and use it in GitHub Desktop.
DROP TABLE IF EXISTS STUDENTS;
CREATE TABLE students (
student_id INT,
subject VARCHAR(20),
score INT
);
INSERT INTO students (student_id, subject, score) VALUES
(1, 'Math', 85),
(1, 'English', 92),
(1, 'Science', 87),
(2, 'Math', 91),
(2, 'English', 88),
(2, 'Science', 93),
(3, 'Math', 78),
(3, 'English', 85),
(3, 'Science', 90),
(4, 'Math', 92),
(4, 'English', 86),
(4, 'Science', 89),
(5, 'Math', 90),
(5, 'English', 88),
(5, 'Science', 85),
(6, 'Math', 93),
(6, 'English', 82),
(6, 'Science', 90);
select * from students;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment