Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2022 02:30 PM
do you have there maybe unique id? so you could run easy MERGE (upsert):
MERGE INTO your_table USING your_new_view
ON your_table .uniqueId = your_new_view.uniqueId AND eventDate >= {} AND eventDate < {}
WHEN NOT MATCHED
THEN INSERT *
WHEN MATCHED
THEN UPDATE *
My blog: https://databrickster.medium.com/