# I have a snowflake table. This table has to be compared with an SQL table. If there are any matching IDs, the entire row of that ID should be updated in SQL. If not, insert entire rows to SQL(Basically, upsertion of SQl table).Can this be implemented?

**URL:** <https://matillioncommunity.discourse.group/t/i-have-a-snowflake-table-this-table-has-to-be-compared-with-an-sql-table-if-there-are-any-matching-ids-the-entire-row-of-that-id-should-be-updated-in-sql-if-not-insert-entire-rows-to-sql-basically-upsertion-of-sql-table-can-this-be-implemented/2064>\
**Category:** Matillion ETL\
**Created:** [February 17, 2023, 2:51pm UTC](https://matillioncommunity.discourse.group/t/i-have-a-snowflake-table-this-table-has-to-be-compared-with-an-sql-table-if-there-are-any-matching-ids-the-entire-row-of-that-id-should-be-updated-in-sql-if-not-insert-entire-rows-to-sql-basically-upsertion-of-sql-table-can-this-be-implemented/2064 "2023-02-17T14:51:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilswarrier](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@dilswarrier](https://matillioncommunity.discourse.group/u/dilswarrier)\
**Post date:** [February 17, 2023, 2:51pm UTC](https://matillioncommunity.discourse.group/t/i-have-a-snowflake-table-this-table-has-to-be-compared-with-an-sql-table-if-there-are-any-matching-ids-the-entire-row-of-that-id-should-be-updated-in-sql-if-not-insert-entire-rows-to-sql-basically-upsertion-of-sql-table-can-this-be-implemented/2064/1 "2023-02-17T14:51:49Z")

</div>

I have a snowflake table. This table has to be compared with an SQL table. If there are any matching IDs, the entire row of that ID should be updated in SQL. If not, insert entire rows to SQL(Basically, upsertion of SQl table).Can this be implemented?

---

<div class="post-metadata">

**Author:** ![AnudeepK](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@AnudeepK](https://matillioncommunity.discourse.group/u/AnudeepK)\
**Post date:** [March 3, 2023, 4:17am UTC](https://matillioncommunity.discourse.group/t/i-have-a-snowflake-table-this-table-has-to-be-compared-with-an-sql-table-if-there-are-any-matching-ids-the-entire-row-of-that-id-should-be-updated-in-sql-if-not-insert-entire-rows-to-sql-basically-upsertion-of-sql-table-can-this-be-implemented/2064/2 "2023-03-03T04:17:17Z")

</div>

My understanding is Matillion is built for cloud data warehouses. It is not capable of working on on-premise DBs like SQL Server and perform actions on it. You can do it the other way around , update a Snowflake table based on changes in SQL Server table, but not in the direction you are hoping for.

---

<div class="post-metadata">

**Author:** ![Michael](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@Michael](https://matillioncommunity.discourse.group/u/Michael)\
**Post date:** [March 6, 2023, 1:53pm UTC](https://matillioncommunity.discourse.group/t/i-have-a-snowflake-table-this-table-has-to-be-compared-with-an-sql-table-if-there-are-any-matching-ids-the-entire-row-of-that-id-should-be-updated-in-sql-if-not-insert-entire-rows-to-sql-basically-upsertion-of-sql-table-can-this-be-implemented/2064/3 "2023-03-06T13:53:56Z")

</div>

Matillion calls this process of writing data to a SQL Server "Sync" or "Sync back". I have seen that they offer a training on their Academy now: https://academy.matillion.com/certifications/a135e194-9b14-11ed-9e2e-067360dfb065
