Now i must add information about the subjects he takes. What is the best way to do that? The subjects could be modified at any time, more subjects may be added or old subjects deleted.
I was thinkign of having a separate table Subjects(sub1, sub2, sub3) etc. and somehow relate it to the profile.
Also, let the first profile be named profile 1 (say). There can also exist another profile (profile 2) for the same student with just the subjects being different from profile 1.
Please tell me is the best way to design some thing like this? Also how can i link the two tables etc. Thanks a lot for ur help.
You should create a primary key for the table. Suppose you call it "student_id" It can just be a running number but can be anything as long as it is unique. This must be unique for each row.
You then create another table, subjects which also has the subject_id and a subject (and whatever other columns you need. Then for each student add a row using the same student_id and a subject. Add as many rows for each subject as you like.
Don't want to confuse you at this point, but the subjects itself should be in its own table, with a subject_id, and subject_name/description. The above table should have a student_id and a subject_id.