次のステートメントに問題があります。とは何か教えていただけます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