I'm new to mysql! have absolutely basic knowledge like creating tables only. I'm in the process of creating a website with online examinations and results. My fields include
t_id, t_name(subject),ru_id, ru_name, ru_skl, hs_user, hsu_skl
Legend: t is test. ru is registered users. skl is school. hs is high scored. hsu is high scored user.
I don't know how to arrange the fields in tables and to establish a relationship such that the following conditions are met:
(1) each test can have multiple users registering, for the same test_id.
(2) highest scored user should be obtained and entered into table, for the respective test_id.
(3) highest scored user's school should also be entered into table, for the respective test_id.
(4) conditions 2 n 3 should be retrievable so as to process using php for monthly toppers list, etc.
Kindly require ur help! :)