Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Am creating a school management system, but am locked somewhere. I don't know how to enter every students' name,subject and its scores separately
And I think the problem is all from the database.
I have a table with these fields
(Name, Class, Subject, examscore and class score).
Let's say I will first insert
Jack's name, his class, Subject (English), his exams score, class score.

Secondly, when I try to insert another scores for Mathematics, it will change the first subject i inserted to Mathematics.

I need your help
Posted
Comments
Thomas Daniels 16-Jan-16 9:13am    
Can you please provide the code you are using to perform the insertions?
Richmond Boateng 16-Jan-16 9:18am    
As for inserting, am able to do that but my problem is how to create a table which can accumulate as much as five subjects and its scores respectively.
Let's say a table which will permit me to insert every student's name,class and all the five subjects and its class score and exams score

1 solution

If I understand your question correctly you don't need one table, you need several. Each table should contain different entities, for example
- Person, containing name, class etc
- Subject containing name and so on
- Grade containing information about individual grades for persons and so on
I suggest going through Database normalization - Wikipedia, the free encyclopedia[^] before creating the tables.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Jan-16 14:04pm    
5ed.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900