require unique location_id, target_date in sql