Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi guys,

I have one scenario, where i have to updated ceritificate records.

for eg:
candidate is registered for C1.
And from C1 he can upgrade to C2.
And from C1 or C2, he can upgrade to C3.

so, in database table i have CertificateID, and added one morecolumn for, UpgradeToCertificateID.

its looks like, this:

What I have tried:

-----------------------------------------------------
CandidateID | CertificatID | UpgradeToCertificatedID |
-----------------------------------------------------
     9      |   c1         |   null                  |
-----------------------------------------------------
     9      |   c2         |  c1                     |
-----------------------------------------------------
     9      |   c3         |  c2                     |
-----------------------------------------------------


Every certificate have some modules. And I have separate table for modules.

Now, if i update modules in c1, i want to update c2 and c3 modules,
or if i update modules in c2, i want to update c1 and c3 modules,
or if i update modules in c3, i want to update c1 and c2 modules.

can any one please help me, how can i do...

plz give your suggestions/help.


Thanks
Posted
Updated 13-Aug-16 22:30pm
Comments
OriginalGriff 14-Aug-16 4:46am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Perhaps if you give us a sample of your before and after data it might help?
And if you've tried anything at all, show us that, and explain why it doesn't work.
Use the "Improve question" widget to edit your question and provide better information.

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