When running following query I get ad additional column by the name of "Seq". Is there a way to avvoid that. I need to the put query result into a temp table. If not, how should I define this field?Thank you.SET @SQLSTRING = 'SELECT *FROM(SELECT *,ROW_NUMBER() OVER (PARTITION BY SHKCOO,SHDOCO ORDER BY SHUPMJ DESC, SHTDAY DESC) AS Seq FROM OPENQUERY( AS400SRV_MSDASQL, ''select shkcoo, shdoco, shdcto, shmcu, shan8, shshan, shaft, wajobn, shurcd, shupmj, shtday, case when shupmj > 0 then date(digits(decimal(shupmj + 1900000,7,0))) else Null end as date_field, case when substring(shtday,1,2) < 25 then concat(rtrim(char(substring(shtday,1,2))),CONCAT('''':'''',CONCAT(rtrim(char(substring(shtday,3,2))),Concat('''':'''',(rtrim(char(substring(shtday,5,2)))))))) else concat(rtrim(char(substring(shtday,1,1))),CONCAT('''':'''',CONCAT(rtrim(char(substring(shtday,2,2))),Concat('''':'''',(rtrim(char(substring(shtday,4,2)))))))) end as time_fieldfrom VGISOEDTA.F42019 as f1left join (select distinct wajob, wajobn from VGIWRQLIB.WRQASI) as f2 on f2.wajob = f1.shvr01where concat(shupmj,shtday) >= ''''' + @JdeTimeStamp + ''''' order by shkcoo, shdoco ''))t WHERE Seq = 1'