Master Table Party Name PartyID A 112 B 113 E 114 F 115 Duplicate Table Party Name PartyID A 112 B 113 C 114 D 115 Updated Master Table PartyName PartyID Aas Alias 112 B as Alias 113 E 114 F 115
I have an insert statement INSERT INTO [dbo].[PartyName]
([PartyID],
[PartyFunctionTypeID],
[Surname],
[FirstName],
[MiddleName],
[MiddleName2],
[DisplayName],
[Nickname],
[Prefix],
[Suffix],
[Initials],
[StartDate],
[EndDate],
[CreatedBy],
[CreatedDate],
[ModifiedBy],
[ModifiedDate])
SELECT DISTINCT @masterPartyId,
[PartyFunctionTypeID]
[Surname],
[FirstName],
[MiddleName],
[MiddleName2],
[DisplayName],
[Nickname],
[Prefix],
[Suffix],
[Initials],
[StartDate],
[EndDate],
[CreatedBy],
[CreatedDate],
@modifiedBy,
GETDATE()
FROM partyname where---------------
I need statement after where clause which can update display name only exactly I mentioned in above table for this query I am working only on display name and partyID