Company | CustomerNumber | CustomerName | City | State | Phone
-----------------------------------------------------------------------------------
AB | 0001234 | ABC Company | Smalltown | Anywhere | 2135551212
AB | 0002345 | Umbrella Corp | Smalltown | Anywhere | 2135551213
AB | 0003456 | MegaCorp | Smalltown | Anywhere | 2135551214
CD | 0001234 | Jake's Widgets | Smalltown | Anywhere | 2135551313
CD | 0005678 | Jane's Doohickies | Smalltown | Anywhere | 2135551314
CD | 0006789 | Frank's Thingamabobs | Smalltown | Anywhere | 2135551315
Company | CustomerNumber | CustomerName | City | State | Phone |
---|---|---|---|---|---|
AB | 0001234 | ABC Company | Smalltown | Anywhere | 2135551212 |
AB | 0002345 | Umbrella Corp | Smalltown | Anywhere | 2135551213 |
AB | 0003456 | MegaCorp | Smalltown | Anywhere | 2135551214 |
CD | 0001234 | Jake's Widgets | Smalltown | Anywhere | 2135551313 |
CD | 0005678 | Jane's Doohickies | Smalltown | Anywhere | 2135551314 |
CD | 0006789 | Frank's Thingamabobs | Smalltown | Anywhere | 2135551315 |
INSERT: (ISNULL(Production_CustomerNumber) && !ISNULL(Staging_CustomerNumber)) && (ISNULL(Production_Company) && !ISNULL(Staging_Company))
INSERT: (ISNULL(Production_CustomerNumber) &&
!ISNULL(Staging_CustomerNumber)) && (ISNULL(Production_Company) &&
!ISNULL(Staging_Company))
UPDATE: (!ISNULL(Production_CustomerNumber) && !ISNULL(Staging_CustomerNumber)) && (!ISNULL(Production_Company) && !ISNULL(Staging_Company))
UPDATE: (!ISNULL(Production_CustomerNumber) &&
!ISNULL(Staging_CustomerNumber)) && (!ISNULL(Production_Company) &&
!ISNULL(Staging_Company))
DELETE: (!ISNULL(Production_CustomerNumber) && ISNULL(Staging_CustomerNumber)) && (!ISNULL(Production_Company) && ISNULL(Staging_Company))
DELETE: (!ISNULL(Production_CustomerNumber) &&
ISNULL(Staging_CustomerNumber)) && (!ISNULL(Production_Company) &&
ISNULL(Staging_Company))