-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from CEDStandards/develop
V11.0.0.0 Release Candidate
- Loading branch information
Showing
374 changed files
with
360,289 additions
and
689,467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
src/CEDS-Data-Warehouse-Project/CEDS-Data-Warehouse-Project.sqlproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build"> | ||
<Sdk Name="Microsoft.Build.Sql" Version="0.1.9-preview" /> | ||
<PropertyGroup> | ||
<Name>CEDS-Data-Warehouse-Project</Name> | ||
<ProjectGuid>{58743D1F-1C2C-4278-9E86-DB7E0B17BF8A}</ProjectGuid> | ||
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql150DatabaseSchemaProvider</DSP> | ||
<ModelCollation>1033, CI</ModelCollation> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Folder Include="Security" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ArtifactReference Include="$(DacPacRootPath)\Extensions\Microsoft\SQLDB\Extensions\SqlServer\150\SqlSchemas\master.dacpac" Condition="'$(NetCoreBuild)' != 'true'"> | ||
<SuppressMissingDependenciesErrors>False</SuppressMissingDependenciesErrors> | ||
<DatabaseVariableLiteralValue>master</DatabaseVariableLiteralValue> | ||
</ArtifactReference> | ||
<ArtifactReference Include="$(SystemDacpacsLocation)\SystemDacpacs\150\master.dacpac" Condition="'$(NetCoreBuild)' == 'true'"> | ||
<SuppressMissingDependenciesErrors>False</SuppressMissingDependenciesErrors> | ||
<DatabaseVariableLiteralValue>master</DatabaseVariableLiteralValue> | ||
</ArtifactReference> | ||
</ItemGroup> | ||
<Target Name="BeforeBuild"> | ||
<Delete Files="$(BaseIntermediateOutputPath)\project.assets.json" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CREATE FUNCTION [RDS].[Get_Age]( | ||
@birthDate DATETIME = NULL | ||
, @asOfDate DATETIME = NULL | ||
) RETURNS INT | ||
|
||
BEGIN | ||
RETURN | ||
CASE | ||
WHEN @birthDate IS NULL THEN -1 | ||
WHEN (CONVERT(INT,CONVERT(char(8), ISNULL(@asOfDate, GETDATE()),112))-CONVERT(char(8), ISNULL(@birthDate, GETDATE()),112))/10000 <= 0 THEN -1 | ||
ELSE CONVERT(VARCHAR(5), (CONVERT(INT,CONVERT(char(8), ISNULL(@asOfDate, GETDATE()),112))-CONVERT(char(8), ISNULL(@birthDate, GETDATE()),112))/10000) | ||
END | ||
END | ||
|
||
GO | ||
|
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeAeStudentEnrollmentRaces.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeAeStudentEnrollmentRaces] ( | ||
[BridgeFactAeStudentEnrollmentRaceId] INT IDENTITY (1, 1) NOT NULL, | ||
[FactAeStudentEnrollmentId] INT NOT NULL, | ||
[RaceId] INT NOT NULL, | ||
CONSTRAINT [PK_BridgeAeStudentEnrollmentRaces] PRIMARY KEY CLUSTERED ([BridgeFactAeStudentEnrollmentRaceId] ASC), | ||
CONSTRAINT [FK_BridgeAeStudentEnrollmentRaces_FactAeStudentEnrollmentId] FOREIGN KEY ([FactAeStudentEnrollmentId]) REFERENCES [RDS].[FactAeStudentEnrollments] ([FactAeStudentEnrollmentId]), | ||
CONSTRAINT [FK_BridgeAeStudentEnrollmentRaces_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeAeStudentEnrollmentRaces_FactAeStudentEnrollmentId] | ||
ON [RDS].[BridgeAeStudentEnrollmentRaces]([FactAeStudentEnrollmentId] ASC); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeAeStudentEnrollmentRaces_RaceId] | ||
ON [RDS].[BridgeAeStudentEnrollmentRaces]([RaceId] ASC); | ||
|
||
|
||
GO | ||
|
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12ProgramParticipationRaces.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12ProgramParticipationRaces] ( | ||
[BridgeK12ProgramParticipationId] BIGINT IDENTITY (1, 1) NOT NULL, | ||
[FactK12ProgramParticipationId] BIGINT CONSTRAINT [DF_BridgeK12ProgramParticipationRaces_FactK12ProgramParticipationId] DEFAULT ((-1)) NOT NULL, | ||
[RaceId] INT CONSTRAINT [DF_BridgeK12ProgramParticipationRaces_RaceId] DEFAULT ((-1)) NOT NULL, | ||
CONSTRAINT [PK_BridgeK12ProgramParticipations] PRIMARY KEY CLUSTERED ([BridgeK12ProgramParticipationId] ASC) WITH (DATA_COMPRESSION = PAGE), | ||
CONSTRAINT [FK_BridgeK12ProgramParticipationRaces_FactK12ProgramParticipations] FOREIGN KEY ([FactK12ProgramParticipationId]) REFERENCES [RDS].[FactK12ProgramParticipations] ([FactK12ProgramParticipationId]), | ||
CONSTRAINT [FK_BridgeK12ProgramParticipationRaces_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12ProgramParticipationRaces_FactK12ProgramParticipations] | ||
ON [RDS].[BridgeK12ProgramParticipationRaces]([FactK12ProgramParticipationId] ASC) WITH (DATA_COMPRESSION = PAGE); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12ProgramParticipationRaces_RaceId] | ||
ON [RDS].[BridgeK12ProgramParticipationRaces]([RaceId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE); | ||
|
||
|
||
GO | ||
|
19 changes: 19 additions & 0 deletions
19
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12SchoolGradeLevels.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CREATE TABLE [RDS].[BridgeK12SchoolGradeLevels] ( | ||
[BridgeK12SchoolGradeLevelId] INT IDENTITY (1,1) NOT NULL, | ||
[K12SchoolId] INT CONSTRAINT [DF_BridgeK12SchoolGradeLevels_K12SchoolId] DEFAULT ((-1)) NOT NULL, | ||
[GradeLevelId] INT CONSTRAINT [DF_BridgeK12SchoolGradeLevels_GradeLevelId] DEFAULT ((-1)) NOT NULL, | ||
CONSTRAINT [PK_BridgeK12SchoolGradeLevels] PRIMARY KEY CLUSTERED ([BridgeK12SchoolGradeLevelId] ASC), | ||
CONSTRAINT [FK_BridgeK12SchoolGradeLevels_GradeLevelId] FOREIGN KEY ([GradeLevelId]) REFERENCES [RDS].[DimGradeLevels] ([DimGradeLevelId]), | ||
CONSTRAINT [FK_BridgeK12SchoolGradeLevels_K12SchoolId] FOREIGN KEY ([K12SchoolId]) REFERENCES [RDS].[DimK12Schools] ([DimK12SchoolId]) | ||
); | ||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12SchoolGradeLevels_DimK12Schools] | ||
ON [RDS].[BridgeK12SchoolGradeLevels]([K12SchoolId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12SchoolGradeLevels_GradeLevelId] | ||
ON [RDS].[BridgeK12SchoolGradeLevels]([GradeLevelId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE); | ||
GO |
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentAssessmentAccommodations.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentAssessmentAccommodations] ( | ||
[FactK12StudentAssessmentAccommodationId] INT IDENTITY (1, 1) NOT NULL, | ||
[FactK12StudentAssessmentId] INT CONSTRAINT [DF_BridgeK12StudentAssessmentAccommodations_FactK12StudentAssessmentId] DEFAULT ((-1)) NOT NULL, | ||
[AssessmentAccommodationId] INT CONSTRAINT [DF_BridgeK12StudentAssessmentAccommodations_AssessmentAccommodationId] DEFAULT ((-1)) NOT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentAssessmentAccommodations] PRIMARY KEY CLUSTERED ([FactK12StudentAssessmentAccommodationId] ASC), | ||
CONSTRAINT [FK_BridgeK12StudentAssessmentAccommodations_AssessmentAccommodationId] FOREIGN KEY ([AssessmentAccommodationId]) REFERENCES [RDS].[DimAssessmentAccommodations] ([DimAssessmentAccommodationId]), | ||
CONSTRAINT [FK_BridgeK12StudentAssessmentAccommodations_FactK12StudentAssessmentId] FOREIGN KEY ([FactK12StudentAssessmentId]) REFERENCES [RDS].[FactK12StudentAssessments] ([FactK12StudentAssessmentId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentAccommodations_FactK12StudentAssessmentId] | ||
ON [RDS].[BridgeK12StudentAssessmentAccommodations]([FactK12StudentAssessmentId] ASC); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentAccommodations_AssessmentAccommodationId] | ||
ON [RDS].[BridgeK12StudentAssessmentAccommodations]([AssessmentAccommodationId] ASC); | ||
|
||
|
||
GO | ||
|
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentAssessmentRaces.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentAssessmentRaces] ( | ||
[BridgeK12StudentAssessmentRaceId] INT IDENTITY (1, 1) NOT NULL, | ||
[FactK12StudentAssessmentId] INT NOT NULL, | ||
[RaceId] INT NOT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentAssessmentRaces] PRIMARY KEY CLUSTERED ([BridgeK12StudentAssessmentRaceId] ASC) WITH (FILLFACTOR = 80), | ||
CONSTRAINT [FK_BridgeK12StudentAssessmentRaces_FactK12StudentAssessments] FOREIGN KEY ([FactK12StudentAssessmentId]) REFERENCES [RDS].[FactK12StudentAssessments] ([FactK12StudentAssessmentId]), | ||
CONSTRAINT [FK_BridgeK12StudentAssessmentRaces_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentRaces_RaceId] | ||
ON [RDS].[BridgeK12StudentAssessmentRaces]([RaceId] ASC) WITH (FILLFACTOR = 80); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentAssessmentRaces_FactK12StudentAssessments] | ||
ON [RDS].[BridgeK12StudentAssessmentRaces]([FactK12StudentAssessmentId] ASC) WITH (FILLFACTOR = 80); | ||
|
||
|
||
GO | ||
|
35 changes: 35 additions & 0 deletions
35
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentCourseSectionK12Staff.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentCourseSectionK12Staff] ( | ||
[BridgeK12StudentCourseSectionK12StaffId] INT IDENTITY (1, 1) NOT NULL, | ||
[K12StaffId] BIGINT CONSTRAINT [DF_CONSTRAINT [DF_BridgeK12StudentCourseSectionK12Staff_K12StaffId] DEFAULT ((-1)) NOT NULL, | ||
[FactK12StudentCourseSectionId] BIGINT CONSTRAINT [DF_CONSTRAINT [DF_BridgeK12StudentCourseSectionK12Staff_FactK12StudentCourseSectionId] DEFAULT ((-1)) NOT NULL, | ||
[TeacherOfRecord] BIT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentCourseSectionK12Staff] PRIMARY KEY CLUSTERED ([BridgeK12StudentCourseSectionK12StaffId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE), | ||
CONSTRAINT [FK_BridgeK12StudentCourseSectionK12Staff_FactK12StudentCourseSections] FOREIGN KEY ([FactK12StudentCourseSectionId]) REFERENCES [RDS].[FactK12StudentCourseSections] ([FactK12StudentCourseSectionId]), | ||
CONSTRAINT [FK_BridgeK12StudentCourseSectionK12Staff_K12Staff] FOREIGN KEY ([K12StaffId]) REFERENCES [RDS].[DimPeople] ([DimPersonId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionK12Staff_K12StaffId] | ||
ON [RDS].[BridgeK12StudentCourseSectionK12Staff]([K12StaffId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionK12Staff_FactK12StudentCourseSections] | ||
ON [RDS].[BridgeK12StudentCourseSectionK12Staff]([FactK12StudentCourseSectionId] ASC) WITH (FILLFACTOR = 80, DATA_COMPRESSION = PAGE); | ||
|
||
|
||
GO | ||
|
||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'See the CEDS_GlobalId, CEDS_Element, CEDS_URL, and CEDS_Def_Desc extended properties.' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord'; | ||
GO | ||
EXEC sys.sp_addextendedproperty @name=N'CEDS_Def_Desc', @value=N'Staff member who has a Teacher of Record responsibility for a Class Section based upon the state''s definition of Teacher of Record.' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord'; | ||
GO | ||
EXEC sys.sp_addextendedproperty @name=N'CEDS_Element', @value=N'Teacher of Record' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord'; | ||
GO | ||
EXEC sys.sp_addextendedproperty @name=N'CEDS_GlobalId', @value=N'000647' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord'; | ||
GO | ||
EXEC sys.sp_addextendedproperty @name=N'CEDS_URL', @value=N'https://ceds.ed.gov/CEDSElementDetails.aspx?TermId=21649' , @level0type=N'SCHEMA',@level0name=N'RDS', @level1type=N'TABLE',@level1name=N'BridgeK12StudentCourseSectionK12Staff', @level2type=N'COLUMN',@level2name=N'TeacherOfRecord'; | ||
GO |
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentCourseSectionRaces.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentCourseSectionRaces] ( | ||
[BridgeK12StudentCourseSectionRaceId] BIGINT IDENTITY (1, 1) NOT NULL, | ||
[FactK12StudentCourseSectionId] BIGINT CONSTRAINT [DF_BridgeK12StudentCourseSectionRaces_FactK12StudentCourseSectionId] DEFAULT ((-1)) NOT NULL, | ||
[RaceId] INT CONSTRAINT [DF_BridgeK12StudentCourseSectionRaces_RaceId] DEFAULT ((-1)) NOT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentCourseSectionRace] PRIMARY KEY CLUSTERED ([BridgeK12StudentCourseSectionRaceId] ASC), | ||
CONSTRAINT [FK_BridgeK12StudentCourseSectionRace_FactK12StudentCourseSections] FOREIGN KEY ([FactK12StudentCourseSectionId]) REFERENCES [RDS].[FactK12StudentCourseSections] ([FactK12StudentCourseSectionId]), | ||
CONSTRAINT [FK_BridgeK12StudentCourseSectionRace_RaceId] FOREIGN KEY ([RaceId]) REFERENCES [RDS].[DimRaces] ([DimRaceId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionRaces_RaceId] | ||
ON [RDS].[BridgeK12StudentCourseSectionRaces]([RaceId] ASC); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionRaces_FactK12StudentCourseSectionId] | ||
ON [RDS].[BridgeK12StudentCourseSectionRaces]([FactK12StudentCourseSectionId] ASC); | ||
|
||
|
||
GO | ||
|
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentCourseSectionsCipCodes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentCourseSectionsCipCodes] ( | ||
[BridgeK12StudentCourseSectionsCipCodeId] BIGINT IDENTITY (1, 1) NOT NULL, | ||
[FactK12StudentCourseSectionId] BIGINT CONSTRAINT [DF_BridgeK12StudentCourseSectionsCipCodes_FactK12StudentCourseSectionId] DEFAULT ((-1)) NOT NULL, | ||
[CipCodeId] INT CONSTRAINT [DF_BridgeK12StudentCourseSectionsCipCodes_CipCodeId] DEFAULT ((-1)) NOT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentCourseSectionsCipCodes] PRIMARY KEY CLUSTERED ([BridgeK12StudentCourseSectionsCipCodeId] ASC), | ||
CONSTRAINT [FK_BridgeK12StudentCourseSectionsCipCodes_CipCodeId] FOREIGN KEY ([CipCodeId]) REFERENCES [RDS].[DimCipCodes] ([DimCipCodeId]), | ||
CONSTRAINT [FK_BridgeK12StudentCourseSectionsCipCodes_FactK12StudentCourseSections] FOREIGN KEY ([FactK12StudentCourseSectionId]) REFERENCES [RDS].[FactK12StudentCourseSections] ([FactK12StudentCourseSectionId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionsCipCodes_FactK12CourseSection] | ||
ON [RDS].[BridgeK12StudentCourseSectionsCipCodes]([FactK12StudentCourseSectionId] ASC); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentCourseSectionsCipCodes_CipCodeId] | ||
ON [RDS].[BridgeK12StudentCourseSectionsCipCodes]([CipCodeId] ASC); | ||
|
||
|
||
GO | ||
|
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentDisciplineDiscplineReasons.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentDisciplineDiscplineReasons] ( | ||
[BridgeK12StudentDisciplineDiscplineReasonId] INT IDENTITY (1, 1) NOT NULL, | ||
[FactK12StudentDisciplineId] INT NULL, | ||
[DisciplineReasonId] INT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentDisciplineDiscplineReasonId] PRIMARY KEY CLUSTERED ([BridgeK12StudentDisciplineDiscplineReasonId] ASC), | ||
CONSTRAINT [FK_BridgeK12StudentDisciplineDiscplineReasons_DimDisciplineReasons] FOREIGN KEY ([DisciplineReasonId]) REFERENCES [RDS].[DimDisciplineReasons] ([DimDisciplineReasonId]), | ||
CONSTRAINT [FK_BridgeK12StudentDisciplineDiscplineReasons_FactK12StudentDisciplines] FOREIGN KEY ([FactK12StudentDisciplineId]) REFERENCES [RDS].[FactK12StudentDisciplines] ([FactK12StudentDisciplineId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDiscplineReasons_DimDisciplineReasons] | ||
ON [RDS].[BridgeK12StudentDisciplineDiscplineReasons]([DisciplineReasonId] ASC); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDiscplineReasons_FactK12StudentDisciplines] | ||
ON [RDS].[BridgeK12StudentDisciplineDiscplineReasons]([FactK12StudentDisciplineId] ASC); | ||
|
||
|
||
GO | ||
|
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentDisciplineIdeaDisabilityTypes.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentDisciplineIdeaDisabilityTypes] ( | ||
[BridgeK12StudentDisciplineIdeaDisabilityTypeId] INT IDENTITY (1, 1) NOT NULL, | ||
[IdeaDisabilityTypeId] INT NULL, | ||
[FactK12StudentDisciplineId] INT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentDisciplineIdeaDisabilityTypeId] PRIMARY KEY NONCLUSTERED ([BridgeK12StudentDisciplineIdeaDisabilityTypeId] ASC), | ||
CONSTRAINT [FK_BridgeK12StudentDisciplineIdeaDisabilityTypes_FactK12StudentDisciplines] FOREIGN KEY ([FactK12StudentDisciplineId]) REFERENCES [RDS].[FactK12StudentDisciplines] ([FactK12StudentDisciplineId]), | ||
CONSTRAINT [FK_BridgeK12StudentDisciplineIdeaDisabilityTypes_IdeaDisabilityTypeId] FOREIGN KEY ([IdeaDisabilityTypeId]) REFERENCES [RDS].[DimIdeaDisabilityTypes] ([DimIdeaDisabilityTypeId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDisabilityTypes_DimIdeaDisabilityTypes] | ||
ON [RDS].[BridgeK12StudentDisciplineIdeaDisabilityTypes]([IdeaDisabilityTypeId] ASC); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineDisabilityTypes_FactK12StudentDisciplines] | ||
ON [RDS].[BridgeK12StudentDisciplineIdeaDisabilityTypes]([FactK12StudentDisciplineId] ASC); | ||
|
||
|
||
GO | ||
|
24 changes: 24 additions & 0 deletions
24
src/CEDS-Data-Warehouse-Project/RDS/Tables/BridgeK12StudentDisciplineIncidentBehaviors.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE TABLE [RDS].[BridgeK12StudentDisciplineIncidentBehaviors] ( | ||
[BridgeK12StudentDisciplineIncidentBehaviorId] INT IDENTITY (1, 1) NOT NULL, | ||
[FactK12StudentDisciplineId] INT NULL, | ||
[IncidentBehaviorId] INT NULL, | ||
CONSTRAINT [PK_BridgeK12StudentDisciplineIncidentBehaviorId] PRIMARY KEY CLUSTERED ([BridgeK12StudentDisciplineIncidentBehaviorId] ASC), | ||
CONSTRAINT [FK_BridgeK12StudentDisciplineIncidentBehaviors_DimIncidentBehaviors] FOREIGN KEY ([IncidentBehaviorId]) REFERENCES [RDS].[DimIncidentBehaviors] ([DimIncidentBehaviorId]), | ||
CONSTRAINT [FK_BridgeK12StudentDisciplineIncidentBehaviors_FactK12StudentDisciplines] FOREIGN KEY ([FactK12StudentDisciplineId]) REFERENCES [RDS].[FactK12StudentDisciplines] ([FactK12StudentDisciplineId]) | ||
); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineIncidentBehaviors_FactK12StudentDisciplines] | ||
ON [RDS].[BridgeK12StudentDisciplineIncidentBehaviors]([FactK12StudentDisciplineId] ASC); | ||
|
||
|
||
GO | ||
|
||
CREATE NONCLUSTERED INDEX [IXFK_BridgeK12StudentDisciplineIncidentBehaviors_DimIncidentBehaviors] | ||
ON [RDS].[BridgeK12StudentDisciplineIncidentBehaviors]([IncidentBehaviorId] ASC); | ||
|
||
|
||
GO | ||
|
Oops, something went wrong.