Skip to content

Commit

Permalink
Update 4d4_ncrascr_map_tbl_tmp.sql
Browse files Browse the repository at this point in the history
Added 1 unit to start_id
  • Loading branch information
adelmestri committed Nov 22, 2024
1 parent cc7e7b9 commit 8c4135b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql_scripts/4d4_ncrascr_map_tbl_tmp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 8c4135b

Please sign in to comment.