Use the column checkboxes to build your query. Header columns sets/unsets all columns
SELECT ResGrpCod, ResGrpNam, Locked, DataSource, UserSign, Object, logInstanc, createDate, userSign2, updateDate, ResType, CostName1, CostVal1, CostName2, CostVal2, CostName3, CostVal3, CostName4, CostVal4, CostName5, CostVal5, CostName6, CostVal6, CostName7, CostVal7, CostName8, CostVal8, CostName9, CostVal9, CostName10, CostVal10, ResUoM FROM ARSB