select cp.pk_id, cp.settle_date, cd.settle_cycle, cd.start_period, cd.end_period, cd.is_settle, cd.publish_date, cd.is_publish, cd.grant_date, cd.is_grant, cd.withdrawal_date, cd.is_withdrawal, cd.is_retry, cd.pk_country from cu_member_settle_period cp inner join cu_member_settle_period_detail cd on cp.pk_id >= cd.start_period and cp.pk_id <= cd.end_period where cp.del_flag = 0 and cd.del_flag = 0