我对以下陈述有疑问。你能告诉我是什么EMD_1.*
吗?
WITH EMD as (
SELECT
,attribute1
,attribute2
,attribute3
,ROW_NUMBER() OVER (PARTITION BY attribute1
ORDER BY attribute3) as _RN
,attribute4
,attribute5
FROM
table_name1
)
select
EMD_1.*
,isnull(EMD_1.attribute1,'_profitcenter nd') as ProfitCenterName
,EMD_1.attribiute2 as PC_ID
FROM
EMD as EMD_1
JOIN
table_name2