我遇到以下問題。你能告訴我什麼是EMD_1.*
?。*在SQL Server 2008中執行t-sql語句
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
意味着從表'EMD_1'的所有列? –
或者你問的結果集是什麼樣子,由於分區? – Mike