Staging.Staging-to-FactK12StudentCounts_SpecEdExit
Overview & Purpose
Main Functions:
Key Calculations:
Data Transformations:
Expected Output:
Business Context
Business Rules:
Result Usage:
Execution Frequency:
Critical Periods:
Parameters
Parameter
Data Type
Purpose
Required
Source Tables
Staging.ProgramParticipationSpecialEducation
Name
Data Type
Business Purpose
Staging.K12Enrollment
Name
Data Type
Business Purpose
Temporary Tables
#vwRaces
Name
Data Type
Purpose/Calculation
#Facts
Name
Data Type
Purpose/Calculation
#uniqueLEAs
Name
Data Type
Purpose/Calculation
Potential Improvements
Error Handling
Performance
Code Structure
Execution Steps
Step 1: Initialize variables and clean up any existing temp tables
Step 2: Set up variables for date calculations and lookups
Step 3: Create and populate temporary tables
Step 4: Delete existing fact records for the specified school year and fact type
Step 5: Create and populate #Facts temp table with base data
Step 6: Create and populate #uniqueLEAs temp table
Step 7: Update #Facts with IDEA data
Step 8: Update #Facts with English Learner data
Step 9: Insert data from #Facts into RDS.FactK12StudentCounts
Step 10: Rebuild indexes on fact table
PreviousStaging.Staging-to-FactK12StudentCounts_NeglectedOrDelinquentNextStaging.Staging-to-FactK12StudentCourseSections
Was this helpful?