You can now get the cbse affiliation codes of various codes easily.For that you just have to go click this link. If you want you can also download the notepad containing all the details and affiliation codes from here.
Using this affiliation code you can get the results of all the students in a school which would be more useful and easy for comparison .you can get the school wise result here.
If you are not able to find the affiliation code of any school .Please submit a comment with the details of the school.(name,state,district)