143: -- both region code and attribute code is not null
144: -- find the graph number for this measure
145:
146: SELECT attribute5 INTO x_graph_no 147: FROM ak_region_items 148: WHERE region_code = x_region_code
149: AND ATTRIBUTE_CODE = l_attribute_code;
150:
151: IF ( x_graph_no IS NULL) THEN