For 1JA, i have 3 ID since 1JB is not in table 2 and ID are all differentFor 1HD, i have 1 ID since 1HC is not in table 2 and ID is the same

It is not always the smallest number of truck that is regrouping under. Like 1JB regroup under 1JA and 1HC regroup under 1HD.In fact, all trucks that is not listed in table 2 will regroup like all 1J% truck regroup under 1JA and all 1H% under 1HD.