

CREATE TABLE public.test_scores (
    student character varying(100) NOT NULL,
    subject character varying(100) NOT NULL,
    score numeric(5,0),
    test_date date NOT NULL
);

INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'algebra', 68, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'physics', 83, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'chemistry', 71, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'calculus', 68, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'scheme', 90, '2015-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'algebra', 84, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'physics', 72, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'chemistry', 71, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'calculus', 69, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'algebra', 74, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'physics', 83, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'chemistry', 80, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'calculus', 70, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'algebra', 75, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'physics', 72, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'chemistry', 82, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'calculus', 65, '2014-01-15');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'algebra', 77, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'physics', 85, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'chemistry', 76, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('regina', 'calculus', 61, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'algebra', 80, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'physics', 72, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'chemistry', 80, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('leo', 'calculus', 62, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'algebra', 74, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'physics', 79, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'chemistry', 84, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('alex', 'calculus', 77, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'algebra', 78, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'physics', 72, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'chemistry', 86, '2014-01-29');
INSERT INTO public.test_scores (student, subject, score, test_date) VALUES ('sonia', 'calculus', 70, '2014-01-29');


--
-- TOC entry 3410 (class 2606 OID 1850844)
-- Name: test_scores pk_test_scores; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.test_scores
    ADD CONSTRAINT pk_test_scores PRIMARY KEY (student, subject, test_date);


-- Completed on 2026-01-11 17:44:34

--
-- PostgreSQL database dump complete
--

\unrestrict XYhHprEBwLNrs6C0UTUr4KIJDbzpD3z6z4Wvdh7qeGQoX177FDq5aBzSJyIqvmD

