php - mysql db normalization help required -
please forgive me ive been confused , need in normalization of next mysql database (will work on along php). if not allowed post ignore :)
- i've need record large number students visit library in order document , create analysis , reports later on.
- these visits hold lots of data , criteria each student single visit, , filled different supervisor people because student visit more 1 section.
- hence, there limitations entry , disallowing parts of form accessed users...etc.
- my plan have single form initial student information , select boxes, radio, checkboxes, , notes free text, each visit, mentioned, using php frontend
this have in mind, 2 main tables + other smaller tables hold select boxes data foreign keys.
table1: students
- student_id
- student_number
- student_name
- student_gender
- student_grade
- student dateofbirth
- student age
table2: visits
- studnet_id (referring , pulling student info table1)
- date_of_visit
- have_did_this_during_the_visit (dropdown)
- psychological_reaction (checkboxes) 5 was_wearing_well (yes not selectbox)
and on, more 50 criteria measure each visit
this way, have 2 forms, 1 add student, , 1 deal visits...
although, visits form/page big.. , here comes question, ok? these data of visits table can exceed 40 or 50 fields or guys advise different approach?
thanks in advanced
have_did_this_during_the_visit (dropdown).
for need 1 table table have pk anf fk on visits table's primary key
psychological_reaction (checkboxes) 5 was_wearing_well (yes not selectbox)
for need 1 table table have pk anf fk on visits table's primary key
table2: visits
visit_id studnet_id (referring , pulling student info table1) date_of_visit have_did_this_during_the_visit (dropdown) psychological_reaction (checkboxes) 5 was_wearing_well (yes not selectbox)
have_did_this_during_the_visit
id visit_id dropdown vaues
psychological_reaction
id visit_id checkboxes vaues
Comments
Post a Comment