Fix wrong use of table alias with SEGMENT_NAME.