Define table#each_sub_records.