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

  1. student_id
  2. student_number
  3. student_name
  4. student_gender
  5. student_grade
  6. student dateofbirth
  7. student age

table2: visits

  1. studnet_id (referring , pulling student info table1)
  2. date_of_visit
  3. have_did_this_during_the_visit (dropdown)
  4. 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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -