Connecting Tech Pros Worldwide Help | Site Map

How can i create table for academic details

luckysanj's Avatar
Member
 
Join Date: May 2009
Location: Nepal
Posts: 62
#1: May 18 '09
I have problem on creating academic table.
I need to input from html form to different academic table.
But how to create academic table for my requirement.

I have different leve of student.
Like

SLC Borard Pass Year Division Percentage

Intermediate Pass Year Division Percentage

Bachelor Pass Year Division Percentage

Master Pass Year Division Percentage


In the above table every filed need pass year, division, percentage. So how can i manage this table on database.

Plz help me. Ur help will be appereciated
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,735
#2: May 18 '09

re: How can i create table for academic details


Hi.

Assuming, I am understanding you correctly, this could be solved using a one-to-many relationship (1:N).

Meaning that you would create two tables.
One to contain all the common data (pass, year, etc...), and a second one to contain the student levels.

Consider this:
Expand|Select|Wrap|Line Numbers
  1. StudentData:
  2. +----+------+------+--------+
  3. | ID | Type | Year | etc... |
  4. +----+------+------+--------+
  5. |  1 |    1 | 2009 | ...    |
  6. |  2 |    2 | 2005 | ...    |
  7. |  3 |    1 | 2007 | ...    |
  8. |  4 |    3 | 2002 | ...    |
  9. +----+------+------+--------+
  10.  
  11. StudentType:
  12. +----+--------------+
  13. | ID | Name         |
  14. +----+--------------+
  15. |  1 | Intermediate |
  16. |  2 | Bachelor     |
  17. |  3 | Master       |
  18. +----+--------------+
Where the "Type" field in the Data table references the ID field of the Type table.

Does that answer your question?
If not, please elaborate.
luckysanj's Avatar
Member
 
Join Date: May 2009
Location: Nepal
Posts: 62
#3: Jul 26 '09

re: How can i create table for academic details


Thank You .
Reply