Hi Kalpana,
Sorry for thedelay in responding, I noticed thatyou are usingthe class I suggested.
As for the problemyou describedabove, may occurbythe fact that thefirst andin some casesthe lastcategorybeingtreated differently.
Please check the relationship of tables I see the catalog, code group is the same.