Answers for "SQL MERGE USING WHERE"

SQL
0

sql merge statement

MERGE LoginTypes T
        USING (SELECT 'System' as Description) S
        ON(S.Description = T.Description)
WHEN NOT MATCHED BY TARGET
    THEN INSERT(Description, CreatedTimestamp, LastUpdatedTimestamp)
VALUES('System', getdate(), getdate());
Posted by: Guest on July-16-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language