From 8c4135bfc5e46924671b4a088123128b4bc36739 Mon Sep 17 00:00:00 2001 From: Antonella Delmestri Date: Fri, 22 Nov 2024 10:03:58 +0000 Subject: [PATCH] Update 4d4_ncrascr_map_tbl_tmp.sql Added 1 unit to start_id --- sql_scripts/4d4_ncrascr_map_tbl_tmp.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql_scripts/4d4_ncrascr_map_tbl_tmp.sql b/sql_scripts/4d4_ncrascr_map_tbl_tmp.sql index 4283ad4..1c64a2f 100644 --- a/sql_scripts/4d4_ncrascr_map_tbl_tmp.sql +++ b/sql_scripts/4d4_ncrascr_map_tbl_tmp.sql @@ -15,7 +15,7 @@ CREATE TABLE {SOURCE_SCHEMA}.temp_visit_detail ); with cte0 AS ( - SELECT max_id as start_id from {TARGET_SCHEMA_TO_LINK}._max_ids + SELECT max_id + 1 as start_id from {TARGET_SCHEMA_TO_LINK}._max_ids WHERE lower(tbl_name) = 'max_of_all' ), cte3 as (