SELECT
  [ACTINDX] AS [actindx],
  RTRIM([ACTNUMBR_1]) AS [actnumbr_1],
  RTRIM([ACTNUMBR_2]) AS [actnumbr_2],
  RTRIM([ACTNUMBR_3]) AS [actnumbr_3],
  RTRIM([ACTNUMBR_4]) AS [actnumbr_4],
  RTRIM([ACTNUMBR_5]) AS [actnumbr_5],
  RTRIM([ACTNUMBR_6]) AS [actnumbr_6],
  RTRIM([ACTNUMBR_7]) AS [actnumbr_7],
  RTRIM([ACTNUMBR_8]) AS [actnumbr_8],
  RTRIM([ACTALIAS]) AS [actalias],
  RTRIM([MNACSGMT]) AS [mnacsgmt],
  [ACCTTYPE] AS [accttype],
  RTRIM([ACTDESCR]) AS [actdescr],
  [PSTNGTYP] AS [pstngtyp],
  [ACCATNUM] AS [accatnum],
  [ACTIVE] AS [active],
  [TPCLBLNC] AS [tpclblnc],
  [DECPLACS] AS [decplacs],
  [FXDORVAR] AS [fxdorvar],
  [BALFRCLC] AS [balfrclc],
  [DSPLKUPS] AS [dsplkups],
  [CNVRMTHD] AS [cnvrmthd],
  [HSTRCLRT] AS [hstrclrt],
  [NOTEINDX] AS [noteindx],
  [CREATDDT] AS [creatddt],
  [MODIFDT] AS [modifdt],
  RTRIM([USERDEF1]) AS [userdef1],
  RTRIM([USERDEF2]) AS [userdef2],
  [PostSlsIn] AS [postslsin],
  [PostIvIn] AS [postivin],
  [PostPurchIn] AS [postpurchin],
  [PostPRIn] AS [postprin],
  [ADJINFL] AS [adjinfl],
  [INFLAREV] AS [inflarev],
  [INFLAEQU] AS [inflaequ],
  [ACCTENTR] AS [acctentr],
  RTRIM([USRDEFS1]) AS [usrdefs1],
  RTRIM([USRDEFS2]) AS [usrdefs2],
  [Clear_Balance] AS [clear_balance],
  [DEX_ROW_TS] AS [dex_row_ts],
  [DEX_ROW_ID] AS [dex_row_id]
FROM [GPSERVER].[CHG].[dbo].[GL00100]
