Click here to Skip to main content
16,009,728 members
Home / Discussions / Database
   

Database

 
GeneralRe: database problem Pin
Blue_Boy28-Apr-08 4:08
Blue_Boy28-Apr-08 4:08 
GeneralRe: database problem Pin
snouto28-Apr-08 4:12
snouto28-Apr-08 4:12 
GeneralRe: database problem Pin
snouto28-Apr-08 4:13
snouto28-Apr-08 4:13 
GeneralRe: database problem Pin
Blue_Boy28-Apr-08 4:16
Blue_Boy28-Apr-08 4:16 
GeneralRe: database problem Pin
snouto28-Apr-08 4:21
snouto28-Apr-08 4:21 
GeneralRe: database problem Pin
snouto28-Apr-08 4:15
snouto28-Apr-08 4:15 
GeneralRe: database problem Pin
Blue_Boy28-Apr-08 4:18
Blue_Boy28-Apr-08 4:18 
GeneralRe: database problem Pin
SimulationofSai25-Apr-08 8:54
SimulationofSai25-Apr-08 8:54 
Sounds simple. You need three tables here

Materials table : <br />
[Material ID]<br />
[Name]<br />
....<br />
[Dependent Material ID]<br />
<br />
(Dependent Material ID points recursively to Material ID. For example<br />
MaterialID Name DependentMaterialID<br />
1           a      NULL<br />
2           b      1<br />
3           c      2<br />
<br />
would mean that material 2 is dependent on (or the child of) material 1 and material 3 depends on material 2.<br />
)<br />
<br />
Students Table:<br />
[Student ID]<br />
[Name]<br />
...<br />
<br />
StudentMaterial Table:<br />
[Student ID]<br />
[Material ID]<br />
[Semester ID]<br />
[Pass/Fail]


Given this table design you've to implement you business logic, namely checking if a student has passed or failed, assigning previous semester's materials to the next semester etc must be implemented in a stored procedure or within your application.

This may not be the best I can offer, but with the limited view of the problem you've given me, this is the easiest design that comes to my mind.

SG
Cause is effect concealed. Effect is cause revealed.

GeneralRe: database problem Pin
leckey25-Apr-08 12:36
leckey25-Apr-08 12:36 
GeneralRe: database problem Pin
Ashfield28-Apr-08 6:46
Ashfield28-Apr-08 6:46 
QuestionSql Server Pin
senthilsstil24-Apr-08 20:04
senthilsstil24-Apr-08 20:04 
GeneralRe: Sql Server Pin
Blue_Boy24-Apr-08 22:15
Blue_Boy24-Apr-08 22:15 
Generalschedule a procedure to run daily in a given time. Pin
yesu prakash24-Apr-08 18:47
yesu prakash24-Apr-08 18:47 
GeneralRe: schedule a procedure to run daily in a given time. Pin
Blue_Boy24-Apr-08 19:03
Blue_Boy24-Apr-08 19:03 
GeneralRe: schedule a procedure to run daily in a given time. Pin
yesu prakash24-Apr-08 20:11
yesu prakash24-Apr-08 20:11 
GeneralRe: schedule a procedure to run daily in a given time. Pin
GuyThiebaut24-Apr-08 22:03
professionalGuyThiebaut24-Apr-08 22:03 
GeneralHelp performing a count Pin
AdamskiR24-Apr-08 5:22
AdamskiR24-Apr-08 5:22 
GeneralRe: Help performing a count Pin
Kschuler24-Apr-08 8:37
Kschuler24-Apr-08 8:37 
GeneralRe: Help performing a count Pin
AdamskiR24-Apr-08 22:55
AdamskiR24-Apr-08 22:55 
GeneralRe: Help performing a count Pin
Blue_Boy24-Apr-08 23:00
Blue_Boy24-Apr-08 23:00 
GeneralRe: Help performing a count Pin
AdamskiR24-Apr-08 23:09
AdamskiR24-Apr-08 23:09 
GeneralRe: Help performing a count Pin
Blue_Boy24-Apr-08 23:19
Blue_Boy24-Apr-08 23:19 
GeneralRe: Help performing a count Pin
AdamskiR24-Apr-08 23:25
AdamskiR24-Apr-08 23:25 
GeneralRe: Help performing a count Pin
Blue_Boy24-Apr-08 23:48
Blue_Boy24-Apr-08 23:48 
GeneralRe: Help performing a count Pin
AdamskiR25-Apr-08 0:05
AdamskiR25-Apr-08 0:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.