Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Using TOP in an UPDATE statement.

$
0
0
[code language="sql"]UPDATE #TEMP_STP
Set Signature_Date = Top 1 D.Close_Date
From
[SOLICIT].[GTM_DOC] D, #TEMP_STP, [SOLICIT].[GTM_DOC_PROD] P
where
D.[SOLICITATION_ID] = P.[SOLICITATION_ID]<

Viewing all articles
Browse latest Browse all 3145

Trending Articles