diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard2/RLS/MSSQL/0015-View-rls_UserAuthorization-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard2/RLS/MSSQL/0015-View-rls_UserAuthorization-Alter.sql index 7b0bd07b..e57ab763 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard2/RLS/MSSQL/0015-View-rls_UserAuthorization-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard2/RLS/MSSQL/0015-View-rls_UserAuthorization-Alter.sql @@ -68,11 +68,11 @@ AS CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' THEN 'ALL' - ELSE COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + ELSE CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) END AS SchoolPermission, CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' - THEN COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + THEN CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) ELSE '' END AS DistrictId FROM diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard31/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard31/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql index 6537fb5b..bfb1736b 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard31/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard31/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql @@ -18,7 +18,7 @@ AS SELECT CONCAT(FeederSchoolAssociation.SchoolId,'-',FeederSchoolAssociation.FeederSchoolId) AS FeederSchoolUniqueKey ,CAST(FeederSchoolAssociation.SchoolId AS VARCHAR) AS SchoolKey - ,COALESCE(CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR), '') AS FeederSchoolKey + ,CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR) AS FeederSchoolKey ,EducationOrganization.NameOfInstitution AS FeederSchoolName ,( SELECT MAX(MaxLastModifiedDate) diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard31/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard31/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql index 6baf74d7..5c17dc89 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard31/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard31/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql @@ -71,11 +71,11 @@ SELECT DISTINCT staffToScopeMap.StaffUniqueId AS UserKey ,CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' THEN 'ALL' - ELSE COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + ELSE CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) END AS SchoolPermission, CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' - THEN COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + THEN CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) ELSE '' END AS DistrictId FROM staffToScopeMap diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql index 6537fb5b..bfb1736b 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/MSSQL/0015-View-FeederSchoolDim-Alter.sql @@ -18,7 +18,7 @@ AS SELECT CONCAT(FeederSchoolAssociation.SchoolId,'-',FeederSchoolAssociation.FeederSchoolId) AS FeederSchoolUniqueKey ,CAST(FeederSchoolAssociation.SchoolId AS VARCHAR) AS SchoolKey - ,COALESCE(CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR), '') AS FeederSchoolKey + ,CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR) AS FeederSchoolKey ,EducationOrganization.NameOfInstitution AS FeederSchoolName ,( SELECT MAX(MaxLastModifiedDate) diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/PostgreSQL/0011-View-FeederSchoolDim-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/PostgreSQL/0011-View-FeederSchoolDim-Alter.sql index 478f0fe2..59983781 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/PostgreSQL/0011-View-FeederSchoolDim-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard32/Equity/PostgreSQL/0011-View-FeederSchoolDim-Alter.sql @@ -9,7 +9,7 @@ AS SELECT CONCAT(FeederSchoolAssociation.SchoolId,'-',FeederSchoolAssociation.FeederSchoolId) AS FeederSchoolUniqueKey ,CAST(FeederSchoolAssociation.SchoolId AS VARCHAR) AS SchoolKey - ,COALESCE(CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR), '') AS FeederSchoolKey + ,CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR) AS FeederSchoolKey ,EducationOrganization.NameOfInstitution AS FeederSchoolName ,( SELECT MAX(MaxLastModifiedDate) diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql index 42866639..eee4ff9a 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/MSSQL/0015-View-UserAuthorization-Alter.sql @@ -71,11 +71,11 @@ SELECT DISTINCT staffToScopeMap.StaffUniqueId AS UserKey ,CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' THEN 'ALL' - ELSE COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + ELSE CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) END AS SchoolPermission, CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' - THEN COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + THEN CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) ELSE '' END AS DistrictId FROM staffToScopeMap diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/PostgreSQL/0015-View-rls_UserAuthorization-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/PostgreSQL/0015-View-rls_UserAuthorization-Alter.sql index eac13155..7dff8785 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/PostgreSQL/0015-View-rls_UserAuthorization-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard32/RLS/PostgreSQL/0015-View-rls_UserAuthorization-Alter.sql @@ -57,11 +57,11 @@ AS CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' THEN 'ALL' - ELSE COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + ELSE CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) END AS SchoolPermission, CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' - THEN COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR),'') + THEN CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) ELSE '' END AS DistrictId FROM diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0035-View-SectionDim-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0035-View-SectionDim-Alter.sql index 11159073..3fe3f2ca 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0035-View-SectionDim-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Base/PostgreSQL/0035-View-SectionDim-Alter.sql @@ -33,7 +33,7 @@ CREATE VIEW analytics.SectionDim AS ,COALESCE(SectionClassPeriod.LocalCourseCode,CourseOffering.LocalCourseCode) as LocalCourseCode ,CAST(COALESCE(Session.SchoolYear,CourseOffering.SchoolYear) as VARCHAR) as SchoolYear ,eed.Description AS EducationalEnvironmentDescriptor - ,CAST(sch.LocalEducationAgencyId AS VARCHAR) as LocalEducationAgencyKey + ,COALESCE(CAST(sch.LocalEducationAgencyId AS VARCHAR), '') as LocalEducationAgencyKey ,s.LastModifiedDate ,course.CourseTitle ,FORMAT( diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/MSSQL/0009-View-FeederSchoolDim-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/MSSQL/0009-View-FeederSchoolDim-Alter.sql index 6537fb5b..bfb1736b 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/MSSQL/0009-View-FeederSchoolDim-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/MSSQL/0009-View-FeederSchoolDim-Alter.sql @@ -18,7 +18,7 @@ AS SELECT CONCAT(FeederSchoolAssociation.SchoolId,'-',FeederSchoolAssociation.FeederSchoolId) AS FeederSchoolUniqueKey ,CAST(FeederSchoolAssociation.SchoolId AS VARCHAR) AS SchoolKey - ,COALESCE(CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR), '') AS FeederSchoolKey + ,CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR) AS FeederSchoolKey ,EducationOrganization.NameOfInstitution AS FeederSchoolName ,( SELECT MAX(MaxLastModifiedDate) diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/PostgreSQL/0007-View-FeederSchoolDim-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/PostgreSQL/0007-View-FeederSchoolDim-Alter.sql index fcb493ea..1d4f2f13 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/PostgreSQL/0007-View-FeederSchoolDim-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard33/Equity/PostgreSQL/0007-View-FeederSchoolDim-Alter.sql @@ -9,7 +9,7 @@ AS SELECT CONCAT(FeederSchoolAssociation.SchoolId,'-',FeederSchoolAssociation.FeederSchoolId) AS FeederSchoolUniqueKey ,cast(FeederSchoolAssociation.SchoolId as varchar) AS SchoolKey - ,COALESCE(CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR), '') AS FeederSchoolKey + ,CAST(FeederSchoolAssociation.FeederSchoolId AS VARCHAR) AS FeederSchoolKey ,EducationOrganization.NameOfInstitution AS FeederSchoolName ,( SELECT MAX(MaxLastModifiedDate) diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/MSSQL/0013-View-UserAuthorization-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/MSSQL/0013-View-UserAuthorization-Alter.sql index db114b6e..8e7c3204 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/MSSQL/0013-View-UserAuthorization-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/MSSQL/0013-View-UserAuthorization-Alter.sql @@ -71,11 +71,11 @@ SELECT DISTINCT staffToScopeMap.StaffUniqueId AS UserKey ,CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' THEN 'ALL' - ELSE COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + ELSE CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) END AS SchoolPermission, CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' - THEN COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + THEN CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) ELSE '' END AS DistrictId FROM staffToScopeMap diff --git a/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/PostgreSQL/0013-View-rls_UserAuthorization-Alter.sql b/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/PostgreSQL/0013-View-rls_UserAuthorization-Alter.sql index 036290b9..a40202c5 100644 --- a/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/PostgreSQL/0013-View-rls_UserAuthorization-Alter.sql +++ b/src/EdFi.AnalyticsMiddleTier.DataStandard33/RLS/PostgreSQL/0013-View-rls_UserAuthorization-Alter.sql @@ -57,11 +57,11 @@ AS CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' THEN 'ALL' - ELSE COALESCE(CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR), '') + ELSE CAST(staffToScopeMap.EducationOrganizationId AS VARCHAR) END AS SchoolPermission, CASE staffToScopeMap.UserScope WHEN 'AuthorizationScope.District' - THEN COALESCE(cast(staffToScopeMap.EducationOrganizationId as varchar), '') + THEN cast(staffToScopeMap.EducationOrganizationId as varchar) ELSE '' END AS DistrictId FROM diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SchoolDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SchoolDim_view.cs index e15fb675..08d1212b 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SchoolDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SchoolDim_view.cs @@ -93,6 +93,13 @@ public void Then_StateEducationAgencyName_is_replaced_with_empty() testResult.success.ShouldBe(true, testResult.errorMessage); } + [Test] + public void Then_StateEducationAgencyKey_is_replaced_with_empty() + { + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.When_EdOrgState.StateEducationAgencyKey_is_null.json"); + testResult.success.ShouldBe(true, testResult.errorMessage); + } + [Test] public void Then_EducationServiceCenterName_is_replaced_with_empty() { @@ -100,6 +107,20 @@ public void Then_EducationServiceCenterName_is_replaced_with_empty() testResult.success.ShouldBe(true, testResult.errorMessage); } + [Test] + public void Then_EducationServiceCenterKey_is_replaced_with_empty() + { + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.When_EdOrgServiceCenter.EducationServiceCenterKey_is_null.json"); + testResult.success.ShouldBe(true, testResult.errorMessage); + } + + [Test] + public void Then_LocalEducationAgencyKey_is_replaced_with_empty() + { + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.When_EdOrgLocal.LocalEducationAgencyKey_is_null.json"); + testResult.success.ShouldBe(true, testResult.errorMessage); + } + [Test] public void Then_the_SchoolAddress_returned_is_the_physical_address_and_not_mailing_address() { diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SectionDim_view.cs b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SectionDim_view.cs index 8c76ffaa..a685d69c 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SectionDim_view.cs +++ b/src/EdFi.AnalyticsMiddleTier.Tests/Dimensions/When_querying_the_SectionDim_view.cs @@ -125,6 +125,21 @@ public void Then_should_have_SessionKey() } } + public class When_querying_the_SectionDim_view_with_LocalCourseCode_QAGR40 + : When_querying_the_SectionDim_view_base + { + public When_querying_the_SectionDim_view_with_LocalCourseCode_QAGR40(TestHarnessBase dataStandard) => SetDataStandard(dataStandard); + + private const string _caseIdentifier = "QAGR40"; + + [Test] + public void Then_should_have_LocalEducationAgencyKey() + { + (bool success, string errorMessage) testResult = DataStandard.RunTestCase($"{TestCasesFolder}.{_caseIdentifier}_should_have_LocalEducationAgencyKey.xml"); + testResult.success.ShouldBe(true, testResult.errorMessage); + } + } + [SuppressMessage("ReSharper", "InconsistentNaming")] public class When_querying_the_SectionDim_V2_view : When_querying_the_SectionDim_view_base diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgLocal.LocalEducationAgencyKey_is_null.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgLocal.LocalEducationAgencyKey_is_null.json new file mode 100644 index 00000000..be7d8e6f --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgLocal.LocalEducationAgencyKey_is_null.json @@ -0,0 +1,11 @@ +{ + "DBMS": "Any", + "ControlDataInsertion": "", + "DropControlData": "", + "Query": "select LocalEducationAgencyKey from analytics.SchoolDim where SchoolKey = '867530010'", + "Result": [ + { + "LocalEducationAgencyKey": "" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgServiceCenter.EducationServiceCenterKey_is_null.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgServiceCenter.EducationServiceCenterKey_is_null.json new file mode 100644 index 00000000..c8cdb13e --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgServiceCenter.EducationServiceCenterKey_is_null.json @@ -0,0 +1,11 @@ +{ + "DBMS": "Any", + "ControlDataInsertion": "", + "DropControlData": "", + "Query": "select EducationServiceCenterKey from analytics.SchoolDim where SchoolKey = '867530010'", + "Result": [ + { + "EducationServiceCenterKey": "" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgState.StateEducationAgencyKey_is_null.json b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgState.StateEducationAgencyKey_is_null.json new file mode 100644 index 00000000..53a696ea --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SchoolDim/When_EdOrgState.StateEducationAgencyKey_is_null.json @@ -0,0 +1,11 @@ +{ + "DBMS": "Any", + "ControlDataInsertion": "", + "DropControlData": "", + "Query": "select StateEducationAgencyKey from analytics.SchoolDim where SchoolKey = '867530010'", + "Result": [ + { + "StateEducationAgencyKey": "" + } + ] +} \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_2/0000_SectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_2/0000_SectionDim_Data_Load.xml index da112512..1270e1bd 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_2/0000_SectionDim_Data_Load.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_2/0000_SectionDim_Data_Load.xml @@ -2,622 +2,658 @@ Any - SET IDENTITY_INSERT edfi.AcademicSubjectType ON; - INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','Social Studies','Social Studies','Social Studies','CF991BC0-F42A-442B-9104-14E2706C965E','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '5')); - SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; + SET IDENTITY_INSERT edfi.AcademicSubjectType ON; + INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','Social Studies','Social Studies','Social Studies','CF991BC0-F42A-442B-9104-14E2706C965E','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '5')); + SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'13','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies','Social Studies','Social Studies',NULL,NULL,NULL,'513BAE50-A296-4E3A-B798-076C79630A3E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '13')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'13','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Social Studies','Social Studies','Social Studies',NULL,NULL,NULL,'513BAE50-A296-4E3A-B798-076C79630A3E','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '13')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'13','5' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'13','5' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '13')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','867530011','Cooper',NULL,NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','867530011','Cooper',NULL,NULL,NULL,'A56A986C-976E-45A7-83B1-0F8D63FFECD9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530011')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QAGR40' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F37328FA-F491-4567-8FAC-BAC78C80F060','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QAGR40' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530','867530','Glendale ISD',NULL,NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530','867530','Glendale ISD',NULL,NULL,NULL,'9CC29A49-637C-4882-A7DB-99AD87690CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'152950','152950','ESC Region 17',NULL,NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 2 2015 12:00AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'152950','152950','ESC Region 17',NULL,NULL,NULL,'03DE6F94-316A-4B06-8C67-2C8748DCA1A9','Sep 2 2015 12:00AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '152950')); - INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT TOP 1'152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); + INSERT INTO edfi.EducationServiceCenter(EducationServiceCenterId,StateEducationAgencyId)(SELECT TOP 1'152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationServiceCenter WHERE EducationServiceCenterId= '152950')); - SET IDENTITY_INSERT edfi.LocalEducationAgencyCategoryType ON; - INSERT INTO edfi.LocalEducationAgencyCategoryType(LocalEducationAgencyCategoryTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Independent','Independent','Independent','D726338D-016E-4777-BCA4-F277699F009A','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryType WHERE LocalEducationAgencyCategoryTypeId= '1')); - SET IDENTITY_INSERT edfi.LocalEducationAgencyCategoryType OFF; + SET IDENTITY_INSERT edfi.LocalEducationAgencyCategoryType ON; + INSERT INTO edfi.LocalEducationAgencyCategoryType(LocalEducationAgencyCategoryTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Independent','Independent','Independent','D726338D-016E-4777-BCA4-F277699F009A','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgencyCategoryType WHERE LocalEducationAgencyCategoryTypeId= '1')); + SET IDENTITY_INSERT edfi.LocalEducationAgencyCategoryType OFF; - INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryTypeId,CharterStatusTypeId,EducationServiceCenterId,StateEducationAgencyId)(SELECT TOP 1'867530',NULL,'1',NULL,'152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); + INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,LocalEducationAgencyCategoryTypeId,CharterStatusTypeId,EducationServiceCenterId,StateEducationAgencyId)(SELECT TOP 1'867530',NULL,'1',NULL,'152950',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '867530')); - SET IDENTITY_INSERT edfi.SchoolType ON; - INSERT INTO edfi.SchoolType(SchoolTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2','Regular','Regular','Regular','FA037C41-5BAE-4077-B48D-3C2308185F37','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolType WHERE SchoolTypeId= '2')); - SET IDENTITY_INSERT edfi.SchoolType OFF; + SET IDENTITY_INSERT edfi.SchoolType ON; + INSERT INTO edfi.SchoolType(SchoolTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2','Regular','Regular','Regular','FA037C41-5BAE-4077-B48D-3C2308185F37','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolType WHERE SchoolTypeId= '2')); + SET IDENTITY_INSERT edfi.SchoolType OFF; - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeId,CharterStatusTypeId,TitleIPartASchoolDesignationTypeId,MagnetSpecialProgramEmphasisSchoolTypeId,AdministrativeFundingControlDescriptorId,InternetAccessTypeId,CharterApprovalAgencyTypeId,CharterApprovalSchoolYear)(SELECT TOP 1'867530011','867530','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeId,CharterStatusTypeId,TitleIPartASchoolDesignationTypeId,MagnetSpecialProgramEmphasisSchoolTypeId,AdministrativeFundingControlDescriptorId,InternetAccessTypeId,CharterApprovalAgencyTypeId,CharterApprovalSchoolYear)(SELECT TOP 1'867530011','867530','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530011')); - INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2012','2011-2012','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E1','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2012')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2012','2011-2012','0','1926BB96-BF8C-493A-93BD-A8E60DBC83E1','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2012')); - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'535','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester','Spring Semester','Spring Semester',NULL,NULL,NULL,'E4B7411A-CA94-4D46-912F-9057E4D65B3A','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '535')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'535','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Spring Semester','Spring Semester','Spring Semester',NULL,NULL,NULL,'E4B7411A-CA94-4D46-912F-9057E4D65B3A','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '535')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - SET IDENTITY_INSERT edfi.TermType ON; - INSERT INTO edfi.TermType(TermTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Semester','Semester','Semester','31B4C04A-032E-4911-ABA2-5440C770C375','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermType WHERE TermTypeId= '1')); - SET IDENTITY_INSERT edfi.TermType OFF; + SET IDENTITY_INSERT edfi.TermType ON; + INSERT INTO edfi.TermType(TermTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Semester','Semester','Semester','31B4C04A-032E-4911-ABA2-5440C770C375','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermType WHERE TermTypeId= '1')); + SET IDENTITY_INSERT edfi.TermType OFF; - INSERT INTO edfi.TermDescriptor(TermDescriptorId,TermTypeId)(SELECT TOP 1'535','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '535')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId,TermTypeId)(SELECT TOP 1'535','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '535')); - INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','2012','535','Traditional','2012-01-05','2012-05-25','93','A3456D4B-6B18-4687-AE62-70D328B9C833','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2012','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2012','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D')); - INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2011','2010-2011','0','AA0FDD7B-1890-44A4-AC29-BF2CC1DD3204','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2011')); + INSERT INTO edfi.SchoolYearType(SchoolYear,SchoolYearDescription,CurrentSchoolYear,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2011','2010-2011','0','AA0FDD7B-1890-44A4-AC29-BF2CC1DD3204','Jun 19 2015 11:40AM','Jun 19 2015 11:40AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolYearType WHERE SchoolYear= '2011')); - INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','2011','535','Traditional','2012-01-05','2012-05-25','93','737E44B5-8320-429B-99BB-2F8D747F4E56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND TermDescriptorId= '535')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','2011','535','Traditional','2012-01-05','2012-05-25','93','737E44B5-8320-429B-99BB-2F8D747F4E56','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2011' AND TermDescriptorId= '535')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2011','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2011','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE id='57C2C84F-046A-4B23-9F54-EB2FEE27C8EC')); - SET IDENTITY_INSERT edfi.AcademicSubjectType ON; - INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'6','Science','Science','Science','ED3AC38F-F9FB-4F69-B543-5F89D10C194B','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '6')); - SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; + SET IDENTITY_INSERT edfi.AcademicSubjectType ON; + INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'6','Science','Science','Science','ED3AC38F-F9FB-4F69-B543-5F89D10C194B','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '6')); + SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science','Science','Science',NULL,NULL,NULL,'F967F171-87D7-4B79-B22F-4EB265984472','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '10')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Science','Science','Science',NULL,NULL,NULL,'F967F171-87D7-4B79-B22F-4EB265984472','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '10')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'10','6' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'10','6' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '10')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QBIR21' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'DAFFAECA-EDDB-4BF0-82BD-5F0CDAE6DE2B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QBIR21' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QBIR21','867530011','2012','535','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'QBIR21' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QBIR21','867530011','2012','535','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'QBIR21' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); - SET IDENTITY_INSERT edfi.AcademicSubjectType ON; - INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'11','Fine and Performing Arts','Fine and Performing Arts','Fine and Performing Arts','5FE61B79-AB80-4467-A00A-F217E7DC4E58','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '11')); - SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; + SET IDENTITY_INSERT edfi.AcademicSubjectType ON; + INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'11','Fine and Performing Arts','Fine and Performing Arts','Fine and Performing Arts','5FE61B79-AB80-4467-A00A-F217E7DC4E58','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '11')); + SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'12','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Fine and Performing Arts','Fine and Performing Arts','Fine and Performing Arts',NULL,NULL,NULL,'525A7098-A705-4E54-822B-D41279D56CF2','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '12')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'12','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Fine and Performing Arts','Fine and Performing Arts','Fine and Performing Arts',NULL,NULL,NULL,'525A7098-A705-4E54-822B-D41279D56CF2','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '12')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'12','11' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'12','11' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '12')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ACER31' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','ACER31','Art Iii Ceramics (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'53232AE2-C6CD-48A5-A290-B07A4B4249EB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ACER31' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ACER31','867530011','2012','535','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'ACER31' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ACER31','867530011','2012','535','Art Iii Ceramics (1 Unit)',NULL,'ACER31','867530011','C886AE90-AE5B-4C52-8199-514E1CD44281','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'ACER31' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ARTR11' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'6A11F8F8-263D-4BBF-9F1B-19E1F336FB0D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ARTR11' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ARTR11','867530011','2012','535','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'ARTR11' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ARTR11','867530011','2012','535','Art I (1 Unit)',NULL,'ARTR11','867530011','F8F83759-C1B4-4814-8187-F038569FB4D6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'ARTR11' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'BCSR21' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','BCSR21','Computer Science I','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'033C211D-3644-44DE-958D-C1A7B4EB32B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'BCSR21' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'BCSR21','867530011','2012','535','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'BCSR21' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'BCSR21','867530011','2012','535','Computer Science I',NULL,'BCSR21','867530011','F38F91E5-8D0E-4878-B597-C00C3D91FFF6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'BCSR21' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); - SET IDENTITY_INSERT edfi.AcademicSubjectType ON; - INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'12','Foreign Language and Literature','Foreign Language and Literature','Foreign Language and Literature','97DF9CAA-04CE-4FE4-A749-6AF17DF1851B','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '12')); - SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; + SET IDENTITY_INSERT edfi.AcademicSubjectType ON; + INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'12','Foreign Language and Literature','Foreign Language and Literature','Foreign Language and Literature','97DF9CAA-04CE-4FE4-A749-6AF17DF1851B','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '12')); + SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'14','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Foreign Language and Literature','Foreign Language and Literature','Foreign Language and Literature',NULL,NULL,NULL,'70CEE7CD-3215-4860-965C-076FCB5D17A3','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '14')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'14','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Foreign Language and Literature','Foreign Language and Literature','Foreign Language and Literature',NULL,NULL,NULL,'70CEE7CD-3215-4860-965C-076FCB5D17A3','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '14')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'14','12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'14','12' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '14')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'FSP78A' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','FSP78A','Lang /T/ Eng Lvl I (1 Unit) - Spanish','1','14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'34CAD4EB-664A-4D9C-916B-2792226F0AEF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'FSP78A' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'FSP78A','867530011','2012','535','Lang /T/ Eng Lvl I (1 Unit) - Spanish',NULL,'FSP78A','867530011','13E51EA7-C2B2-4514-808F-A335EF57B92A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'FSP78A' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'FSP78A','867530011','2012','535','Lang /T/ Eng Lvl I (1 Unit) - Spanish',NULL,'FSP78A','867530011','13E51EA7-C2B2-4514-808F-A335EF57B92A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'FSP78A' AND [CourseOffering].[TermDescriptorId] = '535' AND [CourseOffering].[SchoolYear] = 2012)); - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'530','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester','Fall Semester','Fall Semester',NULL,NULL,NULL,'E9B77FA3-B4BF-47E6-A21E-5F05334A2DEA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '530')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'530','http://www.ed-fi.org/Descriptor/TermDescriptor.xml','Fall Semester','Fall Semester','Fall Semester',NULL,NULL,NULL,'E9B77FA3-B4BF-47E6-A21E-5F05334A2DEA','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '530')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.TermDescriptor(TermDescriptorId,TermTypeId)(SELECT TOP 1'530','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '530')); + INSERT INTO edfi.TermDescriptor(TermDescriptorId,TermTypeId)(SELECT TOP 1'530','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.TermDescriptor WHERE TermDescriptorId= '530')); - INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','2012','530','Traditional','2011-08-22','2011-12-20','82','A7964013-62DF-424A-BC52-85CEBFE64061','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','2012','530','Traditional','2011-08-22','2011-12-20','82','A7964013-62DF-424A-BC52-85CEBFE64061','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QBIR21','867530011','2012','535','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'QBIR21')); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QBIR21','867530011','2012','535','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530011 AND [CourseOffering].[LocalCourseCode] = 'QBIR21')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530007','867530007','Badger Springs',NULL,NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530007','867530007','Badger Springs',NULL,NULL,NULL,'CA077ACF-2BE3-4F43-809E-67C5843CD736','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530007')); - INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'QBIR21' AND EducationOrganizationId = '867530007')); + INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530007','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E4A55D39-C269-44FB-8F04-9028F30A114A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'QBIR21' AND EducationOrganizationId = '867530007')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530017','867530017','Bunche',NULL,NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530017','867530017','Bunche',NULL,NULL,NULL,'D7984D20-7F2C-4F5B-8071-B0E656A49F26','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530017')); - INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'QBIR21' AND EducationOrganizationId = '867530017')); + INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530017','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'32AEF233-B3AC-4E85-9610-BB4E1C7B39B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'QBIR21' AND EducationOrganizationId = '867530017')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530021','867530021','Belmont High School',NULL,NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530021','867530021','Belmont High School',NULL,NULL,NULL,'96C9B2F6-5A90-4F67-9A1B-FD9E72B639BC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530021')); - INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'QBIR21' AND EducationOrganizationId = '867530021')); + INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530021','QBIR21','Biology (1 Unit)','1','10',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'73E10A93-D8FE-4494-9E9A-5C2B3FE67B5E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'QBIR21' AND EducationOrganizationId = '867530021')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','020DAAC4-03E6-44F5-A76D-1568EDD55123','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T09' AND SchoolId= '867530011')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','020DAAC4-03E6-44F5-A76D-1568EDD55123','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T09' AND SchoolId= '867530011')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QWHR11' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QWHR11','World History Studies (1 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C82CCCF8-C3DC-415C-935B-AB3F98400D8B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QWHR11' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QWHR11','867530011','2012','535','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QWHR11','867530011','2012','535','World History Studies (1 Unit)',NULL,'QWHR11','867530011','318C644E-ABA0-4700-A20F-419D923AC6B8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - SET IDENTITY_INSERT edfi.EducationalEnvironmentType ON; - INSERT INTO edfi.EducationalEnvironmentType(EducationalEnvironmentTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Classroom','Classroom','Classroom','BB3415D5-B2D2-421A-B1E0-03C677BBB202','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentType WHERE EducationalEnvironmentTypeId= '1')); - SET IDENTITY_INSERT edfi.EducationalEnvironmentType OFF; + SET IDENTITY_INSERT edfi.EducationalEnvironmentType ON; + INSERT INTO edfi.EducationalEnvironmentType(EducationalEnvironmentTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Classroom','Classroom','Classroom','BB3415D5-B2D2-421A-B1E0-03C677BBB202','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationalEnvironmentType WHERE EducationalEnvironmentTypeId= '1')); + SET IDENTITY_INSERT edfi.EducationalEnvironmentType OFF; - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','115',NULL,NULL,'C6AE38A0-CEF7-4FCC-A88E-61F08C0CCE67','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530011')); - SET IDENTITY_INSERT edfi.PopulationServedType ON; - INSERT INTO edfi.PopulationServedType(PopulationServedTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Regular Students','Regular Students','Regular Students','599BFA97-0DD8-4552-AD71-F848ECA3B4DD','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedType WHERE PopulationServedTypeId= '1')); - SET IDENTITY_INSERT edfi.PopulationServedType OFF; + SET IDENTITY_INSERT edfi.PopulationServedType ON; + INSERT INTO edfi.PopulationServedType(PopulationServedTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Regular Students','Regular Students','Regular Students','599BFA97-0DD8-4552-AD71-F848ECA3B4DD','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedType WHERE PopulationServedTypeId= '1')); + SET IDENTITY_INSERT edfi.PopulationServedType OFF; - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QWHR11','535','2012','21341','1','1',NULL,'1',NULL,NULL,NULL,'1.00','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '21341')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QWHR11','535','2012','21341','1','1',NULL,'1',NULL,NULL,NULL,'1.00','2646C244-669C-411B-A7CA-C1175AD6ED83','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QWHR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '21341')); - SET IDENTITY_INSERT edfi.OldEthnicityType ON; - INSERT INTO edfi.OldEthnicityType(OldEthnicityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','CE7DA883-8992-4EE2-A6A9-F066C4676356','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityType WHERE OldEthnicityTypeId= '3')); - SET IDENTITY_INSERT edfi.OldEthnicityType OFF; + SET IDENTITY_INSERT edfi.OldEthnicityType ON; + INSERT INTO edfi.OldEthnicityType(OldEthnicityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','Black, Not Of Hispanic Origin','CE7DA883-8992-4EE2-A6A9-F066C4676356','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityType WHERE OldEthnicityTypeId= '3')); + SET IDENTITY_INSERT edfi.OldEthnicityType OFF; - SET IDENTITY_INSERT edfi.SexType ON; - INSERT INTO edfi.SexType(SexTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Female','Female','Female','277F0B63-88DE-4DD0-9292-34B016B9585A','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexType WHERE SexTypeId= '1')); - SET IDENTITY_INSERT edfi.SexType OFF; + SET IDENTITY_INSERT edfi.SexType ON; + INSERT INTO edfi.SexType(SexTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Female','Female','Female','277F0B63-88DE-4DD0-9292-34B016B9585A','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexType WHERE SexTypeId= '1')); + SET IDENTITY_INSERT edfi.SexType OFF; - SET IDENTITY_INSERT edfi.Student ON; - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,BirthCity,BirthStateAbbreviationTypeId,DateEnteredUS,MultipleBirthStatus,ProfileThumbnail,HispanicLatinoEthnicity,OldEthnicityTypeId,EconomicDisadvantaged,SchoolFoodServicesEligibilityDescriptorId,LimitedEnglishProficiencyDescriptorId,DisplacementStatus,LoginId,BirthInternationalProvince,CitizenshipStatusTypeId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId)(SELECT TOP 1'10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1','1977-08-11',NULL,NULL,NULL,NULL,NULL,'0','3','0',NULL,NULL,NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); - SET IDENTITY_INSERT edfi.Student OFF; + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,BirthCity,BirthStateAbbreviationTypeId,DateEnteredUS,MultipleBirthStatus,ProfileThumbnail,HispanicLatinoEthnicity,OldEthnicityTypeId,EconomicDisadvantaged,SchoolFoodServicesEligibilityDescriptorId,LimitedEnglishProficiencyDescriptorId,DisplacementStatus,LoginId,BirthInternationalProvince,CitizenshipStatusTypeId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId)(SELECT TOP 1'10133197',NULL,'Jaye','Q','Begay',NULL,NULL,'1','1977-08-11',NULL,NULL,NULL,NULL,NULL,'0','3','0',NULL,NULL,NULL,NULL,NULL,NULL,'189863','517D7CB2-8663-4FAD-9128-1D11B9EA7E23','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '10133197')); + SET IDENTITY_INSERT edfi.Student OFF; - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10133197','867530011','T09','115','QWHR11','21341','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode=115 AND LocalCourseCode='QWHR11' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=21341 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10133197','867530011','T09','115','QWHR11','21341','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'8072995E-BC62-4EB0-B36E-87FC5800BBFE','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode=115 AND LocalCourseCode='QWHR11' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=21341 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QBIR21','867530011','2012','535','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QBIR21','867530011','2012','535','Biology (1 Unit)',NULL,'QBIR21','867530011','741922CD-51F6-4D76-B5D1-779980288273','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QBIR21','535','2012','9315','1','1',NULL,'1',NULL,NULL,NULL,'1.00','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '9315')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QBIR21','535','2012','9315','1','1',NULL,'1',NULL,NULL,NULL,'1.00','FF4ED8FD-39F5-4F0A-8CCF-878E6B5857ED','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QBIR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '9315')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10133197','867530011','T09','115','QBIR21','9315','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode=115 AND LocalCourseCode='QBIR21' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=9315 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10133197','867530011','T09','115','QBIR21','9315','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'7FCDD6E7-88A4-4900-8839-25618F28094D','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode=115 AND LocalCourseCode='QBIR21' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=9315 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2012','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2012','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','8FA8900D-030F-4119-A93B-B0339CA96FB4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10133197','867530011','T09','115','QAGR40','18940','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode=115 AND LocalCourseCode='QAGR40' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=18940 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'10133197','867530011','T09','115','QAGR40','18940','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'E885EC43-603A-4984-AF5F-DA1198EB6242','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=10133197 AND SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode=115 AND LocalCourseCode='QAGR40' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=18940 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); - SET IDENTITY_INSERT edfi.AcademicSubjectType ON; - INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'14','Physical, Health, and Safety Education','Physical, Health, and Safety Education','Physical, Health, and Safety Education','BDFE3991-A6DC-4FD5-A5E5-0D22754F4EEC','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '14')); - SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; + SET IDENTITY_INSERT edfi.AcademicSubjectType ON; + INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'14','Physical, Health, and Safety Education','Physical, Health, and Safety Education','Physical, Health, and Safety Education','BDFE3991-A6DC-4FD5-A5E5-0D22754F4EEC','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '14')); + SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'9','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Physical, Health, and Safety Education','Physical, Health, and Safety Education','Physical, Health, and Safety Education',NULL,NULL,NULL,'B0CAF1B4-1FD3-478B-A78A-E44AC663CBDF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '9')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'9','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Physical, Health, and Safety Education','Physical, Health, and Safety Education','Physical, Health, and Safety Education',NULL,NULL,NULL,'B0CAF1B4-1FD3-478B-A78A-E44AC663CBDF','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '9')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'9','14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'9','14' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '9')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','867530022','Hollywood High School',NULL,NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','867530022','Hollywood High School',NULL,NULL,NULL,'032A4662-74DA-448B-B881-C88B82DAD04D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530022')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CAFR41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CAFR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'9C08E2AA-1DA2-4866-822D-961BD37C64D9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CAFR41' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeId,CharterStatusTypeId,TitleIPartASchoolDesignationTypeId,MagnetSpecialProgramEmphasisSchoolTypeId,AdministrativeFundingControlDescriptorId,InternetAccessTypeId,CharterApprovalAgencyTypeId,CharterApprovalSchoolYear)(SELECT TOP 1'867530022','867530','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeId,CharterStatusTypeId,TitleIPartASchoolDesignationTypeId,MagnetSpecialProgramEmphasisSchoolTypeId,AdministrativeFundingControlDescriptorId,InternetAccessTypeId,CharterApprovalAgencyTypeId,CharterApprovalSchoolYear)(SELECT TOP 1'867530022','867530','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530022')); - INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2012','530','Traditional','2011-08-22','2011-12-20','82','8B82C4EC-0C72-40BD-AD56-A7A560A4AB76','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2012','530','Traditional','2011-08-22','2011-12-20','82','8B82C4EC-0C72-40BD-AD56-A7A560A4AB76','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR41','867530022','2012','530','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530022 AND [CourseOffering].[LocalCourseCode] = 'CAFR41' AND [CourseOffering].[TermDescriptorId] = '530' AND [CourseOffering].[SchoolYear] = 2012)); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR41','867530022','2012','530','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530022 AND [CourseOffering].[LocalCourseCode] = 'CAFR41' AND [CourseOffering].[TermDescriptorId] = '530' AND [CourseOffering].[SchoolYear] = 2012)); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','A5AE3CBC-7373-4242-AA79-E6ABE8EF7C36','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'B08' AND SchoolId= '867530022')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','A5AE3CBC-7373-4242-AA79-E6ABE8EF7C36','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'B08' AND SchoolId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR41','867530022','2012','530','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR41','867530022','2012','530','PE Substitution Athletics 4',NULL,'CAFR41','867530022','C20E55AF-240B-4F3B-A419-12B02520A630','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CHAPMAN',NULL,NULL,'CB4DBB3C-E8FC-45ED-9486-1081A4EA2A55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'CHAPMAN' AND SchoolId= '867530022')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','CAFR41','530','2012','17128','1','1',NULL,'1',NULL,NULL,NULL,'0.50','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '17128')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','CAFR41','530','2012','17128','1','1',NULL,'1',NULL,NULL,NULL,'0.50','23119926-7FCB-4902-AE33-90662FB4993B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '17128')); - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'778','http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free','Free','Free',NULL,NULL,NULL,'20669F89-0D81-40FE-BEC2-1FBF8272E568','Jun 19 2015 12:17PM','Jun 19 2015 12:17PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '778')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'778','http://www.ed-fi.org/Descriptor/SchoolFoodServiceEligibilityDescriptor.xml','Free','Free','Free',NULL,NULL,NULL,'20669F89-0D81-40FE-BEC2-1FBF8272E568','Jun 19 2015 12:17PM','Jun 19 2015 12:17PM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '778')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - SET IDENTITY_INSERT edfi.SchoolFoodServicesEligibilityType ON; - INSERT INTO edfi.SchoolFoodServicesEligibilityType(SchoolFoodServicesEligibilityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Free','Free','Free','30C6C127-164F-414F-89BE-78B56420AC57','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolFoodServicesEligibilityType WHERE SchoolFoodServicesEligibilityTypeId= '1')); - SET IDENTITY_INSERT edfi.SchoolFoodServicesEligibilityType OFF; + SET IDENTITY_INSERT edfi.SchoolFoodServicesEligibilityType ON; + INSERT INTO edfi.SchoolFoodServicesEligibilityType(SchoolFoodServicesEligibilityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Free','Free','Free','30C6C127-164F-414F-89BE-78B56420AC57','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolFoodServicesEligibilityType WHERE SchoolFoodServicesEligibilityTypeId= '1')); + SET IDENTITY_INSERT edfi.SchoolFoodServicesEligibilityType OFF; - INSERT INTO edfi.SchoolFoodServicesEligibilityDescriptor(SchoolFoodServicesEligibilityDescriptorId,SchoolFoodServicesEligibilityTypeId)(SELECT TOP 1'778','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolFoodServicesEligibilityDescriptor WHERE SchoolFoodServicesEligibilityDescriptorId= '778')); + INSERT INTO edfi.SchoolFoodServicesEligibilityDescriptor(SchoolFoodServicesEligibilityDescriptorId,SchoolFoodServicesEligibilityTypeId)(SELECT TOP 1'778','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.SchoolFoodServicesEligibilityDescriptor WHERE SchoolFoodServicesEligibilityDescriptorId= '778')); - SET IDENTITY_INSERT edfi.Student ON; - INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,BirthCity,BirthStateAbbreviationTypeId,DateEnteredUS,MultipleBirthStatus,ProfileThumbnail,HispanicLatinoEthnicity,OldEthnicityTypeId,EconomicDisadvantaged,SchoolFoodServicesEligibilityDescriptorId,LimitedEnglishProficiencyDescriptorId,DisplacementStatus,LoginId,BirthInternationalProvince,CitizenshipStatusTypeId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId)(SELECT TOP 1'100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1','1993-09-07',NULL,NULL,NULL,NULL,'100040483.png','0','3','1','778',NULL,NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); - SET IDENTITY_INSERT edfi.Student OFF; + SET IDENTITY_INSERT edfi.Student ON; + INSERT INTO edfi.Student(StudentUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,BirthCity,BirthStateAbbreviationTypeId,DateEnteredUS,MultipleBirthStatus,ProfileThumbnail,HispanicLatinoEthnicity,OldEthnicityTypeId,EconomicDisadvantaged,SchoolFoodServicesEligibilityDescriptorId,LimitedEnglishProficiencyDescriptorId,DisplacementStatus,LoginId,BirthInternationalProvince,CitizenshipStatusTypeId,StudentUniqueId,Id,LastModifiedDate,CreateDate,BirthCountryDescriptorId)(SELECT TOP 1'100040483',NULL,'Yvonne','J','Numbers',NULL,NULL,'1','1993-09-07',NULL,NULL,NULL,NULL,'100040483.png','0','3','1','778',NULL,NULL,NULL,NULL,NULL,'190276','A6C1F3C5-68B4-4BE1-9CB1-0EFF95DB0B6E','Nov 19 2015 4:14PM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Student WHERE StudentUSI= '100040483')); + SET IDENTITY_INSERT edfi.Student OFF; - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','B08','CHAPMAN','CAFR41','17128','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','B08','CHAPMAN','CAFR41','17128','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'1B54F0C2-FF81-471B-9D71-7703C2435166','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FB08','9D049196-D57F-4307-AA84-132DF0C6E391','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FB08' AND SchoolId= '867530022')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FB08','9D049196-D57F-4307-AA84-132DF0C6E391','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FB08' AND SchoolId= '867530022')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FB08','CHAPMAN','CAFR41','530','2012','17128','1','1',NULL,'1',NULL,NULL,NULL,'0.50','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FB08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '17128')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FB08','CHAPMAN','CAFR41','530','2012','17128','1','1',NULL,'1',NULL,NULL,NULL,'0.50','1FCFFDE3-10A7-4364-8E60-F6EA46EB0D63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FB08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '17128')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','FB08','CHAPMAN','CAFR41','17128','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='FB08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','FB08','CHAPMAN','CAFR41','17128','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'3E93E4A7-4601-45ED-9551-C85EEFC4AA24','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='FB08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','CCB0BFEF-7D8D-43EC-B697-50D9EE0BFD49','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A01' AND SchoolId= '867530022')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','CCB0BFEF-7D8D-43EC-B697-50D9EE0BFD49','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'A01' AND SchoolId= '867530022')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'LENR41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'F808F14F-70F7-4B1D-B2DA-184BA1114728','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'LENR41' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'LENR41','867530022','2012','530','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'LENR41','867530022','2012','530','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2110',NULL,NULL,'61BC571E-0CA1-46C7-8F4D-6F89BA8CBE2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '2110' AND SchoolId= '867530022')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','2110','LENR41','530','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '4575')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','2110','LENR41','530','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','81DC5A06-19EC-4D28-B85C-455B928C18BF','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '4575')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','A01','2110','LENR41','4575','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','A01','2110','LENR41','4575','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'75BCE349-BE3D-4472-88DC-60ED8227A077','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B06','F04D5047-C365-4AF4-AD06-A02F35BB87C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'B06' AND SchoolId= '867530022')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B06','F04D5047-C365-4AF4-AD06-A02F35BB87C6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'B06' AND SchoolId= '867530022')); - SET IDENTITY_INSERT edfi.AcademicSubjectType ON; - INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','Other','Other','Other','BB641592-360C-4D4C-B865-944C700F8CD6','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '31')); - SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; + SET IDENTITY_INSERT edfi.AcademicSubjectType ON; + INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'31','Other','Other','Other','BB641592-360C-4D4C-B865-944C700F8CD6','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '31')); + SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'18','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Nov 18 2019 11:47AM','Nov 18 2019 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'18','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Other','Other','Other',NULL,NULL,NULL,'2E655CCA-FF7D-4A97-86B8-ED13CF8BF38E','Nov 18 2019 11:47AM','Nov 18 2019 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '18')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'18','31' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'18','31' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '18')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YTAR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YTAR11','Animation','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'756BDF71-7011-4617-93D7-35EFC1DDF782','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YTAR11' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YTAR11','867530022','2012','530','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YTAR11','867530022','2012','530','Animation',NULL,'YTAR11','867530022','46E39E57-81F7-4C8B-A988-2A851744AF3D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','AUDITORIUM',NULL,NULL,'5E3C0282-A5EB-4A5B-95AB-A3F120FB2847','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'AUDITORIUM' AND SchoolId= '867530022')); - SET IDENTITY_INSERT edfi.PopulationServedType ON; - INSERT INTO edfi.PopulationServedType(PopulationServedTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students','402D7EAC-2507-40BB-B12A-E79DAF0342A1','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedType WHERE PopulationServedTypeId= '5')); - SET IDENTITY_INSERT edfi.PopulationServedType OFF; + SET IDENTITY_INSERT edfi.PopulationServedType ON; + INSERT INTO edfi.PopulationServedType(PopulationServedTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','Career and Technical Education Students','Career and Technical Education Students','Career and Technical Education Students','402D7EAC-2507-40BB-B12A-E79DAF0342A1','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedType WHERE PopulationServedTypeId= '5')); + SET IDENTITY_INSERT edfi.PopulationServedType OFF; - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B06','AUDITORIUM','YTAR11','530','2012','15583','1','1',NULL,'5',NULL,NULL,NULL,'1.00','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B06' AND ClassroomIdentificationCode= 'AUDITORIUM' AND LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '15583')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B06','AUDITORIUM','YTAR11','530','2012','15583','1','1',NULL,'5',NULL,NULL,NULL,'1.00','EDDAB1F8-41F3-48EF-87DA-E9E4B45D1800','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B06' AND ClassroomIdentificationCode= 'AUDITORIUM' AND LocalCourseCode= 'YTAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '15583')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','B06','AUDITORIUM','YTAR11','15583','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='B06' AND ClassroomIdentificationCode='AUDITORIUM' AND LocalCourseCode='YTAR11' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=15583 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','B06','AUDITORIUM','YTAR11','15583','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'2DD5B2D3-B506-42BA-BB84-315CD190F0E1','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='B06' AND ClassroomIdentificationCode='AUDITORIUM' AND LocalCourseCode='YTAR11' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=15583 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); - SET IDENTITY_INSERT edfi.ClassroomPositionType ON; - INSERT INTO edfi.ClassroomPositionType(ClassroomPositionTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Teacher of Record','Teacher of Record','Teacher of Record','CFBE9A18-CBF2-42FD-A10C-39C3B175FAAA','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionType WHERE ClassroomPositionTypeId= '1')); - SET IDENTITY_INSERT edfi.ClassroomPositionType OFF; + SET IDENTITY_INSERT edfi.ClassroomPositionType ON; + INSERT INTO edfi.ClassroomPositionType(ClassroomPositionTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1','Teacher of Record','Teacher of Record','Teacher of Record','CFBE9A18-CBF2-42FD-A10C-39C3B175FAAA','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionType WHERE ClassroomPositionTypeId= '1')); + SET IDENTITY_INSERT edfi.ClassroomPositionType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'127','http://www.ed-fi.org/Descriptor/ClassroomPositionDescriptor.xml','Teacher of Record','Teacher of Record','Teacher of Record',NULL,NULL,NULL,'EA98CB12-2931-4D9C-97C8-13D293CA1E9B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '127')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'127','http://www.ed-fi.org/Descriptor/ClassroomPositionDescriptor.xml','Teacher of Record','Teacher of Record','Teacher of Record',NULL,NULL,NULL,'EA98CB12-2931-4D9C-97C8-13D293CA1E9B','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '127')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId,ClassroomPositionTypeId)(SELECT TOP 1'127','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); + INSERT INTO edfi.ClassroomPositionDescriptor(ClassroomPositionDescriptorId,ClassroomPositionTypeId)(SELECT TOP 1'127','1' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassroomPositionDescriptor WHERE ClassroomPositionDescriptorId= '127')); - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'102','http://www.ed-fi.org/Descriptor/LevelofEducationDescriptor.xml','Bachelor''s','Bachelor''s','Bachelor''s',NULL,NULL,NULL,'15AEB8F9-2E80-4A7D-AF64-5A852C89AAD3','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '102')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'102','http://www.ed-fi.org/Descriptor/LevelofEducationDescriptor.xml','Bachelor''s','Bachelor''s','Bachelor''s',NULL,NULL,NULL,'15AEB8F9-2E80-4A7D-AF64-5A852C89AAD3','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '102')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - SET IDENTITY_INSERT edfi.LevelOfEducationType ON; - INSERT INTO edfi.LevelOfEducationType(LevelOfEducationTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4','Bachelor''s','Bachelor''s','Bachelor''s','82647AD0-1935-435D-A9FF-3720CB486FDC','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationType WHERE LevelOfEducationTypeId= '4')); - SET IDENTITY_INSERT edfi.LevelOfEducationType OFF; + SET IDENTITY_INSERT edfi.LevelOfEducationType ON; + INSERT INTO edfi.LevelOfEducationType(LevelOfEducationTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4','Bachelor''s','Bachelor''s','Bachelor''s','82647AD0-1935-435D-A9FF-3720CB486FDC','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationType WHERE LevelOfEducationTypeId= '4')); + SET IDENTITY_INSERT edfi.LevelOfEducationType OFF; - INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId,LevelOfEducationTypeId)(SELECT TOP 1'102','4' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId,LevelOfEducationTypeId)(SELECT TOP 1'102','4' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '102')); - SET IDENTITY_INSERT edfi.OldEthnicityType ON; - INSERT INTO edfi.OldEthnicityType(OldEthnicityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','4CD04A4A-F353-4606-8192-3011397B8162','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityType WHERE OldEthnicityTypeId= '5')); - SET IDENTITY_INSERT edfi.OldEthnicityType OFF; + SET IDENTITY_INSERT edfi.OldEthnicityType ON; + INSERT INTO edfi.OldEthnicityType(OldEthnicityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','White, Not Of Hispanic Origin','4CD04A4A-F353-4606-8192-3011397B8162','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityType WHERE OldEthnicityTypeId= '5')); + SET IDENTITY_INSERT edfi.OldEthnicityType OFF; - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1','1948-01-01','0','5','102','36.00',NULL,'1',NULL,NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235',NULL,'Victoria','N','Aldridge',NULL,NULL,'1','1948-01-01','0','5','102','36.00',NULL,'1',NULL,NULL,'12530','0A499B89-FB21-4488-A529-33D48F8AAA18','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4235')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235','CHAPMAN','867530022','B08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'B249A085-39A9-4FDB-AB84-C6705CE9D271','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='4235')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235','CHAPMAN','867530022','B08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'B249A085-39A9-4FDB-AB84-C6705CE9D271','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='4235')); - SET IDENTITY_INSERT edfi.OldEthnicityType ON; - INSERT INTO edfi.OldEthnicityType(OldEthnicityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4','Hispanic','Hispanic','Hispanic','72E6FB11-05D5-47BE-A69D-F00428895BCD','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityType WHERE OldEthnicityTypeId= '4')); - SET IDENTITY_INSERT edfi.OldEthnicityType OFF; + SET IDENTITY_INSERT edfi.OldEthnicityType ON; + INSERT INTO edfi.OldEthnicityType(OldEthnicityTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4','Hispanic','Hispanic','Hispanic','72E6FB11-05D5-47BE-A69D-F00428895BCD','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.OldEthnicityType WHERE OldEthnicityTypeId= '4')); + SET IDENTITY_INSERT edfi.OldEthnicityType OFF; - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1','1976-11-07','1','4','102','9.00',NULL,'0',NULL,NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565',NULL,'Shannon','P','Lauer',NULL,NULL,'1','1976-11-07','1','4','102','9.00',NULL,'0',NULL,NULL,'12667','948496EB-A66A-4810-B4CC-CAD12D219B99','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '4565')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565','CHAPMAN','867530022','B08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'E31E0EBB-3B66-4379-B816-EB1FAFEEAD24','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='4565')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565','CHAPMAN','867530022','B08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'E31E0EBB-3B66-4379-B816-EB1FAFEEAD24','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='4565')); - SET IDENTITY_INSERT edfi.SexType ON; - INSERT INTO edfi.SexType(SexTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2','Male','Male','Male','3374E923-0E2E-4C63-B012-BCE0308D32F5','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexType WHERE SexTypeId= '2')); - SET IDENTITY_INSERT edfi.SexType OFF; + SET IDENTITY_INSERT edfi.SexType ON; + INSERT INTO edfi.SexType(SexTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2','Male','Male','Male','3374E923-0E2E-4C63-B012-BCE0308D32F5','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.SexType WHERE SexTypeId= '2')); + SET IDENTITY_INSERT edfi.SexType OFF; - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'2','1976-01-28','0','5','102','1.00',NULL,NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'231440',NULL,'Donny',NULL,'Hill',NULL,NULL,'2','1976-01-28','0','5','102','1.00',NULL,NULL,NULL,NULL,'13881','7718F2A5-B748-411A-A158-3BCB3CD39F64','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '231440')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'231440','CHAPMAN','867530022','B08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'46E208A1-84E2-40B3-B8F7-C4C332CBF528','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='231440')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'231440','CHAPMAN','867530022','B08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'46E208A1-84E2-40B3-B8F7-C4C332CBF528','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='231440')); - INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'LENR41','867530022','2012','530','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530022 AND [CourseOffering].[LocalCourseCode] = 'LENR41' AND [CourseOffering].[TermDescriptorId] = '530' AND [CourseOffering].[SchoolYear] = 2012)); + INSERT INTO edfi.courseoffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'LENR41','867530022','2012','530','English Iv (1 Unit)',NULL,'LENR41','867530022','9DD0B659-03AC-4395-A8C1-5B94C8CAE77F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.courseoffering WHERE [CourseOffering].[SchoolId] = 867530022 AND [CourseOffering].[LocalCourseCode] = 'LENR41' AND [CourseOffering].[TermDescriptorId] = '530' AND [CourseOffering].[SchoolYear] = 2012)); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530024','867530024','Carter',NULL,NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530024','867530024','Carter',NULL,NULL,NULL,'619A9E2A-CC05-4DB8-B0E4-983C7478EF03','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530024')); - INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'LENR41' AND EducationOrganizationId = '867530024')); + INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530024','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E6BC7324-220F-4BC1-84E5-D5965E51FA7A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'LENR41' AND EducationOrganizationId = '867530024')); - INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'LENR41' AND EducationOrganizationId = '867530011')); + INSERT INTO edfi.course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','LENR41','English Iv (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'267C5F07-2EC1-4CD6-95AB-2CBD0232DFE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.course WHERE [Course].[CourseCode] = 'LENR41' AND EducationOrganizationId = '867530011')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','A5423347-A661-44E0-8D9A-0981211FED33','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FA01' AND SchoolId= '867530022')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','A5423347-A661-44E0-8D9A-0981211FED33','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FA01' AND SchoolId= '867530022')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','2110','LENR41','530','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '4575')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','2110','LENR41','530','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','F49E9660-BD2E-4F75-9CC3-A2709B4BD7D1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '4575')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','FA01','2110','LENR41','4575','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='FA01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','FA01','2110','LENR41','4575','1','2012','530','2011-08-22','2011-12-20','0',NULL,NULL,'858E4B4D-33FA-4366-A6BA-D1C8986DDFC4','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='FA01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2011-08-22')); - INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2012','535','Traditional','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2012','535','Traditional','2012-01-05','2012-05-25','93','5F663518-ACD8-4DE7-A3AB-B5E5F3F322FC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'LENR41','867530022','2012','535','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'LENR41','867530022','2012','535','English Iv (1 Unit)',NULL,'LENR41','867530022','39018F7A-A282-4C13-A3C1-1DC64B794D88','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','2110','LENR41','535','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '4575')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','2110','LENR41','535','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','48E144CB-C5C0-43FF-91F2-59FD89916490','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '4575')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','FA01','2110','LENR41','4575','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='FA01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','FA01','2110','LENR41','4575','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'0AC3BDCE-5116-40D1-B902-A826F3E0F117','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='FA01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','2110','LENR41','535','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '4575')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','2110','LENR41','535','2012','4575','1','1',NULL,'1',NULL,NULL,NULL,'1.00','1D393F6D-8CEF-4CFA-9981-40D2AEC37C44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '2110' AND LocalCourseCode= 'LENR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '4575')); - INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','A01','2110','LENR41','4575','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); + INSERT INTO edfi.StudentSectionAssociation(StudentUSI,SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,UniqueSectionCode,SequenceOfCourse,SchoolYear,TermDescriptorId,BeginDate,EndDate,HomeroomIndicator,RepeatIdentifierTypeId,TeacherStudentDataLinkExclusion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'100040483','867530022','A01','2110','LENR41','4575','1','2012','535','2012-01-04','2012-05-25','0',NULL,NULL,'D2F5A8DA-F50C-4971-A382-359CF755B5D3','Sep 18 2015 11:47AM','Sep 18 2015 11:47AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StudentSectionAssociation WHERE StudentUSI=100040483 AND SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND BeginDate='2012-01-04')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1','1983-02-27','0','5','102','4.00',NULL,'1',NULL,NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7019',NULL,'Ashlie','Q','Osullivan',NULL,NULL,'1','1983-02-27','0','5','102','4.00',NULL,'1',NULL,NULL,'13043','D791D65F-A90B-4AB4-9609-D16CB66735DC','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7019')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7019','2110','867530022','FA01','LENR41','2012','535','4575','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'FB7CD109-7585-41D5-88E3-B1B1A922FF3B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='FA01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND StaffUSI='7019')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7019','2110','867530022','FA01','LENR41','2012','535','4575','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'FB7CD109-7585-41D5-88E3-B1B1A922FF3B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='FA01' AND ClassroomIdentificationCode='2110' AND LocalCourseCode='LENR41' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=4575 AND SequenceOfCourse=1 AND StaffUSI='7019')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565','CHAPMAN','867530022','FB08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'8EE158B4-1046-448D-AC4B-9ED5B45222DA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='FB08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='4565')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565','CHAPMAN','867530022','FB08','CAFR41','2012','530','17128','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'8EE158B4-1046-448D-AC4B-9ED5B45222DA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='FB08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17128 AND SequenceOfCourse=1 AND StaffUSI='4565')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA04','747BF33B-6D7C-40B0-A1AE-C1EF5D3B2FCE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FA04' AND SchoolId= '867530022')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA04','747BF33B-6D7C-40B0-A1AE-C1EF5D3B2FCE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FA04' AND SchoolId= '867530022')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CALR41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CALR41','PE Substitution Athletics 4','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'7081C2C4-020C-4C76-9109-77AEC0EBC6E1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CALR41' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CALR41','867530022','2012','530','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CALR41','867530022','2012','530','PE Substitution Athletics 4',NULL,'CALR41','867530022','C76CBC41-657C-48C2-AAA6-868F902013FD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA04','CHAPMAN','CALR41','530','2012','2217','1','1',NULL,'1',NULL,NULL,NULL,'0.50','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA04' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '2217')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA04','CHAPMAN','CALR41','530','2012','2217','1','1',NULL,'1',NULL,NULL,NULL,'0.50','8AAA3B1B-DD36-4270-BBE4-730E5DE91D7D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA04' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CALR41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '2217')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'2','1977-04-06','0','5','102','9.00',NULL,'1',NULL,NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'6425',NULL,'Gerardo',NULL,'Oviedo',NULL,NULL,'2','1977-04-06','0','5','102','9.00',NULL,'1',NULL,NULL,'12894','A186A97A-302D-4A5B-BAD6-C1EB0EF5A886','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '6425')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'6425','CHAPMAN','867530022','FA04','CALR41','2012','530','2217','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'491C8FA4-3128-44F5-B562-994C65B88107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='FA04' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CALR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=2217 AND SequenceOfCourse=1 AND StaffUSI='6425')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'6425','CHAPMAN','867530022','FA04','CALR41','2012','530','2217','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'491C8FA4-3128-44F5-B562-994C65B88107','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='FA04' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CALR41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=2217 AND SequenceOfCourse=1 AND StaffUSI='6425')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'GYMR31' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','GYMR31','Aerobic Activities','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'215B165A-F0E7-4705-BCF0-B849754B4DD6','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'GYMR31' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'GYMR31','867530022','2012','530','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'GYMR31','867530022','2012','530','Aerobic Activities',NULL,'GYMR31','867530022','934A6D83-3EDE-4A10-92AF-5C68B46CD7F9','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','AUDITORIUM','GYMR31','530','2012','3350','1','1',NULL,'1',NULL,NULL,NULL,'0.50','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= 'AUDITORIUM' AND LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '3350')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','AUDITORIUM','GYMR31','530','2012','3350','1','1',NULL,'1',NULL,NULL,NULL,'0.50','1C539224-EE0D-451B-B5DF-74C6736A1D2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= 'AUDITORIUM' AND LocalCourseCode= 'GYMR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '3350')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'2','1965-05-18','0','5','102','11.00',NULL,'0',NULL,NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3192',NULL,'Kenneth','N','Gonzalez',NULL,NULL,'2','1965-05-18','0','5','102','11.00',NULL,'0',NULL,NULL,'12151','641BADAB-578C-4A00-BDF1-9F0B4CED78E6','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3192')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3192','AUDITORIUM','867530022','A01','GYMR31','2012','530','3350','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'31D9D449-60AD-4439-9B13-A17FE54F1A6C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='AUDITORIUM' AND LocalCourseCode='GYMR31' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=3350 AND SequenceOfCourse=1 AND StaffUSI='3192')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3192','AUDITORIUM','867530022','A01','GYMR31','2012','530','3350','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'31D9D449-60AD-4439-9B13-A17FE54F1A6C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='AUDITORIUM' AND LocalCourseCode='GYMR31' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=3350 AND SequenceOfCourse=1 AND StaffUSI='3192')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'AJFR31' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','AJFR31','Art Iii Fibers (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'424A1B93-DF6F-4C4E-8797-067794430EEA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'AJFR31' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'AJFR31','867530022','2012','535','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'AJFR31','867530022','2012','535','Art Iii Fibers (1 Unit)',NULL,'AJFR31','867530022','4DB6E839-02D5-4A2A-90ED-B768D7DB6116','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','1001',NULL,NULL,'9EDA7297-2C5E-430C-8839-D751CD68ACB8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1001' AND SchoolId= '867530022')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','1001','AJFR31','535','2012','25','1','1',NULL,'1',NULL,NULL,NULL,'1.00','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '1001' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '25')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','1001','AJFR31','535','2012','25','1','1',NULL,'1',NULL,NULL,NULL,'1.00','B1378577-0235-44B7-AA80-E2B68B96036E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '1001' AND LocalCourseCode= 'AJFR31' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '25')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1','1980-05-24','1','5','102','4.00',NULL,'1',NULL,NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7460',NULL,'Nacole',NULL,'Gonzalez',NULL,NULL,'1','1980-05-24','1','5','102','4.00',NULL,'1',NULL,NULL,'13154','1527D552-E89C-4460-A366-DFF99261901A','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '7460')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7460','1001','867530022','A01','AJFR31','2012','535','25','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'862F5F47-1C7F-469E-BBB7-150B320EC3BD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='1001' AND LocalCourseCode='AJFR31' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=25 AND SequenceOfCourse=1 AND StaffUSI='7460')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7460','1001','867530022','A01','AJFR31','2012','535','25','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'862F5F47-1C7F-469E-BBB7-150B320EC3BD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='1001' AND LocalCourseCode='AJFR31' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=25 AND SequenceOfCourse=1 AND StaffUSI='7460')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ICSC41' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','ICSC41','IB Computer Science, Higher Level','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'E958B922-92C8-46EA-ABCC-BEC6A53B21CA','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ICSC41' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ICSC41','867530022','2012','530','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ICSC41','867530022','2012','530','IB Computer Science, Higher Level',NULL,'ICSC41','867530022','6373F1EF-E25F-4194-B2FB-3C097EBCA64B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','02',NULL,NULL,'B1D7BEEC-DFAF-46A8-85E0-8094C7C04FBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '02' AND SchoolId= '867530022')); - SET IDENTITY_INSERT edfi.PopulationServedType ON; - INSERT INTO edfi.PopulationServedType(PopulationServedTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'9','Honors Students','Honors Students','Honors Students','80E5BA20-CB28-4333-ABD4-B880A86F4C7F','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedType WHERE PopulationServedTypeId= '9')); - SET IDENTITY_INSERT edfi.PopulationServedType OFF; + SET IDENTITY_INSERT edfi.PopulationServedType ON; + INSERT INTO edfi.PopulationServedType(PopulationServedTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'9','Honors Students','Honors Students','Honors Students','80E5BA20-CB28-4333-ABD4-B880A86F4C7F','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.PopulationServedType WHERE PopulationServedTypeId= '9')); + SET IDENTITY_INSERT edfi.PopulationServedType OFF; - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','02','ICSC41','530','2012','3418','1','1',NULL,'9',NULL,NULL,NULL,'1.00','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '02' AND LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '3418')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','02','ICSC41','530','2012','3418','1','1',NULL,'9',NULL,NULL,NULL,'1.00','5D52F43D-E2DD-461F-9AAE-CE24AC81386E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '02' AND LocalCourseCode= 'ICSC41' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '3418')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1','1972-07-06','0','3','102','15.00',NULL,'1',NULL,NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3803',NULL,'Yvette','Q','Jorgenson',NULL,NULL,'1','1972-07-06','0','3','102','15.00',NULL,'1',NULL,NULL,'12364','578EB9BA-20CF-4DEA-B1A4-1E655E00C931','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '3803')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3803','02','867530022','A01','ICSC41','2012','530','3418','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'2B0D1D59-4F97-4C91-A670-46818D701E86','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='02' AND LocalCourseCode='ICSC41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=3418 AND SequenceOfCourse=1 AND StaffUSI='3803')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3803','02','867530022','A01','ICSC41','2012','530','3418','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'2B0D1D59-4F97-4C91-A670-46818D701E86','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='A01' AND ClassroomIdentificationCode='02' AND LocalCourseCode='ICSC41' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=3418 AND SequenceOfCourse=1 AND StaffUSI='3803')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YBIR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YBIR11','Business Information Management','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'985D2E43-FD22-4BE3-9446-0E58120E27F3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YBIR11' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YBIR11','867530022','2012','535','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YBIR11','867530022','2012','535','Business Information Management',NULL,'YBIR11','867530022','17C641C2-1B04-4D01-A943-153901320522','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','1202',NULL,NULL,'EDF161B3-D03A-420A-A033-A447E28D527E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '1202' AND SchoolId= '867530022')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','1202','YBIR11','535','2012','14964','1','1',NULL,'5',NULL,NULL,NULL,'1.00','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '14964')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','1202','YBIR11','535','2012','14964','1','1',NULL,'5',NULL,NULL,NULL,'1.00','231A18CF-EF8E-41AB-BDF0-62F5CD58C8A1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '14964')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1','1977-08-22','0','5','102','1.00',NULL,'1',NULL,NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467',NULL,'Tanya','Y','Funk',NULL,NULL,'1','1977-08-22','0','5','102','1.00',NULL,'1',NULL,NULL,'13520','E0361954-9EC5-43EA-808C-49C55404E694','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '144467')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','B08','YBIR11','2012','535','14964','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'3A39B802-C310-4073-92B0-71521419061A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='1202' AND LocalCourseCode='YBIR11' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=14964 AND SequenceOfCourse=1 AND StaffUSI='144467')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','B08','YBIR11','2012','535','14964','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'3A39B802-C310-4073-92B0-71521419061A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='1202' AND LocalCourseCode='YBIR11' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=14964 AND SequenceOfCourse=1 AND StaffUSI='144467')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ARTR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','ARTR11','Art I (1 Unit)','1','12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'96CD35A1-7EBF-4CF6-A8FB-0B009DC0B2FB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'ARTR11' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ARTR11','867530022','2012','530','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'ARTR11','867530022','2012','530','Art I (1 Unit)',NULL,'ARTR11','867530022','DB2CF27F-F61C-4A98-89FD-ABEDE758C432','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','1001','ARTR11','530','2012','954','1','1',NULL,'1',NULL,NULL,NULL,'1.00','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '1001' AND LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '954')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','1001','ARTR11','530','2012','954','1','1',NULL,'1',NULL,NULL,NULL,'1.00','C46FD8AF-870C-4460-9DCF-90BD09C43C22','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '1001' AND LocalCourseCode= 'ARTR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '954')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7460','1001','867530022','B08','ARTR11','2012','530','954','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'56B79ABE-9D44-46EE-A87A-FCF1024D3BFD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='1001' AND LocalCourseCode='ARTR11' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=954 AND SequenceOfCourse=1 AND StaffUSI='7460')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'7460','1001','867530022','B08','ARTR11','2012','530','954','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'56B79ABE-9D44-46EE-A87A-FCF1024D3BFD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='1001' AND LocalCourseCode='ARTR11' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=954 AND SequenceOfCourse=1 AND StaffUSI='7460')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YMPH11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YMPH11','Advanced Precision Metal Manufacturing','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'26A8445C-75FE-4E58-BEF6-2BC057E4D43D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YMPH11' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YMPH11','867530022','2012','535','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YMPH11','867530022','2012','535','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','E960EA8D-00F7-40BD-8776-1B74CEED2999','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','02','YMPH11','535','2012','17614','1','1',NULL,'5',NULL,NULL,NULL,'2.00','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '02' AND LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '17614')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','02','YMPH11','535','2012','17614','1','1',NULL,'5',NULL,NULL,NULL,'2.00','151CAE69-3782-46E9-876D-0F51A8B1B29E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '02' AND LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '17614')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2580',NULL,'Mark','F','Fronk',NULL,NULL,'2','1963-04-11','0','5',NULL,'20.00',NULL,'0',NULL,NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2580',NULL,'Mark','F','Fronk',NULL,NULL,'2','1963-04-11','0','5',NULL,'20.00',NULL,'0',NULL,NULL,'11921','A172895A-AC70-4F2D-AB3F-40A224998EB9','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2580')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2580','02','867530022','B08','YMPH11','2012','535','17614','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'54B76299-8F04-45D8-907F-5135DC8B8CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='02' AND LocalCourseCode='YMPH11' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=17614 AND SequenceOfCourse=1 AND StaffUSI='2580')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2580','02','867530022','B08','YMPH11','2012','535','17614','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'54B76299-8F04-45D8-907F-5135DC8B8CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='02' AND LocalCourseCode='YMPH11' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=17614 AND SequenceOfCourse=1 AND StaffUSI='2580')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YMPH11','867530022','2012','530','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YMPH11','867530022','2012','530','Advanced Precision Metal Manufacturing',NULL,'YMPH11','867530022','C37653A4-3B8C-4903-9C84-595B85CFF155','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','02','YMPH11','530','2012','17614','1','1',NULL,'5',NULL,NULL,NULL,'2.00','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '02' AND LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '17614')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','02','YMPH11','530','2012','17614','1','1',NULL,'5',NULL,NULL,NULL,'2.00','A86BF7AF-7019-4C94-B38A-EFF7D1ADBA3A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= '02' AND LocalCourseCode= 'YMPH11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '17614')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2580','02','867530022','B08','YMPH11','2012','530','17614','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='02' AND LocalCourseCode='YMPH11' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17614 AND SequenceOfCourse=1 AND StaffUSI='2580')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2580','02','867530022','B08','YMPH11','2012','530','17614','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'3DCE8CF4-2FC8-4C97-9D65-A6CEE061177E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='02' AND LocalCourseCode='YMPH11' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=17614 AND SequenceOfCourse=1 AND StaffUSI='2580')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CAFR21' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CAFR21','Physical Education Equivalent-3 (1/2 Un)','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'C071D083-51FF-41A7-B756-945A87469512','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CAFR21' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR21','867530022','2012','530','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR21','867530022','2012','530','PE Substitution Athletics 2',NULL,'CAFR21','867530022','01A7E743-271E-47D5-A447-5C1EB8F31AEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','CAFR21','530','2012','2137','1','1',NULL,'1',NULL,NULL,NULL,'0.50','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '2137')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','CAFR21','530','2012','2137','1','1',NULL,'1',NULL,NULL,NULL,'0.50','940B0FD7-A482-4A0B-9784-CDE2CB0D5E6F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR21' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '2137')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565','CHAPMAN','867530022','B08','CAFR21','2012','530','2137','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'1AE26CF8-131D-4A45-8582-C8F0A867941D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR21' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=2137 AND SequenceOfCourse=1 AND StaffUSI='4565')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4565','CHAPMAN','867530022','B08','CAFR21','2012','530','2137','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'1AE26CF8-131D-4A45-8582-C8F0A867941D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR21' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=2137 AND SequenceOfCourse=1 AND StaffUSI='4565')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235','CHAPMAN','867530022','B08','CAFR21','2012','530','2137','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'E6FDD31D-F087-4410-A62A-62BB4E18854C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR21' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=2137 AND SequenceOfCourse=1 AND StaffUSI='4235')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235','CHAPMAN','867530022','B08','CAFR21','2012','530','2137','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'E6FDD31D-F087-4410-A62A-62BB4E18854C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR21' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=2137 AND SequenceOfCourse=1 AND StaffUSI='4235')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CAFR12' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','CAFR12','PE Substitution Athletics 1','1','9',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'B304FE14-8393-453B-84F3-071FD93EB879','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'CAFR12' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR12','867530022','2012','535','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'CAFR12','867530022','2012','535','PE Substitution Athletics 1',NULL,'CAFR12','867530022','8C9376B7-336D-4291-9CA3-B5BC6448A3AC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','CAFR12','535','2012','20782','1','1',NULL,'1',NULL,NULL,NULL,'0.50','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '20782')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','CAFR12','535','2012','20782','1','1',NULL,'1',NULL,NULL,NULL,'0.50','20A98062-BFC4-4763-BA10-F754512D532A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'CAFR12' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '20782')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235','CHAPMAN','867530022','B08','CAFR12','2012','535','20782','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'9641D271-C3B8-4FDF-B839-1B28F6FA3BEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR12' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=20782 AND SequenceOfCourse=1 AND StaffUSI='4235')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'4235','CHAPMAN','867530022','B08','CAFR12','2012','535','20782','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'9641D271-C3B8-4FDF-B839-1B28F6FA3BEC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='CAFR12' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=20782 AND SequenceOfCourse=1 AND StaffUSI='4235')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'BPPR10' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','BPPR10','OFFPRAC','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'D360E3FF-B7B4-40A6-AD7F-84A3F3A4E5F2','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'BPPR10' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'BPPR10','867530022','2012','535','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'BPPR10','867530022','2012','535','Other Secondary Subject',NULL,'BPPR10','867530022','653CBCC5-A707-48A0-A44B-39A4789B34FE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','BPPR10','535','2012','21223','1','1',NULL,'1',NULL,NULL,NULL,'1.00','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '21223')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','B08','CHAPMAN','BPPR10','535','2012','21223','1','1',NULL,'1',NULL,NULL,NULL,'1.00','4AC12D01-CA69-4310-822B-43A2F57998C3','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'B08' AND ClassroomIdentificationCode= 'CHAPMAN' AND LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '21223')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'231440','CHAPMAN','867530022','B08','BPPR10','2012','535','21223','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'20071FA7-0526-4C36-9920-9F2F847CF527','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='BPPR10' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=21223 AND SequenceOfCourse=1 AND StaffUSI='231440')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'231440','CHAPMAN','867530022','B08','BPPR10','2012','535','21223','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'20071FA7-0526-4C36-9920-9F2F847CF527','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530022 AND ClassPeriodName='B08' AND ClassroomIdentificationCode='CHAPMAN' AND LocalCourseCode='BPPR10' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=21223 AND SequenceOfCourse=1 AND StaffUSI='231440')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','531F8CC7-FAFB-4816-9484-605D7D00EC2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T01' AND SchoolId= '867530011')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','531F8CC7-FAFB-4816-9484-605D7D00EC2F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T01' AND SchoolId= '867530011')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2012','530','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2012','530','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','4D81D9CF-0013-438C-ACB5-66FBD643028E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','115','QAGR40','530','2012','9092','1','1',NULL,'1',NULL,NULL,NULL,'0.50','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T01' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '9092')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','115','QAGR40','530','2012','9092','1','1',NULL,'1',NULL,NULL,NULL,'0.50','60FB339E-0AEC-4EAC-85F8-A2EF5853C68C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T01' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '9092')); - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'105','http://www.ed-fi.org/Descriptor/LevelofEducationDescriptor.xml','Master''s','Master''s','Master''s',NULL,NULL,NULL,'E050EF7D-228F-42F9-964B-31882A1C35BC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '105')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'105','http://www.ed-fi.org/Descriptor/LevelofEducationDescriptor.xml','Master''s','Master''s','Master''s',NULL,NULL,NULL,'E050EF7D-228F-42F9-964B-31882A1C35BC','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '105')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - SET IDENTITY_INSERT edfi.LevelOfEducationType ON; - INSERT INTO edfi.LevelOfEducationType(LevelOfEducationTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','Master''s','Master''s','Master''s','F2948A8B-F747-478C-8DB7-C7D9433537E7','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationType WHERE LevelOfEducationTypeId= '5')); - SET IDENTITY_INSERT edfi.LevelOfEducationType OFF; + SET IDENTITY_INSERT edfi.LevelOfEducationType ON; + INSERT INTO edfi.LevelOfEducationType(LevelOfEducationTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'5','Master''s','Master''s','Master''s','F2948A8B-F747-478C-8DB7-C7D9433537E7','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationType WHERE LevelOfEducationTypeId= '5')); + SET IDENTITY_INSERT edfi.LevelOfEducationType OFF; - INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId,LevelOfEducationTypeId)(SELECT TOP 1'105','5' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); + INSERT INTO edfi.LevelOfEducationDescriptor(LevelOfEducationDescriptorId,LevelOfEducationTypeId)(SELECT TOP 1'105','5' WHERE NOT EXISTS(SELECT 1 FROM edfi.LevelOfEducationDescriptor WHERE LevelOfEducationDescriptorId= '105')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1','1951-04-17','0','5','105','32.00',NULL,'0',NULL,NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377',NULL,'Rachel','H','Wentz',NULL,NULL,'1','1951-04-17','0','5','105','32.00',NULL,'0',NULL,NULL,'11853','F27DE5AE-3501-4E2C-990E-EFE8CE1C2DD1','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '2377')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T01','QAGR40','2012','530','9092','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'B75BF103-8450-466B-AE26-840341313E70','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530011 AND ClassPeriodName='T01' AND ClassroomIdentificationCode='115' AND LocalCourseCode='QAGR40' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=9092 AND SequenceOfCourse=1 AND StaffUSI='2377')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T01','QAGR40','2012','530','9092','1','127','2011-08-22','2011-12-20',NULL,NULL,NULL,'B75BF103-8450-466B-AE26-840341313E70','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530011 AND ClassPeriodName='T01' AND ClassroomIdentificationCode='115' AND LocalCourseCode='QAGR40' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=9092 AND SequenceOfCourse=1 AND StaffUSI='2377')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR21' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QENR21','English Ii (1 Unit)','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'13CF6BEC-9C60-43CD-9756-1122AE5AF2D0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QENR21' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QENR21','867530011','2012','535','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QENR21','867530011','2012','535','English Ii (1 Unit)',NULL,'QENR21','867530011','77D3A611-A4B4-4487-B52D-15FE65AE6109','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','9922',NULL,NULL,'B12ED632-6BE3-4007-BCBA-5D0594EEF882','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9922' AND SchoolId= '867530011')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','9922','QENR21','535','2012','9676','1','1',NULL,'1',NULL,NULL,NULL,'1.00','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '9922' AND LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '9676')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','9922','QENR21','535','2012','9676','1','1',NULL,'1',NULL,NULL,NULL,'1.00','0A9429DB-A7E4-4880-9E84-4E9DF9A660CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '9922' AND LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '9676')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','9922','867530011','T09','QENR21','2012','535','9676','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'5AF842D2-5D21-44A3-A25D-1176B18DB58F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode='9922' AND LocalCourseCode='QENR21' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=9676 AND SequenceOfCourse=1 AND StaffUSI='2377')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','9922','867530011','T09','QENR21','2012','535','9676','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'5AF842D2-5D21-44A3-A25D-1176B18DB58F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode='9922' AND LocalCourseCode='QENR21' AND TermDescriptorId='535' AND SchoolYear=2012 AND UniqueSectionCode=9676 AND SequenceOfCourse=1 AND StaffUSI='2377')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QENR21','867530011','2012','530','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QENR21','867530011','2012','530','English Ii (1 Unit)',NULL,'QENR21','867530011','27DAEB4E-4C17-40AA-A930-4D990DBC799B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','9921',NULL,NULL,'ED16659D-3B34-4369-A3CF-E98F0BB8129B','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '9921' AND SchoolId= '867530011')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','9921','QENR21','530','2012','9675','1','1',NULL,'1',NULL,NULL,NULL,'1.00','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '9921' AND LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '9675')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','9921','QENR21','530','2012','9675','1','1',NULL,'1',NULL,NULL,NULL,'1.00','1B438386-FA49-4DAF-AFC4-750C9D4B572A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '9921' AND LocalCourseCode= 'QENR21' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '9675')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','9921','867530011','T09','QENR21','2012','530','9675','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'FA14A3BA-8E29-4F75-9574-A4F61EF2544C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode='9921' AND LocalCourseCode='QENR21' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=9675 AND SequenceOfCourse=1 AND StaffUSI='2377')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','9921','867530011','T09','QENR21','2012','530','9675','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'FA14A3BA-8E29-4F75-9574-A4F61EF2544C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE SchoolId=867530011 AND ClassPeriodName='T09' AND ClassroomIdentificationCode='9921' AND LocalCourseCode='QENR21' AND TermDescriptorId='530' AND SchoolYear=2012 AND UniqueSectionCode=9675 AND SequenceOfCourse=1 AND StaffUSI='2377')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YBIR11','867530022','2012','530','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YBIR11','867530022','2012','530','Business Information Management',NULL,'YBIR11','867530022','E788E0F2-D59C-42C9-8235-C659999D3B80','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','1202','YBIR11','530','2012','14960','1','1',NULL,'5',NULL,NULL,NULL,'1.00','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '14960')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','1202','YBIR11','530','2012','14960','1','1',NULL,'5',NULL,NULL,NULL,'1.00','92AA37DF-ACA4-492E-BBAE-57EDC4A2DD15','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '14960')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','FA01','YBIR11','2012','530','14960','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'98693363-4F20-4932-B72D-896CAEC34053','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YBIR11' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 14960 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','FA01','YBIR11','2012','530','14960','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'98693363-4F20-4932-B72D-896CAEC34053','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YBIR11' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 14960 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','1202','YBIR11','535','2012','14960','1','1',NULL,'5',NULL,NULL,NULL,'1.00','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '14960')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','1202','YBIR11','535','2012','14960','1','1',NULL,'5',NULL,NULL,NULL,'1.00','0BDA16E0-951B-46AC-9026-926CF3AD2D4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '14960')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','FA01','YBIR11','2012','535','14960','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'BE4FF557-3876-47A8-9454-DAF1AD943CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YBIR11' AND StaffSectionAssociation.TermDescriptorId = '535' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 14960 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','FA01','YBIR11','2012','535','14960','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'BE4FF557-3876-47A8-9454-DAF1AD943CFB','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YBIR11' AND StaffSectionAssociation.TermDescriptorId = '535' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 14960 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','1202','YBIR11','530','2012','14960','1','1',NULL,'5',NULL,NULL,NULL,'1.00','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '14960')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','A01','1202','YBIR11','530','2012','14960','1','1',NULL,'5',NULL,NULL,NULL,'1.00','9AA69BEE-3E24-45C7-8371-548C016AAFAC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'A01' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YBIR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '14960')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','A01','YBIR11','2012','530','14960','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'FE88F203-12C4-4FC9-B348-B2F6422162CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'A01' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YBIR11' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 14960 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','A01','YBIR11','2012','530','14960','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'FE88F203-12C4-4FC9-B348-B2F6422162CD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'A01' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YBIR11' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 14960 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA02','D4FE1425-590C-4B39-A271-EE9C26D4B394','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FA02' AND SchoolId= '867530022')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA02','D4FE1425-590C-4B39-A271-EE9C26D4B394','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'FA02' AND SchoolId= '867530022')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YFAR11' AND EducationOrganizationId= '867530022')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','YFAR11','Accounting I','1','18',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'001CFA47-3DC2-4B17-897A-05A40905115D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'YFAR11' AND EducationOrganizationId= '867530022')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YFAR11','867530022','2012','530','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'YFAR11','867530022','2012','530','Accounting I',NULL,'YFAR11','867530022','D67E152B-E200-4A2F-BC51-843ABF4F3DCC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA02','1202','YFAR11','530','2012','15045','1','1',NULL,'5',NULL,NULL,NULL,'1.00','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA02' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '15045')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA02','1202','YFAR11','530','2012','15045','1','1',NULL,'5',NULL,NULL,NULL,'1.00','4BB11BBA-D75E-4F09-8F39-6E5188439234','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA02' AND ClassroomIdentificationCode= '1202' AND LocalCourseCode= 'YFAR11' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '15045')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','FA02','YFAR11','2012','530','15045','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA02' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YFAR11' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 15045 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'144467','1202','867530022','FA02','YFAR11','2012','530','15045','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'3EF8DAE3-8C6C-40A3-A3AB-2D2DBF513024','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA02' AND StaffSectionAssociation.ClassroomIdentificationCode = '1202' AND StaffSectionAssociation.LocalCourseCode = 'YFAR11' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 15045 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '144467')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'BPPR10','867530022','2012','530','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'BPPR10','867530022','2012','530','Other Secondary Subject',NULL,'BPPR10','867530022','143499DB-5C12-4536-8A70-E67BC29ACE8A','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND TermDescriptorId= '530')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','LIBRARY',NULL,NULL,'F26C85CF-30A4-433F-A5CD-4F58974FD69D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= 'LIBRARY' AND SchoolId= '867530022')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','LIBRARY','BPPR10','530','2012','1961','1','1',NULL,'1',NULL,NULL,NULL,'1.00','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= 'LIBRARY' AND LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '1961')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','LIBRARY','BPPR10','530','2012','1961','1','1',NULL,'1',NULL,NULL,NULL,'1.00','B6434B14-E9FC-4749-8075-603B7C6A0E63','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= 'LIBRARY' AND LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '530' AND UniqueSectionCode= '1961')); - SET IDENTITY_INSERT edfi.Staff ON; - INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283',NULL,'Saul','F','Elston',NULL,NULL,'2','1965-02-25','0','5','105','21.00',NULL,NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); - SET IDENTITY_INSERT edfi.Staff OFF; + SET IDENTITY_INSERT edfi.Staff ON; + INSERT INTO edfi.Staff(StaffUSI,PersonalTitlePrefix,FirstName,MiddleName,LastSurname,GenerationCodeSuffix,MaidenName,SexTypeId,BirthDate,HispanicLatinoEthnicity,OldEthnicityTypeId,HighestCompletedLevelOfEducationDescriptorId,YearsOfPriorProfessionalExperience,YearsOfPriorTeachingExperience,HighlyQualifiedTeacher,LoginId,CitizenshipStatusTypeId,StaffUniqueId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283',NULL,'Saul','F','Elston',NULL,NULL,'2','1965-02-25','0','5','105','21.00',NULL,NULL,NULL,NULL,'11434','CB7B09D1-A25A-4CA0-B21C-BB36E0FE501B','Nov 19 2015 4:09PM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Staff WHERE StaffUSI= '1283')); + SET IDENTITY_INSERT edfi.Staff OFF; - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','LIBRARY','867530022','FA01','BPPR10','2012','530','1961','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'11B214C7-D435-4E88-A462-C31797EDCCDD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = 'LIBRARY' AND StaffSectionAssociation.LocalCourseCode = 'BPPR10' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 1961 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '1283')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','LIBRARY','867530022','FA01','BPPR10','2012','530','1961','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'11B214C7-D435-4E88-A462-C31797EDCCDD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = 'LIBRARY' AND StaffSectionAssociation.LocalCourseCode = 'BPPR10' AND StaffSectionAssociation.TermDescriptorId = '530' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 1961 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '1283')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','LIBRARY','BPPR10','535','2012','1961','1','1',NULL,'1',NULL,NULL,NULL,'1.00','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= 'LIBRARY' AND LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '1961')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','FA01','LIBRARY','BPPR10','535','2012','1961','1','1',NULL,'1',NULL,NULL,NULL,'1.00','5B93CF3A-8BFA-46A5-A82E-8F93BA535EAD','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'FA01' AND ClassroomIdentificationCode= 'LIBRARY' AND LocalCourseCode= 'BPPR10' AND SchoolId= '867530022' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '1961')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','LIBRARY','867530022','FA01','BPPR10','2012','535','1961','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'924D21AB-4D67-4618-A23B-4D23C71EA11D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = 'LIBRARY' AND StaffSectionAssociation.LocalCourseCode = 'BPPR10' AND StaffSectionAssociation.TermDescriptorId = '535' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 1961 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '1283')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'1283','LIBRARY','867530022','FA01','BPPR10','2012','535','1961','1','127','2011-08-22','2012-05-25',NULL,NULL,NULL,'924D21AB-4D67-4618-A23B-4D23C71EA11D','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE StaffSectionAssociation.SchoolId = 867530022 AND StaffSectionAssociation.ClassPeriodName = 'FA01' AND StaffSectionAssociation.ClassroomIdentificationCode = 'LIBRARY' AND StaffSectionAssociation.LocalCourseCode = 'BPPR10' AND StaffSectionAssociation.TermDescriptorId = '535' AND StaffSectionAssociation.SchoolYear = 2012 AND StaffSectionAssociation.UniqueSectionCode = 1961 AND StaffSectionAssociation.SequenceOfCourse = 1 AND StaffSectionAssociation.StaffUSI = '1283')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE id='A3B3BA48-C9AE-476D-9C4D-536548C3F303')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T01' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T01','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','A3B3BA48-C9AE-476D-9C4D-536548C3F303','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T01' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T01','QAGR40','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'AE6795DA-A9E4-4735-AC8B-73479746AF44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T01','QAGR40','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'AE6795DA-A9E4-4735-AC8B-73479746AF44','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = 'AE6795DA-A9E4-4735-AC8B-73479746AF44')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2011','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530011','2011','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530011','57C2C84F-046A-4B23-9F54-EB2FEE27C8EC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2011','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2011','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','F835A72A-950F-445E-A38F-192A1FF19DBC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2011' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QAGR40','2011','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'4D0D28FE-0B24-4843-A075-18F507289EDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QAGR40','2011','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'4D0D28FE-0B24-4843-A075-18F507289EDC','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '4D0D28FE-0B24-4843-A075-18F507289EDC')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2012','18940','2','1',NULL,'1',NULL,NULL,NULL,'0.50','EC95E47C-3E66-4A06-852D-A3B160F70E55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '2' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2012','18940','2','1',NULL,'1',NULL,NULL,NULL,'0.50','EC95E47C-3E66-4A06-852D-A3B160F70E55','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '2' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QAGR40','2012','535','18940','2','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'38AA5ABA-1BDF-4553-A3AB-75ACF9C6FB4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '38AA5ABA-1BDF-4553-A3AB-75ACF9C6FB4E')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QAGR40','2012','535','18940','2','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'38AA5ABA-1BDF-4553-A3AB-75ACF9C6FB4E','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '38AA5ABA-1BDF-4553-A3AB-75ACF9C6FB4E')); - SET IDENTITY_INSERT edfi.AcademicSubjectType ON; - INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3','Mathematics','Mathematics','Mathematics','AA866A81-264B-4A52-9B14-F3895753FFD5','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '3')); - SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; + SET IDENTITY_INSERT edfi.AcademicSubjectType ON; + INSERT INTO edfi.AcademicSubjectType(AcademicSubjectTypeId,CodeValue,Description,ShortDescription,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'3','Mathematics','Mathematics','Mathematics','AA866A81-264B-4A52-9B14-F3895753FFD5','Jun 19 2015 11:41AM','Jun 19 2015 11:41AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectType WHERE AcademicSubjectTypeId= '3')); + SET IDENTITY_INSERT edfi.AcademicSubjectType OFF; - SET IDENTITY_INSERT edfi.Descriptor ON; - INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics','Mathematics','Mathematics',NULL,NULL,NULL,'634C4237-EA78-40D5-B73B-23D91023116D','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2')); - SET IDENTITY_INSERT edfi.Descriptor OFF; + SET IDENTITY_INSERT edfi.Descriptor ON; + INSERT INTO edfi.Descriptor(DescriptorId,Namespace,CodeValue,ShortDescription,Description,PriorDescriptorId,EffectiveBeginDate,EffectiveEndDate,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2','http://www.ed-fi.org/Descriptor/AcademicSubjectDescriptor.xml','Mathematics','Mathematics','Mathematics',NULL,NULL,NULL,'634C4237-EA78-40D5-B73B-23D91023116D','Jun 19 2015 11:42AM','Jun 19 2015 11:42AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Descriptor WHERE DescriptorId= '2')); + SET IDENTITY_INSERT edfi.Descriptor OFF; - INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'2','3' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); + INSERT INTO edfi.AcademicSubjectDescriptor(AcademicSubjectDescriptorId,AcademicSubjectTypeId)(SELECT TOP 1'2','3' WHERE NOT EXISTS(SELECT 1 FROM edfi.AcademicSubjectDescriptor WHERE AcademicSubjectDescriptorId= '2')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QALR11' AND EducationOrganizationId= '867530011')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','QALR11','Algebra I (1 Unit)','1','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'37E03E35-1913-480B-967D-A589E0610993','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QALR11' AND EducationOrganizationId= '867530011')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QALR11','867530011','2012','535','Algebra I (1 Unit)',NULL,'QALR11','867530011','0358E898-4B3B-4345-8F0E-84B808B3DC6C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QALR11','867530011','2012','535','Algebra I (1 Unit)',NULL,'QALR11','867530011','0358E898-4B3B-4345-8F0E-84B808B3DC6C','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QALR11','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QALR11','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','5E684E65-3965-4BB7-A14F-C2B10CF0F5B5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QALR11' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QALR11','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'05184F91-4D72-48DE-BF48-A51F002CCA89','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QALR11','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'05184F91-4D72-48DE-BF48-A51F002CCA89','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '05184F91-4D72-48DE-BF48-A51F002CCA89')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2012','9097','1','1',NULL,'1',NULL,NULL,NULL,'0.50','EBA20869-00A1-4CCC-AE58-A0F497A0700F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '9097')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','115','QAGR40','535','2012','9097','1','1',NULL,'1',NULL,NULL,NULL,'0.50','EBA20869-00A1-4CCC-AE58-A0F497A0700F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '9097')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QAGR40','2012','535','9097','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'59275C0B-5E2D-4629-ABCD-C6C077C01B7F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '59275C0B-5E2D-4629-ABCD-C6C077C01B7F')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530011','T09','QAGR40','2012','535','9097','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'59275C0B-5E2D-4629-ABCD-C6C077C01B7F','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '59275C0B-5E2D-4629-ABCD-C6C077C01B7F')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','116',NULL,NULL,'40A0AFB1-4885-4316-B039-68D0323ED901','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '116' AND SchoolId= '867530011')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','116',NULL,NULL,'40A0AFB1-4885-4316-B039-68D0323ED901','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '116' AND SchoolId= '867530011')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','116','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','2E053D36-1EC4-4464-B190-7DBD1FD51164','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '116' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530011','T09','116','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','2E053D36-1EC4-4464-B190-7DBD1FD51164','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '116' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530011' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','116','867530011','T09','QAGR40','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'1A755F9F-AA4E-4977-AE81-7B0C0A015876','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '1A755F9F-AA4E-4977-AE81-7B0C0A015876')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','116','867530011','T09','QAGR40','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'1A755F9F-AA4E-4977-AE81-7B0C0A015876','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '1A755F9F-AA4E-4977-AE81-7B0C0A015876')); - INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','867530010','Fremont',NULL,NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,OperationalStatusTypeId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','867530010','Fremont',NULL,NULL,NULL,'E066C946-432B-46A8-A233-F2D38A026609','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '867530010')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeId,CharterStatusTypeId,TitleIPartASchoolDesignationTypeId,MagnetSpecialProgramEmphasisSchoolTypeId,AdministrativeFundingControlDescriptorId,InternetAccessTypeId,CharterApprovalAgencyTypeId,CharterApprovalSchoolYear)(SELECT TOP 1'867530010','867530','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeId,CharterStatusTypeId,TitleIPartASchoolDesignationTypeId,MagnetSpecialProgramEmphasisSchoolTypeId,AdministrativeFundingControlDescriptorId,InternetAccessTypeId,CharterApprovalAgencyTypeId,CharterApprovalSchoolYear)(SELECT TOP 1'867530010','867530','2',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '867530010')); - INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','T09','D6CE5590-9D2C-4113-B347-8F0C40730228','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T09' AND SchoolId= '867530010')); + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','T09','D6CE5590-9D2C-4113-B347-8F0C40730228','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'T09' AND SchoolId= '867530010')); - INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QAGR40' AND EducationOrganizationId= '867530010')); + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,CourseGPAApplicabilityTypeId,CourseDefinedByTypeId,MinimumAvailableCreditTypeId,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditTypeId,MaximumAvailableCreditConversion,MaximumAvailableCredits,CareerPathwayTypeId,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'3DE1B5E6-89D5-4D33-B59E-E1034D0657B0','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QAGR40' AND EducationOrganizationId= '867530010')); - INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','2012','535','Traditional','2011-08-22','2011-12-20','82','72A1572F-466E-487F-A4BB-3907E9B0FE96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','2012','535','Traditional','2011-08-22','2011-12-20','82','72A1572F-466E-487F-A4BB-3907E9B0FE96','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530010' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530010','2012','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'QAGR40','867530010','2012','535','United States Government (1/2 Unit)',NULL,'QAGR40','867530010','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND TermDescriptorId= '535')); - INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '867530010')); - INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','T09','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,MediumOfInstructionTypeId,PopulationServedTypeId,AvailableCreditTypeId,AvailableCreditConversion,InstructionLanguageDescriptorId,AvailableCredits,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530010','T09','115','QAGR40','535','2012','18940','1','1',NULL,'1',NULL,NULL,NULL,'0.50','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'T09' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '867530010' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); - INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530010','T09','QAGR40','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'22063E7A-193C-4810-909A-F9E5EB605993','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,HighlyQualifiedTeacher,TeacherStudentDataLinkExclusion,PercentageContribution,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'2377','115','867530010','T09','QAGR40','2012','535','18940','1','127','2012-01-04','2012-05-25',NULL,NULL,NULL,'22063E7A-193C-4810-909A-F9E5EB605993','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605993')); - UPDATE edfi.StudentSectionAssociation SET LastModifiedDate='2019-09-18 11:47 AM' WHERE ID='1B54F0C2-FF81-471B-9D71-7703C2435166'; + UPDATE edfi.StudentSectionAssociation SET LastModifiedDate='2019-09-18 11:47 AM' WHERE ID='1B54F0C2-FF81-471B-9D71-7703C2435166'; - UPDATE edfi.Course SET LastModifiedDate='2017-09-18 11:47 AM' WHERE ID='F808F14F-70F7-4B1D-B2DA-184BA1114728'; + UPDATE edfi.Course SET LastModifiedDate='2017-09-18 11:47 AM' WHERE ID='F808F14F-70F7-4B1D-B2DA-184BA1114728'; - UPDATE edfi.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; + UPDATE edfi.CourseOffering SET LastModifiedDate='2016-09-18 11:47 AM' WHERE ID='D37895C3-0B27-4B1F-8C6C-43B0F0D4F05D'; - UPDATE edfi.AcademicSubjectType SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='BB641592-360C-4D4C-B865-944C700F8CD6'; + UPDATE edfi.AcademicSubjectType SET LastModifiedDate='2019-11-18 11:47 AM' WHERE ID='BB641592-360C-4D4C-B865-944C700F8CD6'; + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2011','530','Traditional','2011-08-22','2011-12-20','82','EE8164B5-547B-4C7D-BF41-68FDB90A3482','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2011' AND TermDescriptorId= '530')); + + INSERT INTO edfi.EducationOrganization(EducationOrganizationId,StateOrganizationId,NameOfInstitution,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'628530001','867530010','Lander Middle','4E368F85-6A25-42F3-8D61-D972C421AC58','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530001')); + + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,SchoolTypeId) + (SELECT TOP 1'628530001',NULL,'2' + WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); + + INSERT INTO edfi.ClassPeriod(SchoolId,ClassPeriodName,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'628530001','Cl1','D6CE5590-9D2C-4113-B347-8F0C40730229','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.ClassPeriod WHERE ClassPeriodName= 'Cl1' AND SchoolId= '628530001')); + + INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'628530001','QAGR40','Traditional-Spring Semester','1','13','3DE1B5E6-89D5-4D33-B59E-E1034D0657B1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QAGR40' AND EducationOrganizationId= '628530001')); + + INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'628530001','2012','535','Traditional-Spring Semester','2011-08-22','2011-12-20','82','72A1572F-466E-487F-A4BB-3907E9B0FE97','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '628530001' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + + INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,TermDescriptorId,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'QAGR40','628530001','2012','535','Traditional-Spring Semester',NULL,'QAGR40','628530001','D71475DF-4629-464A-8287-3EC381FFEC05','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND TermDescriptorId= '535')); + + INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'628530001','115',NULL,NULL,'0128C71A-9935-45C0-A6BC-CB9E24E7D0CE','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '628530001')); + + INSERT INTO edfi.Section(SchoolId,ClassPeriodName,ClassroomIdentificationCode,LocalCourseCode,TermDescriptorId,SchoolYear,UniqueSectionCode,SequenceOfCourse,EducationalEnvironmentTypeId,PopulationServedTypeId,AvailableCredits,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'628530001','Cl1','115','QAGR40','535','2012','18940','1','1','1','0.50','B55B5D2C-98B2-48C9-AB30-9D5F74E98DE8','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.Section WHERE ClassPeriodName= 'Cl1' AND ClassroomIdentificationCode= '115' AND LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SequenceOfCourse= '1' AND TermDescriptorId= '535' AND UniqueSectionCode= '18940')); + + INSERT INTO edfi.StaffSectionAssociation(StaffUSI,ClassroomIdentificationCode,SchoolId,ClassPeriodName,LocalCourseCode,SchoolYear,TermDescriptorId,UniqueSectionCode,SequenceOfCourse,ClassroomPositionDescriptorId,BeginDate,EndDate,Id,LastModifiedDate,CreateDate) + (SELECT TOP 1'2377','115','628530001','Cl1','QAGR40','2012','535','18940','1','127','2012-01-04','2012-05-25','22063E7A-193C-4810-909A-F9E5EB605993','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' + WHERE NOT EXISTS(SELECT 1 FROM edfi.StaffSectionAssociation WHERE id = '22063E7A-193C-4810-909A-F9E5EB605994')); - INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate)(SELECT TOP 1'867530022','2011','530','Traditional','2011-08-22','2011-12-20','82','EE8164B5-547B-4C7D-BF41-68FDB90A3482','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM' WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '867530022' AND SchoolYear= '2011' AND TermDescriptorId= '530')); \ No newline at end of file diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_1/0000_SectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_1/0000_SectionDim_Data_Load.xml index b754dbb2..5745fc85 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_1/0000_SectionDim_Data_Load.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_1/0000_SectionDim_Data_Load.xml @@ -556,7 +556,7 @@ INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'628530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '628530')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530001','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530001',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'628530001','2012','535','Traditional-Spring Semester','2011-08-22','2011-12-20','82','9CB36308-AD92-455A-90FF-21A69F72F5F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '628530001' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0000_SectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0000_SectionDim_Data_Load.xml index b754dbb2..5745fc85 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0000_SectionDim_Data_Load.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_2/0000_SectionDim_Data_Load.xml @@ -556,7 +556,7 @@ INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'628530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '628530')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530001','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530001',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'628530001','2012','535','Traditional-Spring Semester','2011-08-22','2011-12-20','82','9CB36308-AD92-455A-90FF-21A69F72F5F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '628530001' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0000_SectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0000_SectionDim_Data_Load.xml index 33fc022c..2bca8832 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0000_SectionDim_Data_Load.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/MSSQL/v_3_3/0000_SectionDim_Data_Load.xml @@ -556,7 +556,7 @@ INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT TOP 1'628530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '628530')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530001','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT TOP 1'628530001',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT TOP 1'628530001','2012','535','Traditional-Spring Semester','2011-08-22','2011-12-20','82','9CB36308-AD92-455A-90FF-21A69F72F5F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '628530001' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_2/0000_SectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_2/0000_SectionDim_Data_Load.xml index 77b2f8e8..f231b194 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_2/0000_SectionDim_Data_Load.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_2/0000_SectionDim_Data_Load.xml @@ -242,7 +242,7 @@ INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate,MaxCompletionsForCredit,MinimumAvailableCreditTypeDescriptorId,MaximumAvailableCreditTypeDescriptorId,CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,CareerPathwayDescriptorId,Discriminator)(SELECT '628530001','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'406FC7D9-E5ED-4193-A5D0-CAE7E57D4B77','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QAGR40' AND EducationOrganizationId= '628530001')); INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '628530','Lander ISD',NULL,NULL,'13CC7674-8E27-443F-88B8-F8FDDD4601F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530')); INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '628530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '628530')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '628530001','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '628530001',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '628530001','2012','535','Traditional-Spring Semester','2011-08-22','2011-12-20','82','9CB36308-AD92-455A-90FF-21A69F72F5F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '628530001' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','628530001','2012','United States Government (1/2 Unit)',NULL,'QAGR40','628530001','37112053-2994-4A57-B36B-1D4CC57565F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '628530001','115',NULL,NULL,'136B6337-91FD-4026-97A6-125E63BCAA66','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '628530001')); diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0000_SectionDim_Data_Load.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0000_SectionDim_Data_Load.xml index 77b2f8e8..f231b194 100644 --- a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0000_SectionDim_Data_Load.xml +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/PostgreSQL/v_3_3/0000_SectionDim_Data_Load.xml @@ -242,7 +242,7 @@ INSERT INTO edfi.Course(EducationOrganizationId,CourseCode,CourseTitle,NumberOfParts,AcademicSubjectDescriptorId,CourseDescription,DateCourseAdopted,HighSchoolCourseRequirement,MinimumAvailableCreditConversion,MinimumAvailableCredits,MaximumAvailableCreditConversion,MaximumAvailableCredits,TimeRequiredForCompletion,Id,LastModifiedDate,CreateDate,MaxCompletionsForCredit,MinimumAvailableCreditTypeDescriptorId,MaximumAvailableCreditTypeDescriptorId,CourseGPAApplicabilityDescriptorId,CourseDefinedByDescriptorId,CareerPathwayDescriptorId,Discriminator)(SELECT '628530001','QAGR40','United States Government (1/2 Unit)','1','13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'406FC7D9-E5ED-4193-A5D0-CAE7E57D4B77','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,NULL,NULL,NULL,NULL,NULL,NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Course WHERE CourseCode= 'QAGR40' AND EducationOrganizationId= '628530001')); INSERT INTO edfi.EducationOrganization(EducationOrganizationId,NameOfInstitution,ShortNameOfInstitution,WebSite,Id,LastModifiedDate,CreateDate,OperationalStatusDescriptorId,Discriminator)(SELECT '628530','Lander ISD',NULL,NULL,'13CC7674-8E27-443F-88B8-F8FDDD4601F1','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL,'edfi.LocalEducationAgency' WHERE NOT EXISTS(SELECT 1 FROM edfi.EducationOrganization WHERE EducationOrganizationId= '628530')); INSERT INTO edfi.LocalEducationAgency(LocalEducationAgencyId,ParentLocalEducationAgencyId,EducationServiceCenterId,StateEducationAgencyId,CharterStatusDescriptorId,LocalEducationAgencyCategoryDescriptorId)(SELECT '628530',NULL,'152950',NULL,NULL,'1086' WHERE NOT EXISTS(SELECT 1 FROM edfi.LocalEducationAgency WHERE LocalEducationAgencyId= '628530')); - INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '628530001','628530',NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); + INSERT INTO edfi.School(SchoolId,LocalEducationAgencyId,AdministrativeFundingControlDescriptorId,CharterApprovalSchoolYear,CharterApprovalAgencyTypeDescriptorId,CharterStatusDescriptorId,InternetAccessDescriptorId,MagnetSpecialProgramEmphasisSchoolDescriptorId,SchoolTypeDescriptorId,TitleIPartASchoolDesignationDescriptorId)(SELECT '628530001',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1695',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.School WHERE SchoolId= '628530001')); INSERT INTO edfi.Session(SchoolId,SchoolYear,TermDescriptorId,SessionName,BeginDate,EndDate,TotalInstructionalDays,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '628530001','2012','535','Traditional-Spring Semester','2011-08-22','2011-12-20','82','9CB36308-AD92-455A-90FF-21A69F72F5F5','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Session WHERE SchoolId= '628530001' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); INSERT INTO edfi.CourseOffering(LocalCourseCode,SchoolId,SchoolYear,LocalCourseTitle,InstructionalTimePlanned,CourseCode,EducationOrganizationId,Id,LastModifiedDate,CreateDate,SessionName,Discriminator)(SELECT 'QAGR40','628530001','2012','United States Government (1/2 Unit)',NULL,'QAGR40','628530001','37112053-2994-4A57-B36B-1D4CC57565F4','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM','Traditional-Spring Semester',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.CourseOffering WHERE LocalCourseCode= 'QAGR40' AND SchoolId= '628530001' AND SchoolYear= '2012' AND SessionName= 'Traditional-Spring Semester')); INSERT INTO edfi.Location(SchoolId,ClassroomIdentificationCode,MaximumNumberOfSeats,OptimalNumberOfSeats,Id,LastModifiedDate,CreateDate,Discriminator)(SELECT '628530001','115',NULL,NULL,'136B6337-91FD-4026-97A6-125E63BCAA66','Sep 18 2015 11:34AM','Sep 18 2015 11:34AM',NULL WHERE NOT EXISTS(SELECT 1 FROM edfi.Location WHERE ClassroomIdentificationCode= '115' AND SchoolId= '628530001')); diff --git a/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/QAGR40_should_have_LocalEducationAgencyKey.xml b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/QAGR40_should_have_LocalEducationAgencyKey.xml new file mode 100644 index 00000000..edc49182 --- /dev/null +++ b/src/EdFi.AnalyticsMiddleTier.Tests/TestCases/SectionDim/QAGR40_should_have_LocalEducationAgencyKey.xml @@ -0,0 +1,14 @@ + + + Any + + + + SELECT LocalEducationAgencyKey + FROM analytics.SectionDim + WHERE SchoolYear = '2012' AND LocalCourseCode = 'QAGR40' and SchoolKey = '628530001'; + + + + + \ No newline at end of file