Skip to content

Commit

Permalink
Merge pull request #179 from data-to-insight/feat/extract_SQL
Browse files Browse the repository at this point in the history
cla_episodes join fix
  • Loading branch information
robjharrison authored Jan 2, 2024
2 parents 4cfd382 + 9372f19 commit abcaa3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/cms_extract/create_ssd.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ SELECT
FROM
Child_Social.FACT_CARE_EPISODES AS fce
JOIN
Child_Social.FACT_CLA AS fc ON fce.FACT_CARE_EPISODES_ID = fc.fact_cla_id
Child_Social.FACT_CLA AS fc ON fce.fact_cla_id = fc.FACT_CLA_ID

-- Removed 24/12/23
--JOIN
Expand Down
3 changes: 1 addition & 2 deletions tools/cms_extract/create_ssd_tmp_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1825,8 +1825,7 @@ SELECT
FROM
Child_Social.FACT_CARE_EPISODES AS fce
JOIN
Child_Social.FACT_CLA AS fc ON fce.FACT_CARE_EPISODES_ID = fc.fact_cla_id

Child_Social.FACT_CLA AS fc ON fce.fact_cla_id = fc.FACT_CLA_ID

-- Create index(es)
CREATE NONCLUSTERED INDEX idx_clae_cla_worker_id ON #ssd_cla_episodes (clae_cla_worker_id);
Expand Down

0 comments on commit abcaa3b

Please sign in to comment.