CREATE TABLE students (
id INT NOT NULL,
name VARCHAR(50) NOT NULL,
age INT,
PRIMARY KEY (id)
);
CREATE TABLE grades (
student_id INT NOT NULL,
subject VARCHAR(50) NOT NULL,
score INT,
FOREIGN KEY (student_id) REFERENCES students(id)
);
SELECT s.name, MAX(g.score) AS highest_score
FROM students s
JOIN grades g ON s.id = g.student_id
WHERE g.subject IN ('Mathematics', 'English')
GROUP BY s.id;